From f99387feed72eb9112e4916608bcc6da4888330c Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Fri, 18 Aug 2023 13:19:53 +0200 Subject: [PATCH 1/3] Update linpeas_base.sh --- linPEAS/builder/linpeas_parts/linpeas_base.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linPEAS/builder/linpeas_parts/linpeas_base.sh b/linPEAS/builder/linpeas_parts/linpeas_base.sh index d7a6148..9a00d43 100755 --- a/linPEAS/builder/linpeas_parts/linpeas_base.sh +++ b/linPEAS/builder/linpeas_parts/linpeas_base.sh @@ -247,7 +247,7 @@ print_support () { | ${BLUE}Do you like PEASS?${GREEN} | |---------------------------------------------------------------------------------| | ${YELLOW}Get the latest version${GREEN} : ${RED}https://github.com/sponsors/carlospolop${GREEN} | - | ${YELLOW}Follow on Twitter${GREEN} : ${RED}@hacktricks_live${GREEN} | + | ${YELLOW}Follow on Twitter${GREEN} : ${RED}@hacktricks_live${GREEN} | | ${YELLOW}Respect on HTB${GREEN} : ${RED}SirBroccoli ${GREEN} | |---------------------------------------------------------------------------------| | ${BLUE}Thank you! ${GREEN} | From 5199c4c3959ac7e9bae8ee220edd79d10bb12012 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Thu, 24 Aug 2023 19:48:31 +0200 Subject: [PATCH 2/3] Update ProcessInfo.cs --- winPEAS/winPEASexe/winPEAS/Checks/ProcessInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winPEAS/winPEASexe/winPEAS/Checks/ProcessInfo.cs b/winPEAS/winPEASexe/winPEAS/Checks/ProcessInfo.cs index 27d545a..d1a6b14 100644 --- a/winPEAS/winPEASexe/winPEAS/Checks/ProcessInfo.cs +++ b/winPEAS/winPEASexe/winPEAS/Checks/ProcessInfo.cs @@ -14,7 +14,7 @@ namespace winPEAS.Checks new List { - //PrintInterestingProcesses, + PrintInterestingProcesses, PrintVulnLeakedHandlers, }.ForEach(action => CheckRunner.Run(action, isDebug)); } From 05f6cb7b0aef2edb51f94166b75dfb6ff38689de Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Mon, 2 Oct 2023 23:54:28 +0200 Subject: [PATCH 3/3] Update 9_interesting_files.sh --- linPEAS/builder/linpeas_parts/9_interesting_files.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linPEAS/builder/linpeas_parts/9_interesting_files.sh b/linPEAS/builder/linpeas_parts/9_interesting_files.sh index b7ed08a..6e69b88 100644 --- a/linPEAS/builder/linpeas_parts/9_interesting_files.sh +++ b/linPEAS/builder/linpeas_parts/9_interesting_files.sh @@ -239,14 +239,14 @@ fi ##-- IF) Passwords in history files if [ "$PSTORAGE_HISTORY" ] || [ "$DEBUG" ]; then print_2title "Searching passwords in history files" - printf "%s\n" "$PSTORAGE_HISTORY" | while read f; do grep -Ei "$pwd_inside_history" "$f" 2>/dev/null | sed -${E} "s,$pwd_inside_history,${SED_RED},"; done + printf "%s\n" "$PSTORAGE_HISTORY" | while read f; do grep -EiH "$pwd_inside_history" "$f" 2>/dev/null | sed -${E} "s,$pwd_inside_history,${SED_RED},"; done echo "" fi ##-- IF) Passwords in config PHP files if [ "$PSTORAGE_PHP_FILES" ] || [ "$DEBUG" ]; then print_2title "Searching passwords in config PHP files" - printf "%s\n" "$PSTORAGE_PHP_FILES" | while read c; do grep -EiI "(pwd|passwd|password|PASSWD|PASSWORD|dbuser|dbpass).*[=:].+|define ?\('(\w*passw|\w*user|\w*datab)" "$c" 2>/dev/null | grep -Ev "function|password.*= ?\"\"|password.*= ?''" | sed '/^.\{150\}./d' | sort | uniq | sed -${E} "s,[pP][aA][sS][sS][wW]|[dD][bB]_[pP][aA][sS][sS],${SED_RED},g"; done + printf "%s\n" "$PSTORAGE_PHP_FILES" | while read c; do grep -EiIH "(pwd|passwd|password|PASSWD|PASSWORD|dbuser|dbpass).*[=:].+|define ?\('(\w*passw|\w*user|\w*datab)" "$c" 2>/dev/null | grep -Ev "function|password.*= ?\"\"|password.*= ?''" | sed '/^.\{150\}./d' | sort | uniq | sed -${E} "s,[pP][aA][sS][sS][wW]|[dD][bB]_[pP][aA][sS][sS],${SED_RED},g"; done echo "" fi