GithubHelp home page GithubHelp logo

moris9 / basicc2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0vm/basicc2

3.0 0.0 0.0 10 KB

A basic no-Login Command & Control written in Python, works on Windows & Linux and has XOR encryption.

License: MIT License

Python 100.00%

basicc2's Introduction

Command and Control (C2)

This is a simple command and control (cnc) that allows a control server to send commands to multiple target servers (slaves) simultaneously. The target servers will execute the received commands and send back the result to the control server.

Features

  • The control server listens for incoming connections from target servers.
  • Target servers connect to the control server and wait for commands to execute.
  • The control server can send commands to all connected target servers.
  • Each command is executed on a separate thread, ensuring concurrent execution.
  • Target servers automatically reconnect to the control server if the connection is lost.
  • Basic error handling for improved stability.

Getting Started

  1. Clone the repository.

    git clone https://github.com/0vm/BasicC2.git
    cd BasicC2
  2. Set up the control server:

    • Open control_server.py and replace your_secret_key with a secure secret key for authentication (line 7).
    • Open control_server.py and replace host & port with your desired host and port (line 55 & 56).
    • Run the control server:
    python control_server.py
  3. Set up the target server(s):

    • Open target_server.py and replace 'your_control_server_ip' with the actual IP address or hostname of the control server (line 12).
    • Open target_server.py and replace control_server_port with the port from the control server (line 13).
    • Run the target server(s):
    python target_server.py
  4. Use the application:

    • Type commands in the control server's command line to send them to all connected target servers.
    • Target servers will execute the commands and print the results.

Security Considerations

  • This is a basic implementation for educational purposes and should not be used in a production environment without proper security enhancements.
  • Implement robust authentication and authorisation mechanisms to prevent unauthorised access.
  • Restrict the commands that can be executed by the target servers to avoid potential security risks.
  • Ensure input validation and sanitization to avoid command injection vulnerabilities.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

This project is for educational purposes only and should not be used for any malicious activities. Use it responsibly and ethically. But who's going to stop you if you don't?

basicc2's People

Contributors

0vm avatar

Stargazers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.