Skip to content

Instantly share code, notes, and snippets.

@zimnyaa
Created June 11, 2022 11:25
Show Gist options
  • Save zimnyaa/61ada96d02ae4a10c802ab1cd7a867fc to your computer and use it in GitHub Desktop.
Save zimnyaa/61ada96d02ae4a10c802ab1cd7a867fc to your computer and use it in GitHub Desktop.
A simple bash oneliner to hunt for suitable LD_PRELOAD candidates on Linux.
echo 'connections';netstat -tp 2>/dev/null|grep tcp|awk '{print $7}'|cut -d '/' -f 2|uniq -c;echo 'processes';ps aux|grep -v "\\["|awk '{print $11}'|uniq -c|sort -r|head -n 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment