v2.1.2
This commit is contained in:
parent
e891828911
commit
1ff08b05c2
23
linpeas.sh
23
linpeas.sh
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
VERSION="v2.1.1"
|
VERSION="v2.1.2"
|
||||||
|
|
||||||
###########################################
|
###########################################
|
||||||
#---------------) Colors (----------------#
|
#---------------) Colors (----------------#
|
||||||
@ -227,6 +227,7 @@ echo_no (){
|
|||||||
printf $DG"No\n"$NC
|
printf $DG"No\n"$NC
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
###########################################
|
###########################################
|
||||||
#----------) Network functions (----------#
|
#----------) Network functions (----------#
|
||||||
###########################################
|
###########################################
|
||||||
@ -1131,6 +1132,26 @@ else echo_not_found "cached hashes"
|
|||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
##-- 32SI) Screen sessions
|
||||||
|
printf $Y"[+] "$GREEN"Looking for screen sessions\n"$N
|
||||||
|
printf $B"[i] "$Y"https://book.hacktricks.xyz/linux-unix/privilege-escalation#open-shell-sessions\n"$NC
|
||||||
|
screensess=`screen -ls 2>/dev/null`
|
||||||
|
if [ "$screensess" ]; then
|
||||||
|
printf "$screensess" | sed "s,.*,${C}[1;31m&${C}[0m," | sed "s,No Sockets found.*,${C}[1;32m&${C}[0m,"
|
||||||
|
else echo_not_found "screen"
|
||||||
|
fi
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
##-- 33SI) Tmux sessions
|
||||||
|
tmuxsess=`tmux ls 2>&1`
|
||||||
|
printf $Y"[+] "$GREEN"Looking for tmux sessions\n"$N
|
||||||
|
printf $B"[i] "$Y"https://book.hacktricks.xyz/linux-unix/privilege-escalation#open-shell-sessions\n"$NC
|
||||||
|
if [ "$tmuxsess" ]; then
|
||||||
|
printf "$tmuxsess" | sed "s,.*,${C}[1;31m&${C}[0m," | sed "s,no server running on.*,${C}[1;32m&${C}[0m,"
|
||||||
|
else echo_not_found "tmux"
|
||||||
|
fi
|
||||||
|
echo ""
|
||||||
|
|
||||||
###########################################
|
###########################################
|
||||||
#----------) Interesting files (----------#
|
#----------) Interesting files (----------#
|
||||||
###########################################
|
###########################################
|
||||||
|
Loading…
Reference in New Issue
Block a user