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/responder_loot_parser.py
View on GitHub#!/usr/bin/env python3
"""
responder_loot_parser.py - Parse Responder/ntlmrelayx loot, dedupe, and
prepare hashes for hashcat + flag NTLMv1 (crackable to NT hash).
USAGE:
# Parse a Responder log directory (default /usr/share/responder/logs)
python3 responder_loot_parser.py --logs /usr/share/responder/logs
# Parse a single hash file and emit hashcat-ready files
python3 responder_loot_parser.py --file SMB-NTLMv2-SSP-10.0.0.5.txt --outdir ./loot
DEPENDENCIES: Python 3.8+ stdlib only.
Responder writes per-host files like:
HTTP-NTLMv2-<ip>.txt, SMB-NTLMv1-<ip>.txt, MSSQL-NTLMv2-<ip>.txt ...
Each line is a captured hash in the standard "user::domain:..." NetNTLM format.
NTLMv1 (hashcat -m 5500) can be cracked to the NT hash instantly via
crack.sh / rainbow tables if the challenge was the magic 1122334455667788
(Responder default with --lm). This tool flags those for priority handling.
"""
import argparse
import os
import re
import sys
from collections import defaultdict
# hashcat mode mapping by captured-hash type
HASHCAT_MODES = {
"NTLMv2": 5600, # NetNTLMv2
"NTLMv1": 5500, # NetNTLMv1 (also crackable to NT hash via crack.sh)
}
# Responder default static challenge -> means NTLMv1 may be crack.sh-trivial
MAGIC_CHALLENGE = "1122334455667788"
LINE_RE = re.compile(r"^(?P<user>[^:]+)::(?P<domain>[^:]*):(?P<rest>.+)$")
def classify(line: str) -> str:
"""Return 'NTLMv1' or 'NTLMv2' based on field structure."""
parts = line.strip().split(":")
# NTLMv2: user::domain:serverchallenge:NTproofstr:blob (>=6 fields)
# NTLMv1: user::domain:LMresp:NTresp:challenge (5 fields, hex)
if len(parts) == 6:
return "NTLMv2"
if len(parts) == 5:
return "NTLMv1"
# ntlmrelayx multi-target format sometimes adds prefix; fall back on blob length
return "NTLMv2" if len(parts) > 5 else "NTLMv1"
def iter_hash_files(logs_dir: str):
for fn in os.listdir(logs_dir):
if fn.endswith(".txt") and ("NTLM" in fn or "SSP" in fn):
yield os.path.join(logs_dir, fn)
def parse_files(files):
"""Return dict keyed by (user, domain, type) -> hashline (deduped)."""
seen = {}
for path in files:
try:
with open(path, "r", errors="ignore") as fh:
for raw in fh:
line = raw.strip()
if not line or "::" not in line:
continue
m = LINE_RE.match(line)
if not m:
continue
htype = classify(line)
key = (m.group("user").lower(), m.group("domain").lower(), htype)
# keep first occurrence (dedupe identical user/domain/type)
if key not in seen:
seen[key] = line
except OSError as e:
print(f"[!] skip {path}: {e}", file=sys.stderr)
return seen
def main():
ap = argparse.ArgumentParser(description="Parse Responder/ntlmrelayx loot.")
g = ap.add_mutually_exclusive_group(required=True)
g.add_argument("--logs", help="Responder logs directory")
g.add_argument("--file", help="Single hash file")
ap.add_argument("--outdir", default="./loot", help="Output directory")
args = ap.parse_args()
files = [args.file] if args.file else list(iter_hash_files(args.logs))
if not files:
print("[!] no hash files found", file=sys.stderr)
sys.exit(1)
seen = parse_files(files)
os.makedirs(args.outdir, exist_ok=True)
buckets = defaultdict(list)
priority_v1 = []
for (user, domain, htype), line in seen.items():
buckets[htype].append(line)
if htype == "NTLMv1" and MAGIC_CHALLENGE in line.replace(":", ""):
priority_v1.append((user, domain, line))
for htype, lines in buckets.items():
mode = HASHCAT_MODES.get(htype, "?")
out = os.path.join(args.outdir, f"hashes_{htype}.txt")
with open(out, "w") as fh:
fh.write("\n".join(lines) + "\n")
print(f"[+] {len(lines):4d} {htype} hashes -> {out}")
print(f" hashcat -m {mode} {out} /usr/share/wordlists/rockyou.txt -r best64.rule")
if priority_v1:
print(f"\n[!!] {len(priority_v1)} NTLMv1 with static challenge "
f"({MAGIC_CHALLENGE}) -> submit to crack.sh for instant NT hash:")
for user, domain, _ in priority_v1:
print(f" {domain}\\{user}")
# unique account summary
users = {(u, d) for (u, d, _) in seen}
print(f"\n[=] {len(users)} unique accounts captured across {len(files)} files")
if __name__ == "__main__":
main()
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 |