__ __
/\ |_ _ (_ |_ _ ||| \ _ _
/--\|_||_(_)__)| )(-`|||__/(_)\/\/| )
Version: 1.0.0
Listener, File Hosting, and Exfiltration
Author: Mario Vata
usage: asd.py [-h] [-p PORT] [-lp LPORT] [-i INTERFACE] [-d DPORT] [-o OS] [-v] [-q]
options:
-h, --help show this help message and exit
-p PORT, --port PORT Listen port for the reverse shell
-lp LPORT, --lport LPORT
Local port for the file server
-i INTERFACE, --interface INTERFACE
The interface to use
-d DPORT, --dport DPORT
The port to use for data exfiltration
-o OS, --os OS Currently not used
-v, --verbose Verbose output
-q, --quiet Quiet output
AutoShellDown is my attempt at making an automated reverse shell that automates some basic boring stuff like:
-
Setting up a server to host files
-
Uploading and running linpeas.sh
I made this so to speed up enumeration during privilege escalation on HackTheBox machines. This is very much a work in progress and I currently don't recommend using the experimental version of this script.
- Python 3.11
- pip3
- python3.11-venv (recommended)
- git
- Kali Linux
git clone https://github.com/mariovata/AutoShellDown.git && cd AutoShellDown && python3 -m venv asd-env && source asd-env/bin/activate && pip3 install -r requirements.txt && chmod +x asd.py && clear
git clone https://github.com/mariovata/AutoShellDown.git && cd AutoShellDown && pip3 install -r requirements.txt && chmod +x asd.py && clear
Note: the clear
command is used to clear the terminal after the installation is complete.
If this is not done the manual shell will not work properly or not at all!
sudo apt install python3.11-venv
(if you don't have venv installed)python3 -m venv asd-env
- Creates a virtual environment with the nameasd-env
source asd-env/bin/activate
- Activates the virtual environmentpip3 install -r requirements.txt
- Installs the required packages (in the virtual environment)chmod +x asd.py
- Makes the script executablepython3 asd.py -h
- Runs the script (in the virtual environment)
deactivate
- Deactivates the virtual environment
pip3 install -r requirements.txt
- Installs the required packageschmod +x asd.py
- Makes the script executablepython3 asd.py -h
- Runs the script
- Automatically sets up a server to host files
- Automatically uploads and runs linpeas.sh (or other scripts)
- Automatically sets up an FTP server to exfiltrate files
- Random tmp directory name for linpeas.sh and other scripts example:
/tmp/36AGB14TE4