A Command-and-Control (CNC) Command Line Interface (CLI) tool for managing network tasks, designed for educational purposes and responsible use.
- Python 3.x installed on your system
- Basic knowledge of Python and networking concepts
- Clone this repository or download the source code as a ZIP file and extract it to a directory of your choice.
git clone https://github.com/OVHGERMANY/PythonCNC.git- Navigate to the
PythonCNCdirectory.
cd PythonCNC- Open the
cnc_config.jsonfile in a text editor and customize the settings as needed. Replaceyour_api_keywith your actual API key and adjust other settings according to your requirements.
-
Open a terminal or command prompt and navigate to the
PythonCNCdirectory. -
Run the following command to start the CNC CLI tool:
python3 cnc_cli.py(Removed) 3. If you want to enable the auto-update feature, run the following command instead:
python3 cnc_cli.py --auto-update-
Connect to the CNC CLI tool using a Raw connection client (e.g., Netcat, PuTTY) and the specified IP address and port number (default is 8888).
-
Use the available commands to control the CNC CLI tool and start attacks.
.<method> IP port time [threads]: Start an attack with the specified method, target IP, port, time (in seconds), and optionally, the number of threads.exit: Exit the CNC CLI tool.clear: Clear the screen.config <key> <value>: Update the configuration settings.
The CNC CLI tool is designed to manage network tasks and send commands to a CNC server. The tool itself does not directly perform the attacks but rather acts as an interface for users to send commands to the CNC server, which then carries out the requested tasks. Here's a high-level overview of how the CNC CLI tool works:
-
Running the CNC CLI tool: When you run the
cnc_cli.pyscript, it starts a server that listens for incoming connections on a specified port (default is 8888). Users can connect to this server using a Raw connection client (e.g., Netcat, PuTTY). -
User authentication: The CNC CLI tool checks the connecting user's IP address against a list of allowed IP addresses specified in the
cnc_config.jsonfile. If the IP address is not allowed, the connection is rejected. -
Command processing: Once a user is connected, they can enter commands to control the CNC CLI tool and start attacks. The tool processes these commands and performs the requested actions, such as starting an attack or updating configuration settings.
-
Sending commands to the CNC server: When a user requests an attack, the CNC CLI tool sends a request to the CNC server with the necessary information, such as the target IP, port, attack method, duration, and number of threads. This is typically done using an HTTP POST request or an API call, depending on the CNC server's implementation.
-
CNC server execution: The CNC server receives the request and carries out the attack using the specified method, target, and parameters. The server may have a pool of bots or other resources to perform the attack.
-
Monitoring and control: The CNC CLI tool allows users to monitor ongoing attacks and control them as needed. Users can stop attacks, adjust parameters, or start new attacks using the available commands.
-
Logging: The CNC CLI tool logs user activity and any errors that occur during command processing. This information can be useful for troubleshooting and understanding how the tool is being used.
This CNC CLI tool is intended for educational purposes and responsible use only. The user is responsible for ensuring that their actions comply with applicable laws and regulations. I "OVHGERMANY" assumes no liability for any misuse of this tool.
This project is licensed under the GNU General Public License v3.0(LICENSE).