Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marcorosa/cnc-botnet-in-python

C&C Botnet written in Python with fabric
https://github.com/marcorosa/cnc-botnet-in-python

botnet fabric python

Last synced: 3 months ago
JSON representation

C&C Botnet written in Python with fabric

Awesome Lists containing this project

README

        

# CnC-Botnet-in-Python
C&C Botnet written in Python

## Description
Simple botnet written in Python using fabric.


The author is not responsible for the use of this code.

## Hosts
It is possible to load hosts from a file _hosts.txt_ included in the main directory of the project.
The default format for this file is:
```bash
username@host:port password
```

If the port number is not declared, port 22 is used:
```bash
username@host password
```
SSH connection is the default authentication way, so if the host knows the public key of the user, it is not necessary to indicate the password:
```bash
username@host
```

## Usage
To start the application, simply download the repository
```bash
git clone https://github.com/marcorosa/CnC-Botnet-in-Python
cd CnC-Botnet-in-Python
```

Install the dependencies
```bash
pip install -r requirements.txt
```

Create the _hosts.txt_ file (optional, see above), and run the start script
```bash
python start.py
```

## Example
```
=================================
MENU
=================================
[0] Load host from external file
[1] Add a new host
[2] Print selected hosts
[3] Check active hosts
[4] Select only active hosts
[5] Select bots
[6] Execute command locally
[7] Execute command on bots
[8] Run external script
[9] Open shell in a host
[10] Exit
>>>
```