Skip to content

Instantly share code, notes, and snippets.

@timb-machine
Created December 16, 2022 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timb-machine/41b46c1d3b20b3362b5f93151f3c9a4d to your computer and use it in GitHub Desktop.
Save timb-machine/41b46c1d3b20b3362b5f93151f3c9a4d to your computer and use it in GitHub Desktop.
Hunting for AIX getenv() victims
#!/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