Created
June 11, 2022 11:25
-
-
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.
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
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