Files
PentestPilot/bin/automation/notes_init.sh
PentestPilot Bot 461c14d676 feat: bootstrap PentestPilot toolkit, docs, and orchestrators
Initial commit of PentestPilot — AI‑assisted pentest recon and orchestration toolkit.\n\nHighlights:\n- Resumeable pipelines (full_pipeline) with manifest state and elapsed timings\n- Rich dashboard (colors, severity bars, durations, compact/json modes)\n- Web helpers: httpx→nuclei auto, tech routing + quick scanners\n- Agents: multi‑task orchestrator (web/full/ad/notes/post) with resume\n- AD/SMB, password utils, shells, transfer, privesc, tunnels\n- QoL scripts: proxy toggle, cleanup, tmux init, URL extractor\n- Docs: README (Quick Start + Docs Index), HOWTO (deep guide), TOOLKIT (catalog with examples)\n\nStructure:\n- bin/automation: pipelines, dashboard, manifest, resume, tech_actions\n- bin/web: routing, scanners, helpers\n- bin/ai: orchestrators + robust AI utils\n- bin/ad, bin/passwords, bin/shells, bin/transfer, bin/privesc, bin/misc, bin/dns, bin/scan, bin/windows, bin/hashes\n- HOWTO.md and TOOLKIT.md cross‑linked with examples\n\nUse:\n- settarget <target>; agent full <domain|hosts.txt>; dashboard --compact\n- See HOWTO.md for setup, semantics, and examples.
2025-10-08 16:00:22 +02:00

59 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
target=${1:-${TARGET:-}}
[[ -z "$target" ]] && { echo "Usage: $(basename "$0") <target> (or set TARGET)" >&2; exit 1; }
root=${HTB_ROOT:-$PWD}
dir="$root/targets/$target"
mkdir -p "$dir/scans" "$dir/loot" "$dir/www" "$dir/exploits"
notes="$dir/notes.md"
if [[ -f "$notes" ]]; then
echo "[!] $notes exists. Not overwriting." >&2
exit 1
fi
cat > "$notes" <<'MD'
# Engagement Notes
- Target: TARGET_PLACEHOLDER
- Date: DATE_PLACEHOLDER
## Scope / Access
- VPN:
- Auth:
## Recon Summary
- Hosts:
- Open Ports:
- Services:
## Web
- URLs:
- Findings:
## Creds / Keys
-
## Exploitation Plan
-
## Post-Exploitation
- Proofs:
- Loot:
## Artifacts
- Scans directory contains `.nmap`, `.gnmap`, `.xml`, and tool outputs.
MD
# In-place replace placeholders (BSD/GNU sed compatible handling)
if sed --version >/dev/null 2>&1; then
sed -i -e "s/TARGET_PLACEHOLDER/$target/g" -e "s/DATE_PLACEHOLDER/$(date +%F)/g" "$notes"
else
sed -i '' -e "s/TARGET_PLACEHOLDER/$target/g" -e "s/DATE_PLACEHOLDER/$(date +%F)/g" "$notes"
fi
echo "[+] Created $notes"