Remote hunting workflow
Skill ShulkwiSEC/bb-huge/skills/curated/remote-hunting-workflow
bb-huge π€ , Personal bug bounty findings hub and bug bounty orchestration for multiple agents
npx -y skills add ShulkwiSEC/bb-huge --skill remote-hunting-workflowAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 18 stars18 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Set up 3 remote control modes for Claude Code CLI β local iTerm pair hacking, Discord bot for mobile control, and tmux multi-pane multi-target workflows. Includes dangerouslySkipPermissions security hardening. Based on Critical Thinking Bug Bounty Podcast Episode 166.
The file declares its own license as Apache-2.0. That is the authorβs claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
10.8 KB, ~2.5k tokens by cl100k_base, as published. Nobody here has run it
Remote Hunting Workflow
When to Use
- When you need to control Claude hunting sessions from mobile or remote locations.
- When testing multiple targets simultaneously and need organized workspace management.
- When setting up a VPS as a persistent hunting environment that runs 24/7.
- When configuring
dangerouslySkipPermissionssafely without exposing sensitive data.
Prerequisites
- Claude Code CLI installed on local machine or VPS
- For Discord: Discord account + bot token + server with private channels
- For tmux: SSH access to VPS + tmux installed
- Understanding of Claude permission model
Core Concept: 3 Modes of Hunting
The video describes 3 ways to use Claude Code CLI for hunting, each with different trade-offs for control, mobility, and parallelism. β Episode 166
| Mode | Usage | Best For |
|---|---|---|
| Local Desktop (50%) | iTerm / Windows Terminal | Interactive pair hacking sessions |
| Discord Bot | Send commands from phone β VPS executes | Remote control from anywhere |
| tmux Multi-Pane | 4 panes Γ 4 targets | Parallel multi-target hunting |
Workflow
Mode 1: Local Desktop (Primary β 50% usage)
The simplest setup. Run Claude Code CLI in your terminal alongside your browser and Burp/Kaido.
Terminal Layout:
βββββββββββββββββββββββ¬ββββββββββββββββββββββ
β β β
β Claude Code CLI β Burp Suite / β
β (main session) β Kaido Proxy β
β β β
βββββββββββββββββββββββ΄ββββββββββββββββββββββ€
β β
β Browser (target application) β
β β
βββββββββββββββββββββββββββββββββββββββββββββ
Workflow:
- Browse target in browser β traffic flows through proxy
- Spot interesting behavior β describe to Claude in CLI
- Claude writes scripts, tests endpoints, logs findings
- You review Claude's work, provide creative direction
Mode 2: Discord Bot for Remote Hunting
Set up a Discord bot on your VPS that wraps Claude Code CLI. Send hacking commands from your phone.
// discord-claude-bot/index.ts
#!/usr/bin/env npx tsx
import { Client, GatewayIntentBits, Message } from "discord.js";
import { execSync, spawn } from "child_process";
const DISCORD_TOKEN = process.env.DISCORD_BOT_TOKEN!;
const ALLOWED_USER_IDS = (process.env.ALLOWED_USERS || "").split(",");
const ALLOWED_CHANNEL_IDS = (process.env.ALLOWED_CHANNELS || "").split(",");
const MAX_OUTPUT_LENGTH = 1900; // Discord message limit
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
],
});
client.on("messageCreate", async (message: Message) => {
// Security: Only respond to authorized users in authorized channels
if (message.author.bot) return;
if (!ALLOWED_USER_IDS.includes(message.author.id)) return;
if (!ALLOWED_CHANNEL_IDS.includes(message.channel.id)) return;
const content = message.content.trim();
if (!content.startsWith("!hunt")) return;
const command = content.replace("!hunt ", "").trim();
// Security: Block dangerous commands
const BLOCKED = ["rm -rf", "mkfs", "dd if=", "> /dev/", "passwd", "sudo"];
if (BLOCKED.some((b) => command.toLowerCase().includes(b))) {
await message.reply("β Blocked: destructive command detected.");
return;
}
await message.reply(`π Executing: \`${command.substring(0, 100)}\``);
try {
// Run Claude CLI with the command
const output = execSync(
`claude --print "${command.replace(/"/g, '\\"')}"`,
{ timeout: 120_000, maxBuffer: 5 * 1024 * 1024, cwd: process.env.HUNT_DIR || "/home/hunter/targets" }
).toString();
// Truncate output for Discord
const truncated = output.length > MAX_OUTPUT_LENGTH
? output.substring(0, MAX_OUTPUT_LENGTH) + "\n... (truncated)"
: output;
await message.reply(`\`\`\`\n${truncated}\n\`\`\``);
} catch (error: any) {
await message.reply(`β Error: ${error.message?.substring(0, 500) || "Unknown error"}`);
}
});
client.login(DISCORD_TOKEN);
console.log("π€ Discord Claude Bot running...");
Setup steps:
- Create Discord bot at discord.dev
- Create a private server with channel
#hunting - Set environment variables on VPS:
export DISCORD_BOT_TOKEN="your-bot-token" export ALLOWED_USERS="your-discord-user-id" export ALLOWED_CHANNELS="hunting-channel-id" export HUNT_DIR="/home/hunter/targets/current-target" - Run with:
npx tsx discord-claude-bot/index.ts
Usage from phone:
!hunt check findings/ for any new files in the last hour
!hunt test /api/v2/users/999 for IDOR β compare response with user 1
!hunt what's the status of overnight scan?
!hunt summarize all leads discovered today
Mode 3: tmux Multi-Target Hunting
#!/bin/bash
# scripts/tmux-hunting-setup.sh
# Creates a 4-pane tmux session, each pane targeting a different program
SESSION="hunting"
tmux new-session -d -s $SESSION
# Pane 1: Target A
tmux send-keys -t $SESSION "cd ~/targets/target-a && claude" Enter
# Pane 2: Target B
tmux split-window -h -t $SESSION
tmux send-keys -t $SESSION "cd ~/targets/target-b && claude" Enter
# Pane 3: Target C
tmux split-window -v -t $SESSION
tmux send-keys -t $SESSION "cd ~/targets/target-c && claude" Enter
# Pane 4: Target D
tmux select-pane -t 0
tmux split-window -v -t $SESSION
tmux send-keys -t $SESSION "cd ~/targets/target-d && claude" Enter
# Even layout
tmux select-layout -t $SESSION tiled
# Attach
tmux attach -t $SESSION
Result:
ββββββββββββββββββββ¬βββββββββββββββββββ
β Target A β Target B β
β (Claude CLI) β (Claude CLI) β
β .claudemd β
β .claudemd β
β
ββββββββββββββββββββΌβββββββββββββββββββ€
β Target C β Target D β
β (Claude CLI) β (Claude CLI) β
β .claudemd β
β .claudemd β
β
ββββββββββββββββββββ΄βββββββββββββββββββ
Each pane has its own .claudemd with scope. Claude instances are independent.
Security: dangerouslySkipPermissions
"We use
dangerouslySkipPermissionsso Claude doesn't ask for permission every time. But we NEVER give Claude access to 1Password or personal email." β Episode 166
# Enable (use with caution):
claude --dangerously-skip-permissions
# Or set in config:
# ~/.claude/settings.json
{
"permissions": {
"dangerouslySkipPermissions": true
}
}
Security hardening when using this flag:
| Rule | Why |
|---|---|
| β No 1Password / credential manager access | Claude could read ALL passwords |
| β No personal email access | Claude could send/read emails |
| β No SSH key access to production systems | Prevent lateral movement |
| β No cloud provider CLI with admin credentials | Prevent infrastructure damage |
| β Sandbox in dedicated VPS user account | Limit blast radius |
| β Network-only access to in-scope targets | Firewall outbound to scope only |
| β Read-only access to source code directories | Prevent modification |
| β Write access ONLY to findings/notes/leads | Controlled output |
Recommended VPS user setup:
# Create a sandboxed user for Claude hunting
useradd -m -s /bin/bash hunter
# Restrict network access (iptables example)
iptables -A OUTPUT -m owner --uid-owner hunter -d <target-ip-range> -j ACCEPT
iptables -A OUTPUT -m owner --uid-owner hunter -j DROP # block everything else
Decision Point π
flowchart TD
A{Where are you?} -->|At desk| B[Mode 1: Local Desktop]
A -->|On phone / traveling| C[Mode 2: Discord Bot]
A -->|At desk, multiple targets| D[Mode 3: tmux Multi-Pane]
B --> E[Interactive pair hacking]
C --> F[Remote commands via Discord]
D --> G[4 parallel Claude sessions]
E --> H{Need overnight?}
F --> H
G --> H
H -->|Yes| I[Set overnight prompt + dangerouslySkipPermissions]
H -->|No| J[Continue interactive session]
Creativity Directive
IMPORTANT: Build additional remote control interfaces β Slack bot, Telegram bot, web dashboard. Create alerting that pings you on Discord when a critical finding is logged. Automate target rotation in tmux. Think like an attacker. Adapt. Improvise.
π΅ Blue Team
- Deploy robust WAF rules to detect anomalies.
- Monitor logs for unusual access patterns.
π‘οΈ Remediation & Mitigation Strategy
- Input Validation: Sanitize and strictly type-check all inputs.
- Least Privilege: Constrain component execution bounds.
π Shared Resources
For cross-cutting methodology applicable to all vulnerability classes, see:
_shared/references/elite-chaining-strategy.mdβ Exploit chaining methodology and high-payout chain patterns_shared/references/elite-report-writing.mdβ HackerOne-optimized report writing, CWE quick reference_shared/references/real-world-bounties.mdβ Verified disclosed bounties by vulnerability class
References
- Source: Critical Thinking Ep. 166
- tmux Cheat Sheet: https://tmuxcheatsheet.com/
- Discord.js Docs: https://discord.js.org/
- Claude CLI Permissions: https://docs.anthropic.com/en/docs/claude-code