Python back door for persistence
This script was written as part of the Red Siege python project. It provides a reverse shell or bind shell for use on a Linux or Windows target to establish persistence. After compromising a target copy the python script over and set it to run automatically at desired interval or on system bootup to reestablish shell.
Options are -l for Linux, -w for Windows, -r for reverse shell, and -b for bind shell.
Set RHOST and RPORT variables in script for reverse shell. Set LHOST and LPORT variables for bind shell.
useage: python bd.py -l -r python bd.py -l -b python bd.py -w -r python bd.py -w -b
To do: add functionality for Windows API calls and encrypted shellcode