Git Product home page Git Product logo

autofunkt's Introduction

AutoFunkt

       d8888          888            8888888888                888      888          
      d88888          888            888                       888      888          
     d88P888          888            888                       888      888          
    d88P 888 888  888 888888 .d  b.  8888888 888  888 88888b.  888  888 888888       
   d88P  888 888  888 888   d88  88b 888     888  888 888 "88b 888 .88P 888          
  d88P   888 888  888 888            888     888  888 888  888 888888K  888          
 d8888888888 Y88b 888 Y88b. Y88  88P 888     Y88b 888 888  888 888 "88b Y88b.        
d88P     888  "Y88888  "Y888 "Y  P"  888      "Y88888 888  888 888  888  "Y888   

    			malleable c2 => serverless cloud functions

Written by Adam Rose GitHub | twitter

Acknowledgements

Prerequisites

  • Python 3.9 or higher
  • Google Cloud Functions CLI
  • Azure Functions Core Tools

Usage

  1. Clone the repo: git clone https://github.com/FortyNorthSecurity/AutoFunkt.git
  2. Install requirements: pip3 install -r requirements.txt
  3. Generate Google Cloud Functions: python3 autofunkt.py -p /path/to/profile -t https://teamserver.url -o /path/to/output/directory -g
  4. Generate Azure Functions: python3 autofunkt.py -p /path/to/profile -t https://teamserver.url -o /path/to/output/directory -a -s <azure-subdomain> -r <route-prefix>

Command Line Arguments

  • -p, --profile_path: Path to Malleable C2 profile (required)
  • -t, --teamserver_url: Teamserver URL (required)
  • -o, --output-dir: Output directory (required)
  • -g, --google: Generate Google Cloud Functions (optional, default: False)
  • -a, --azure: Generate Azure Functions (optional, default: False)
  • -s, --azure-subdomain: Azure subdomain (required for Azure)
  • -r, --route-prefix: Azure custom route prefix (optional, default: None)

Notes

  • The teamserver_url must end with a / (slash).
  • The uri value in the http-get and http-post blocks of the Malleable C2 profile must contain only one URI string.
  • For Google Cloud Functions, the program creates a directory for each URI value and generates a main.py and requirements.txt file in each directory.
  • For Azure Functions, the program creates an azure directory and generates a main.py, host.json, proxies.json, and requirements.txt file in it.

autofunkt's People

Contributors

a-3-r avatar hardwaterhacker 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.