hollson / sdk

🐧 Shell Development Kit 🔥🔥🔥
MIT License
3 stars 0 forks source link

Query the path of the program based on the process ID #4

Open hollson opened 6 months ago

hollson commented 6 months ago

Reference

sudo ls -l /proc/$(sudo netstat -nlp | grep -w 22 | awk '{print $7}' | awk -F"/" '{ print $1 }')|grep exe
sudo ls -l /proc/$(sudo netstat -nlp | grep -w 80 | awk '{print $7}' | awk -F"/" '{ print $1 }')|grep exe