Skip to content

fern89/C2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C2

About

A simple C2 framework. Made in pure C for agent, Python for teamserver, web UI for clients.

Main panel: image

Screenshare: image

HVNC example: image

Features

  • Scriptable
  • Beacon object files
  • Usermode unhooking
  • Modular C2
  • Traffic encryption
  • Screenshare support
  • HVNC
  • SOCKS5 proxy
  • Process migration
  • Revive on crash
  • Privilege escalation
  • Persistence

Compilation

Designed to compile with the mingw GCC Compiler. Compile agent with x86_64-w64-mingw32-gcc agent/main.c -s -Os -lws2_32 -lwininet -m64 -luser32 -lgdi32 -lole32 -lshlwapi -ladvapi32 -lurlmon -mwindows -o main.exe, sample BOF with x86_64-w64-mingw32-gcc bof/dlldemo.c -shared -o dlldemo.dll -m64, run server with python3 server/server.py

Scripting

Sample script:

unhook
sandbox
print "test" -> popint
shc_inject_apc "C:\Windows\System32\notepad.exe" hex([hex]) FALSE
print "asdf"
exec "echo \"lorem ipsum dolor sit\""
msgbox "title" "data \"big data\""
exec "dir"
sleep 3000
exec "whoami"
swap_c2 socks 127.0.0.1 6968 1000

Future plans

  • Add more documentation
  • Add more commands
  • Make stager/shellcode
  • Add agent builder UI

About

A basic C2 framework written in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published