The idea of this Linux tool is to be an alternative to a Netcat listener but with the ability to determine if the received conection is a shell or not. If the conection is a shell Netpwn will also try to stabilize it to get a pty (Only Linux and MacOS shells).
Just execute pip3 install netpwn
and enjoy! You can use a virtual env or intall it system wide.
Netpwn - A netcat listener alternative
usage: netpwn [-h] [-v] [--no-pty] [-P LPORT]
A listener capable of stabilize Linux and MacOS reverse shells automatically
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
--no-pty if this flag is set, no shell stabilization is perform
-P LPORT, --lport LPORT
the port used to listen for the reverse shell (Default: 8080)