This project is obsolete and exists solely for historical reference and code-reuse study.
It was my very first serious coding project from 2023 and has not been updated or supported since then.
PrimerC2 is an open-source Windows (x86/WoW64) C2 framework designed to be simple and extensible. It was built to explore support for Beacon Object Files (BOF) and reflective DLL loading in a minimal structure — without bundling large sets of post-exploitation tools.
This repository is provided STRICTLY for educational, research, and historical study purposes only.
- No malicious or unauthorized use is permitted. This code demonstrates concepts related to remote agent communication and post-exploitation techniques.
- It is NOT intended, endorsed, or suitable for any illegal, unethical, or unauthorized activity.
- Do NOT use this project in any real-world offensive operations, penetration tests without proper authorization, or any harmful context.
- This project remains public only as an archive of early learning work. No active development, support, or contributions are accepted.
Respect these guidelines. Unauthorized misuse harms the security community and can have severe legal consequences.
- Privilege Escalation
- Reflective Injection(Fork & run)
- Beacon Object Files(BOF)
- Compile-time obfuscation
- TimeStomping
- Transacted Hollowing
- AES-128-CBC encryption
- Migrate c2
- Plugins (Chromium Stealer,Screenshot)
- Ntdll Unhooking from suspended Process
- API Hashing
- Flooding
- SlowPost, Rapid POST & Rapid GET
- Tcp
- Udp
- And more...
Download the latest Builder. To get latest agent compile from source.
To Build Debug Mode Add the statment
--- defines.h
+ #define DEBUGTo Build Release Mode Remove the statment
--- defines.h
- #define DEBUGThen run
make
| OS | Privilege esclation | Process Injection | Defender bypass |
|---|---|---|---|
| Windows 7 | ✔️ | ✔️ | ✔️ |
| Windows 10 22h2 | ✔️ | ✔️ | ✔️ |
| Windows 11 | ✔️ | ✔️ | ✔️ |


