Code Monkey home page Code Monkey logo

tcp's Introduction

Mythic P2P C2

A simple P2P profile for Mythic Agents.

In order to use it, another Agent needs to link to the Agent using it.

TCP C2 Workflow

sequenceDiagram
    participant M as Mythic
    participant F as DelegateAgent
    participant A as Agent
    Note over A: 1. Listens on Port
    Note over F: 2. do link
    F ->> A: 3. Connect to Port
    loop single TCP Connection
    A -->> F: (optional) 4
    F -->> M: (optional) 5
    M ->> F: 6
    F ->> A: 7
    end
Loading
  1. The Agent sends data for Mythic to DelegateAgent
  2. DelegateAgent forwards the whole message as part of his messages to mythic
  3. Mythic knows that Agent can be reached via DelegateAgent and sends the data to DelegateAgent
  4. DelegateAgent forwards the encrypted message to the Agent

The actual messages exchanged over TCP (4 & 7) are the ones Mythic uses internally (b64(uuid+aes(json))). Messages will be pushed to the Agent from Mythic if the DelegateAgent allows it ( get_delegate_tasks=True), which is why the steps 4 & 5 are optional as long as the Agent does not have anything to report back.

How to install an agent in this format within Mythic

Use mythic-cli to install it: sudo ./mythic-cli install github https://github.com/MythicC2Profiles/tcp.git

See https://docs.mythic-c2.net/installation#installing-agents-c2-profiles for more information

tcp's People

Contributors

djhohnstein avatar darkc0ntributor avatar

Watchers

James Cloos 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.