mirror of
https://github.com/carlospolop/PEASS-ng
synced 2025-02-17 21:41:25 +01:00
v2.1.2
This commit is contained in:
parent
e891828911
commit
1ff08b05c2
25
linpeas.sh
25
linpeas.sh
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
VERSION="v2.1.1"
|
||||
VERSION="v2.1.2"
|
||||
|
||||
###########################################
|
||||
#---------------) Colors (----------------#
|
||||
@ -227,6 +227,7 @@ echo_no (){
|
||||
printf $DG"No\n"$NC
|
||||
}
|
||||
|
||||
|
||||
###########################################
|
||||
#----------) Network functions (----------#
|
||||
###########################################
|
||||
@ -1123,7 +1124,7 @@ fi
|
||||
echo ""
|
||||
|
||||
##-- 31SI) Cached AD Hashes
|
||||
adhashes= `ls "/var/lib/samba/private/secrets.tdb" "/var/lib/samba/passdb.tdb" "/var/opt/quest/vas/authcache/vas_auth.vdb" "/var/lib/sss/db/cache_*" 2>/dev/null`
|
||||
adhashes=`ls "/var/lib/samba/private/secrets.tdb" "/var/lib/samba/passdb.tdb" "/var/opt/quest/vas/authcache/vas_auth.vdb" "/var/lib/sss/db/cache_*" 2>/dev/null`
|
||||
printf $Y"[+] "$GREEN"Looking for AD cached hahses\n"$NC
|
||||
if [ "$adhashes" ]; then
|
||||
ls "/var/lib/samba/private/secrets.tdb" "/var/lib/samba/passdb.tdb" "/var/opt/quest/vas/authcache/vas_auth.vdb" "/var/lib/sss/db/cache_*" 2>/dev/null
|
||||
@ -1131,6 +1132,26 @@ else echo_not_found "cached hashes"
|
||||
fi
|
||||
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 (----------#
|
||||
###########################################
|
||||
|
Loading…
Reference in New Issue
Block a user