Merge branch 'master' of https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite into master
This commit is contained in:
commit
bc7aafb3ab
@ -1013,6 +1013,17 @@ if [ "`echo $CHECKS | grep SysI`" ]; then
|
|||||||
printf $Y"[+] "$GREEN"Printer? ....................... "$NC
|
printf $Y"[+] "$GREEN"Printer? ....................... "$NC
|
||||||
lpstat -a 2>/dev/null || echo_not_found "lpstat"
|
lpstat -a 2>/dev/null || echo_not_found "lpstat"
|
||||||
|
|
||||||
|
#-- SY) Running in a virtual environment
|
||||||
|
printf $Y"[+] "$GREEN"Is this a virtual machine? ..... "$NC
|
||||||
|
hypervisorflag=`cat /proc/cpuinfo | grep flags | grep hypervisor 2>/dev/null`
|
||||||
|
if [ `which systemd-detect-virt 2>/dev/null` ]; then
|
||||||
|
detectedvirt=`systemd-detect-virt`
|
||||||
|
if [ "$hypervisorflag" ]; then printf $RED"Yes ("$detectedvirt")"$NC; else printf $GREEN"No"$NC; fi
|
||||||
|
else
|
||||||
|
if [ "$hypervisorflag" ]; then printf $RED"Yes"$NC; else printf $GREEN"No"$NC; fi
|
||||||
|
fi
|
||||||
|
echo ""
|
||||||
|
|
||||||
#-- SY) Container
|
#-- SY) Container
|
||||||
printf $Y"[+] "$GREEN"Is this a container? ........... "$NC
|
printf $Y"[+] "$GREEN"Is this a container? ........... "$NC
|
||||||
dockercontainer=`grep -i docker /proc/self/cgroup 2>/dev/null; find / -maxdepth 3 -name "*dockerenv*" -exec ls -la {} \; 2>/dev/null`
|
dockercontainer=`grep -i docker /proc/self/cgroup 2>/dev/null; find / -maxdepth 3 -name "*dockerenv*" -exec ls -la {} \; 2>/dev/null`
|
||||||
|
Loading…
Reference in New Issue
Block a user