• Stars
    star
    189
  • Rank 204,649 (Top 5 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 1 year ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python script for automating the creation of serverless cloud redirectors from Cobalt Strike malleable C2 profiles

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.

More Repositories

1

EyeWitness

EyeWitness is designed to take screenshots of websites, provide some server header info, and identify default credentials if possible.
Python
4,899
star
2

C2concealer

C2concealer is a command line tool that generates randomized C2 malleable profiles for use in Cobalt Strike.
Python
987
star
3

WMImplant

This is a PowerShell based tool that is designed to act like a RAT. Its interface is that of a shell where any command that is supported is translated into a WMI-equivalent for use on a network/remote machine. WMImplant is WMI based.
PowerShell
798
star
4

Just-Metadata

Just-Metadata is a tool that gathers and analyzes metadata about IP addresses. It attempts to find relationships between systems within a large dataset.
Python
623
star
5

Egress-Assess

Egress-Assess is a tool used to test egress data detection capabilities
PowerShell
610
star
6

GraphStrike

Cobalt Strike HTTPS beaconing over Microsoft Graph API
C
539
star
7

EXCELntDonut

Excel 4.0 (XLM) Macro Generator for injecting DLLs and EXEs into memory.
Python
498
star
8

WMIOps

This repo is for WMIOps, a powershell script which uses WMI for various purposes across a network.
PowerShell
381
star
9

EDD

Enumerate Domain Data
C#
312
star
10

PersistAssist

Fully modular persistence framework
C#
249
star
11

CIMplant

C# port of WMImplant which uses either CIM or WMI to query remote systems
C#
196
star
12

Jigsaw

Hide shellcode by shuffling bytes into a random array and reconstruct at runtime
Python
173
star
13

AggressorAssessor

Aggressor scripts for phases of a pen test or red team assessment
Python
171
star
14

hot-manchego

Macro-Enabled Excel File Generator (.xlsm) using the EPPlus Library.
C#
140
star
15

jargon

Python
114
star
16

Screenshooter

C# program to take a full size screenshot or a recording of the user's desktop. Takes in 0-3 flags
C#
83
star
17

DigDug

Python
66
star
18

FunctionalC2

A small POC of using Azure Functions to relay communications. Feel free to add additional functionality beyond this POC!
Python
66
star
19

What-The-F

This repo hosts a poc of how to execute F# code within an unmanaged process
C++
64
star
20

SqlClient

POC for .NET mssql client for accessing database data through beacon
C#
59
star
21

MiddleOut

A small .NET compression utility
C#
54
star
22

Hasher

Hasher is designed to be a tool that allows you to quickly hash plaintext strings, or compare hashed values with a plaintext locally. Not meant to crack passwords, but designed for local checks.
Python
48
star
23

GPPDeception

This script generates a groups.xml file that mimics a real GPP to create a new user on domain-joined computers
PowerShell
44
star
24

rstools

Python
39
star
25

Chromatophore

Utilities for obfuscating shellcode
C
38
star
26

RandomScripts

Scripts for public use that we've randomly written, or have updated from other people's work.
Shell
36
star
27

ProxmarkWrapper

A wrapper around the Proxmark3 client that will alert the user of specific events
Python
29
star
28

CLM-Base64

This project provides Base64 encoding and decoding functionality to PowerShell within Constrained Language Mode
PowerShell
22
star
29

SharpCollectionTemplate

PowerShell
13
star
30

Delta-Encoder

Python
12
star
31

CredCheck

.NET wrapper around LogonUserA to test creds
C#
10
star
32

RansomwareTalks

code for ransomware talks
C#
8
star
33

CUDA-Installation-Script

Quick and dirty installation script for CUDA drivers on Ubuntu 18.04 LTS to save a bit of time.
Shell
3
star