Created
December 16, 2022 23:30
-
-
Save timb-machine/41b46c1d3b20b3362b5f93151f3c9a4d to your computer and use it in GitHub Desktop.
Hunting for AIX getenv() victims
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
find / \( -perm -u+s -o -perm -g+s \) 2>/dev/null | while read line | |
do | |
echo +++ $line | |
dump -X 32_64 -T $line 2>/dev/null | grep getenv | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment