Merge pull request #209 from kgraefe/linpeas-fix-suid-strings-analysis

linpeass: Fix SUID strings analysis
This commit is contained in:
Carlos Polop 2021-09-15 12:42:55 +01:00 committed by GitHub
commit 0c6b5b015a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2740,7 +2740,7 @@ if echo $CHECKS | grep -q IntFiles; then
printf $ITALIC
if [ "$STRINGS" ]; then
$STRINGS "$sname" 2>/dev/null | sort | uniq | while read sline; do
sline_first="$(echo \"$sline\" | cut -d ' ' -f1)"
sline_first="$(echo "$sline" | cut -d ' ' -f1)"
if echo "$sline_first" | grep -qEv "$cfuncs"; then
if echo "$sline_first" | grep -q "/" && [ -f "$sline_first" ]; then #If a path
if [ -O "$sline_first" ] || [ -w "$sline_first" ]; then #And modifiable