This commit is contained in:
carlospolop 2021-12-23 20:41:15 -05:00
parent d9192ae1aa
commit bc328b1163
2 changed files with 16 additions and 1 deletions

View File

@ -796,6 +796,21 @@ search:
search_in:
- common
- name: Log4Shell
value:
config:
auto_check: False
files:
- name: "log4j-core*.jar"
value:
type: f
search_in:
- common
- /lib
- /lib32
- /lib64
- name: OpenVPN
value:
config:

View File

@ -181,7 +181,7 @@ peass{Ldap}
if [ "$PSTORAGE_LOG4SHELL" ] || [ "$DEBUG" ]; then
print_2title "Searching Log4Shell vulnerable libraries"
printf "%s\n" "$PSTORAGE_LOG4SHELL" | while read f; do
echo "$f" | grep -E "log4j\-core\-(1\.|2\.[0-9][^0-9]|2\.1[0-6])" | sed -${E} "s,log4j\-core\-(1\.|2\.[0-9][^0-9]|2\.1[0-6]),${SED_RED},";
echo "$f" | grep -E "log4j\-core\-(1\.[^0]|2\.[0-9][^0-9]|2\.1[0-6])" | sed -${E} "s,log4j\-core\-(1\.[^0]|2\.[0-9][^0-9]|2\.1[0-6]),${SED_RED},";
done
echo ""
fi