Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucasfaudman/python-backdoors
Python backdoors written by me for SANS course labs and CTFs
https://github.com/lucasfaudman/python-backdoors
Last synced: 1 day ago
JSON representation
Python backdoors written by me for SANS course labs and CTFs
- Host: GitHub
- URL: https://github.com/lucasfaudman/python-backdoors
- Owner: LucasFaudman
- Created: 2023-08-03T06:47:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-03T08:01:24.000Z (over 1 year ago)
- Last Synced: 2023-08-03T08:43:43.436Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-backdoors
Python backdoors written for SANS courses and CTFs: Automating Information Security with Python
* [socket-backdoor.py](socket-backdoor.py) - A simple socket backdoor that can upload, download, and execute files.* [pyterperter-backdoor.py](pyterpreter-backdoor.py) - A backdoor allows the user to execute Python commands on the target machine throught the Python interpreter via `code.interact()` by redirecting stdin, stdout, and stderr to a socketIO instance which has the file object methods needed to read and write from the underlying socket.
* [os-dup2-backdoor.py](os-dup2-backdoor.py) - A backdoor that uses `os.dup2` to redirect stdin, stdout, and stderr directly to a socket's file descriptor. This allows the backdoor to be used with any program that uses stdin, stdout, and stderr.
## [socket-backdoor.py](socket-backdoor.py)
```
usage: socket-backdoor.py [-h] [-l HOST] [-p PORTS] [-f FAMILY] [-t TYPE]
[--protocol PROTOCOL] [--fileno FILENO] [-w WAIT]options:
-h, --help show this help message and exit
-l HOST, --host HOST The IP address to connect to
-p PORTS, --ports PORTS
A comma separated list of ports to try to connect to
-f FAMILY, --family FAMILY
The socket family to use
-t TYPE, --type TYPE The socket type to use
--protocol PROTOCOL The socket protocol to use
--fileno FILENO The file descriptor to use
-w WAIT, --wait WAIT The number of seconds to wait between connection attempts
```## [pyterperter-backdoor.py](pyterpreter-backdoor.py)
```
usage: pyterpreter-backdoor.py [-h] [-l HOST] [-p PORT] [-f FAMILY] [-t TYPE]
[--protocol PROTOCOL] [--fileno FILENO]options:
-h, --help show this help message and exit
-l HOST, --host HOST The IP address to connect to
-p PORT, --port PORT A comma separated list of ports to try to connect to
-f FAMILY, --family FAMILY
The socket family to use
-t TYPE, --type TYPE The socket type to use
--protocol PROTOCOL The socket protocol to use
--fileno FILENO The file descriptor to use
```### [os-dup2-backdoor.py](os-dup2-backdoor.py)
```
usage: os-dup2-backdoor.py [-h] [-s SHELL] [-l HOST] [-p PORT] [-f FAMILY]
[-t TYPE] [--protocol PROTOCOL] [--fileno FILENO]options:
-h, --help show this help message and exit
-s SHELL, --shell SHELL
The shell to spawn
-l HOST, --host HOST The IP address to connect to
-p PORT, --port PORT A comma separated list of ports to try to connect to
-f FAMILY, --family FAMILY
The socket family to use
-t TYPE, --type TYPE The socket type to use
--protocol PROTOCOL The socket protocol to use
--fileno FILENO The file descriptor to use
```