From 503eb679c969896b21ff9df49c8ccff22fa974a1 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Sun, 9 Jun 2019 23:02:24 +0200 Subject: [PATCH] Update linpe.sh --- linpe.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linpe.sh b/linpe.sh index fab15e5..d1383d5 100755 --- a/linpe.sh +++ b/linpe.sh @@ -256,7 +256,7 @@ cat /etc/hostname /etc/hosts /etc/resolv.conf 2>/dev/null | grep -v "^#" >> $fil dnsdomainname 2>/dev/null >> $file echo "" >> $file -printf $Y"[+] "$GREEN"Networks and neightbours\n"$NC >> $file +printf $Y"[+] "$GREEN"Networks and neighbours\n"$NC >> $file cat /etc/networks 2>/dev/null >> $file (ifconfig || ip a) 2>/dev/null >> $file iptables -L 2>/dev/null >> $file @@ -702,7 +702,7 @@ printf $Y"[+] "$GREEN"All hidden files (not in /sys/, not: .gitignore, .listing, find / -type f -iname ".*" -ls 2>/dev/null | grep -v "/sys/\|\.gitignore\|_history$\|\.profile\|\.bashrc\|\.listing\|\.ignore\|\.uuid\|\.plan\|\.htpasswd\|\.git-credentials\|.rhosts\|.depend" | head -n 100 >> $file echo "" >> $file -printf $Y"[+] "$GREEN"Readable files inside inside /tmp, /var/tmp, /var/backups(limit 100)\n"$NC >> $file +printf $Y"[+] "$GREEN"Readable files inside /tmp, /var/tmp, /var/backups(limit 100)\n"$NC >> $file filstmpback=`find /tmp /var/tmp /var/backups -type f 2>/dev/null | head -n 100` for f in $filstmpback; do if [ -r $f ]; then ls -l $f 2>/dev/null >> $file; fi; done echo "" >> $file @@ -746,4 +746,4 @@ printf $Y"[+] "$GREEN"Finding 'pwd' or 'passw' string inside /home, /var/www, /e grep -lRi "pwd\|passw" /home /var/www /root 2>/dev/null | sort | uniq >> $file grep -R -i "password.* = ['\"]\|define.*passw" /var/www /root /home 2>/dev/null | grep "\.php" | grep -v "function\|password.* = \"\"\|password.* = ''" | sed '/^.\{150\}./d' | sort | uniq | sed "s,password,${C}[1;31m&${C}[0m," >> $file grep -R -i "password" /etc 2>/dev/null | grep "conf" | grep -v ":#\|:/\*\|: \*" | sort | uniq | sed "s,password,${C}[1;31m&${C}[0m," >> $file -echo "" >> $file \ No newline at end of file +echo "" >> $file