
Botnet e backdoor Python
Ares è uno strumento di accesso remoto in Python.
Avvertenza: Utilizzare questo software solo in conformità con la legislazione vigente. L'uso improprio di questo software può sollevare questioni legali ed etiche che non supporto né posso essere ritenuto responsabile.
Ares è composto da due programmi principali:
L'interfaccia web può essere eseguita su qualsiasi server che esegue Python. L'agente può essere compilato in eseguibili nativi usando pyinstaller.
Installa i requisiti Python:
pip install -r requirements.txt
Inizializza il database:
cd server
./ares.py initdb
Per compilare agent Windows su Linux, configura wine (opzionale):
./wine_setup.sh
Esegui con il server integrato (debug):
./ares.py runserver -h 0.0.0.0 -p 8080 --threaded
Oppure esegui usando gunicorn:
gunicorn ares:app -b 0.0.0.0:8080 --threads 20
Il server dovrebbe ora essere accessibile su http://localhost:8080
Esegui l'agente Python (aggiorna config.py in base alle tue esigenze):
cd agent
./agent.py
Compila un nuovo agente in un binario autonomo:
./builder.py -p Linux --server http://localhost:8080 -o agent
./agent
Per vedere un elenco delle opzioni supportate, esegui ./builder.py -h
./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>
Esegue il comando in una shell e restituisce l'output.
upload <local_file>
Carica <local_file> sul server.
download <url> <destination>
Scarica un file tramite HTTP(S).
zip <archive_name> <folder>
Crea un archivio zip della cartella.
screenshot
Acquisisce uno screenshot.
python <command|file>
Esegue un comando Python o un file locale.
persist
Installa l'agente.
clean
Disinstalla l'agente.
exit
Termina l'agente.
help
Questo aiuto.