From 914f7f515f3919ed187d2738141a5ef5acedd5be Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Wed, 30 Oct 2019 00:59:21 +0000 Subject: [PATCH 1/3] v2.1.5 --- linpeas.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linpeas.sh b/linpeas.sh index caae22a..22f8812 100755 --- a/linpeas.sh +++ b/linpeas.sh @@ -1,6 +1,6 @@ #!/bin/sh -VERSION="v2.1.4" +VERSION="v2.1.5" ########################################### #---------------) Colors (----------------# @@ -1361,7 +1361,7 @@ echo "" ##-- 25IF) Passwords files in home printf $Y"[+] "$GREEN"Finding *password* or *credential* files in home\n"$NC -(find /home /root -type f \( -name "*password*" -o -name "*credential*" sed "s,password\|credential,${C}[1;31m&${C}[0m,") || echo_not_found +(find /home /root -type f \( -name "*password*" -o -name "*credential*" \) 2>/dev/null | sed "s,password\|credential,${C}[1;31m&${C}[0m,") || echo_not_found if ! [ "$SUPERFAST" ]; then ##-- 26IF) Passwords inside files @@ -1370,4 +1370,4 @@ if ! [ "$SUPERFAST" ]; then 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," grep -R -i "password" /etc 2>/dev/null | grep "conf" | grep -v ":#\|:/\*\|: \*" | sort | uniq | sed "s,password,${C}[1;31m&${C}[0m," echo "" -fi \ No newline at end of file +fi From b83ad4b6166a62dbbf220028a60cc637bdf3ef94 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Wed, 30 Oct 2019 15:26:51 +0000 Subject: [PATCH 2/3] Update linpeas.sh --- linpeas.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linpeas.sh b/linpeas.sh index 22f8812..d26f1bc 100755 --- a/linpeas.sh +++ b/linpeas.sh @@ -1,6 +1,6 @@ #!/bin/sh -VERSION="v2.1.5" +VERSION="v2.1.6" ########################################### #---------------) Colors (----------------# @@ -542,7 +542,7 @@ echo "" #-- 8SY) SElinux printf $Y"[+] "$GREEN"selinux enabled? .......... "$NC -sestatus 2>/dev/null || echo_not_found "sestatus" +(sestatus 2>/dev/null | sed "s,disabled,${C}[1;31m&${C}[0m,";) || echo_not_found "sestatus" #-- 9SY) Printer printf $Y"[+] "$GREEN"Printer? .......... "$NC From fc361b128caf52e0a3b243379cacfee3d358e45c Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Wed, 30 Oct 2019 15:37:03 +0000 Subject: [PATCH 3/3] Update linpeas.sh --- linpeas.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/linpeas.sh b/linpeas.sh index d26f1bc..e6979ff 100755 --- a/linpeas.sh +++ b/linpeas.sh @@ -163,10 +163,10 @@ DISCOVER_BAN_BAD="No network discovery capabilities (fping or ping not found)" FPING=$(which fping) PING=$(which ping) if [ "$FPING" ]; then - DISCOVER_BAN_GOOD="$GREEN$FPING$B is available for network discovery" + DISCOVER_BAN_GOOD="$GREEN$FPING$B is available for network discovery$LG (You can use linpeas to dicover hosts, learn more with -h)" else if [ "$PING" ]; then - DISCOVER_BAN_GOOD="$GREEN$PING$B is available for network discovery" + DISCOVER_BAN_GOOD="$GREEN$PING$B is available for network discovery$LG (You can use linpeas to dicover hosts, learn more with -h)" fi fi @@ -182,7 +182,7 @@ if [ -z "$FOUND_NC" ]; then FOUND_NC=$(which nc.traditional 2>/dev/null); fi if [ "$FOUND_NC" ]; then - SCAN_BAN_GOOD="$GREEN$FOUND_NC$B is available for network discover & port scanning" + SCAN_BAN_GOOD="$GREEN$FOUND_NC$B is available for network discover & port scanning$LG (You can use linpeas to dicover hosts/port scanning, learn more with -h)" fi @@ -443,7 +443,7 @@ if [ "$SCAN_BAN_GOOD" ]; then else printf $RED"[-] $SCAN_BAN_BAD\n"$NC fi -if [ "`which nmap`" ];then +if [ "`which nmap 2>/dev/null`" ];then NMAP_GOOD=$GREEN"nmap$B is available for network discover & port scanning, you use use it yourself" printf $Y"[+] $NMAP_GOOD\n"$NC fi @@ -708,15 +708,14 @@ echo "" #-- 3UI) Clipboard and highlighted text printf $Y"[+] "$GREEN"Clipboard or highlighted text?\n"$NC -if [ `which xclip` ]; then +if [ `which xclip 2>/dev/null` ]; then echo "Clipboard: "`xclip -o -selection clipboard 2>/dev/null` | sed "s,$pwd_inside_history,${C}[1;31m&${C}[0m," echo "Highlighted text: "`xclip -o 2>/dev/null` | sed "s,$pwd_inside_history,${C}[1;31m&${C}[0m," -elif [ `xsel` ]; then +elif [ `which xsel 2>/dev/null` ]; then echo "Clipboard: "`xsel -ob 2>/dev/null` | sed "s,$pwd_inside_history,${C}[1;31m&${C}[0m," echo "Highlighted text: "`xsel -o 2>/dev/null` | sed "s,$pwd_inside_history,${C}[1;31m&${C}[0m," else echo_not_found "xsel and xclip" fi - echo "" #-- 4UI) Sudo -l