Skip to content

offset7/DarkSophia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 DarkSophia — Real-Time WebSocket Simple C2 undetectable

DarkSophia is a simple C2 designed for red-team operations.
It delivers instant, bidirectional communication between Windows implants and an operator dashboard using native WebSockets, eliminating traditional HTTP polling and significantly reducing detection footprint.


🔥 Features

🛰 Real-Time WebSocket C2

  • Full-duplex communication
  • Instant command execution
  • Immediate output streaming
  • No HTTP polling — stealthier, faster, cleaner

🎛 DarkSophia Dashboard

  • Real-time implant listing
  • Online/offline indicators
  • Per-implant terminal
  • Command history
  • Modern neon cyber UI
  • Entire UI uses WebSockets

👾 Native Windows Implant

  • Written in C++ using WinHTTP WebSocket API
  • No external libraries or dependencies
  • Hidden PowerShell execution
  • Lightweight & stealthy
  • Works on Windows 8 / 10 / 11 / Server

✔ Compile Windows Impl using the exact command below:

cl /O2 /EHsc ghost_implant.cpp winhttp.lib user32.lib advapi32.lib /link /OUT:ghost.exe

🛠 Running the C2 Server

You need Python 3.10+.

Install dependencies:

pip install fastapi uvicorn websockets

Run C2

python c2_server.py

🕹 Operator Dashboard

After starting the server, open: http://YOUR-SERVER:8001/

Dashboard features:

Live list of implants Host/user identity Full command terminal Live output stream Command history per implant Everything updates in real time via WebSockets.

🧩 Implant Behavior (ghost_implant.cpp)

The implant: Generates a unique implant ID Opens a WebSocket connection: ws://SERVER:8001/ws/<implant_id>

Sends system metadata: INFO::hostname|username Waits for operator commands Executes them via hidden PowerShell Sends the command output back instantly This design provides high responsiveness and low network signature.

⚠️ Legal & Ethical Notice

This project is for authorized security testing, red-team operations, and educational research only. Do NOT use this tool for unauthorized access, real-world exploitation, or illegal activity of any kind. You are solely responsible for any use or misuse.

About

DarkSophia - COMMAND & CONTROL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors