calebstewart / pwncat

Fancy reverse and bind shell handler
https://pwncat.readthedocs.io
MIT License
2.59k stars 252 forks source link

Command to `pkill -t` every other IP address different from the user's #235

Open ChocolateOverflow opened 2 years ago

ChocolateOverflow commented 2 years ago

Sometimes, either just for fun or to slow down others in a KOTH style game, I wanna run pkill -t pts/ID on other people's shells. The key here is to filter my own IP from w's output and quickly kill all terminals not from my IP. I could manually pkill while looking at w output but that takes time and automated is just better. For even more fun, consider catting /dev/urandom to every shell that's not the user's.