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.
Files changed (218) hide show
  1. package/package.json +2 -1
  2. package/skills/401-403-bypass-techniques/SKILL.md +348 -0
  3. package/skills/active-directory-acl-abuse/BLOODHOUND_PATHS.md +281 -0
  4. package/skills/active-directory-acl-abuse/SKILL.md +295 -0
  5. package/skills/active-directory-certificate-services/ADCS_ESC_MATRIX.md +197 -0
  6. package/skills/active-directory-certificate-services/SKILL.md +303 -0
  7. package/skills/active-directory-kerberos-attacks/KERBEROS_ATTACK_CHAINS.md +226 -0
  8. package/skills/active-directory-kerberos-attacks/SKILL.md +311 -0
  9. package/skills/ai-ml-security/SKILL.md +425 -0
  10. package/skills/android-pentesting-tricks/FRIDA_SCRIPTS.md +394 -0
  11. package/skills/android-pentesting-tricks/SKILL.md +369 -0
  12. package/skills/anti-debugging-techniques/ANTI_DEBUG_MATRIX.md +117 -0
  13. package/skills/anti-debugging-techniques/SKILL.md +407 -0
  14. package/skills/api-auth-and-jwt-abuse/SKILL.md +76 -0
  15. package/skills/api-authorization-and-bola/SKILL.md +48 -0
  16. package/skills/api-recon-and-docs/SKILL.md +61 -0
  17. package/skills/api-sec/SKILL.md +49 -0
  18. package/skills/arbitrary-write-to-rce/SKILL.md +361 -0
  19. package/skills/auth-sec/SKILL.md +41 -0
  20. package/skills/authbypass-authentication-flaws/SKILL.md +441 -0
  21. package/skills/bba-ad-attacker/SKILL.md +420 -0
  22. package/skills/bba-api-security/SKILL.md +95 -0
  23. package/skills/bba-attack-planner/SKILL.md +186 -0
  24. package/skills/bba-binary-exploit/SKILL.md +65 -0
  25. package/skills/bba-bizlogic-hunter/SKILL.md +304 -0
  26. package/skills/bba-bug-bounty/SKILL.md +245 -0
  27. package/skills/bba-cicd-redteam/SKILL.md +515 -0
  28. package/skills/bba-cloud-security/SKILL.md +97 -0
  29. package/skills/bba-container-escape/SKILL.md +161 -0
  30. package/skills/bba-credential-tester/SKILL.md +346 -0
  31. package/skills/bba-crypto-analyst/SKILL.md +54 -0
  32. package/skills/bba-ctf-solver/SKILL.md +166 -0
  33. package/skills/bba-detection-engineer/SKILL.md +93 -0
  34. package/skills/bba-engagement-planner/SKILL.md +68 -0
  35. package/skills/bba-exploit-chainer/SKILL.md +280 -0
  36. package/skills/bba-exploit-guide/SKILL.md +96 -0
  37. package/skills/bba-forensics-analyst/SKILL.md +512 -0
  38. package/skills/bba-graphql-hunter/SKILL.md +145 -0
  39. package/skills/bba-hardware-hacker/SKILL.md +57 -0
  40. package/skills/bba-jwt-cracker/SKILL.md +133 -0
  41. package/skills/bba-llm-redteam/SKILL.md +149 -0
  42. package/skills/bba-malware-analyst/SKILL.md +305 -0
  43. package/skills/bba-mobile-pentester/SKILL.md +350 -0
  44. package/skills/bba-osint-collector/SKILL.md +645 -0
  45. package/skills/bba-payload-crafter/SKILL.md +347 -0
  46. package/skills/bba-phishing-operator/SKILL.md +516 -0
  47. package/skills/bba-poc-validator/SKILL.md +249 -0
  48. package/skills/bba-privesc-advisor/SKILL.md +98 -0
  49. package/skills/bba-purple-team/SKILL.md +56 -0
  50. package/skills/bba-recon-advisor/SKILL.md +215 -0
  51. package/skills/bba-red-team-operator/SKILL.md +61 -0
  52. package/skills/bba-report-generator/SKILL.md +145 -0
  53. package/skills/bba-reverse-engineer/SKILL.md +298 -0
  54. package/skills/bba-social-engineer/SKILL.md +341 -0
  55. package/skills/bba-ssrf-hunter/SKILL.md +120 -0
  56. package/skills/bba-stig-analyst/SKILL.md +108 -0
  57. package/skills/bba-subdomain-takeover/SKILL.md +141 -0
  58. package/skills/bba-swarm-orchestrator/SKILL.md +351 -0
  59. package/skills/bba-threat-modeler/SKILL.md +574 -0
  60. package/skills/bba-vuln-scanner/SKILL.md +305 -0
  61. package/skills/bba-web-hunter/SKILL.md +285 -0
  62. package/skills/bba-wireless-pentester/SKILL.md +539 -0
  63. package/skills/binary-protection-bypass/PROTECTION_BYPASS_MATRIX.md +168 -0
  64. package/skills/binary-protection-bypass/SKILL.md +295 -0
  65. package/skills/browser-exploitation-v8/SKILL.md +334 -0
  66. package/skills/browser-exploitation-v8/V8_EXPLOITATION_PATTERNS.md +288 -0
  67. package/skills/business-logic-vuln/SKILL.md +33 -0
  68. package/skills/business-logic-vulnerabilities/CHECKLIST.md +375 -0
  69. package/skills/business-logic-vulnerabilities/METHODOLOGY.md +337 -0
  70. package/skills/business-logic-vulnerabilities/SCENARIOS.md +1095 -0
  71. package/skills/business-logic-vulnerabilities/SKILL.md +711 -0
  72. package/skills/classical-cipher-analysis/SKILL.md +663 -0
  73. package/skills/clickjacking/SKILL.md +163 -0
  74. package/skills/cmdi-command-injection/SKILL.md +687 -0
  75. package/skills/code-obfuscation-deobfuscation/SKILL.md +391 -0
  76. package/skills/container-escape-techniques/DOCKER_ESCAPE_CHAINS.md +296 -0
  77. package/skills/container-escape-techniques/SKILL.md +339 -0
  78. package/skills/cors-cross-origin-misconfiguration/SCENARIOS.md +152 -0
  79. package/skills/cors-cross-origin-misconfiguration/SKILL.md +270 -0
  80. package/skills/crlf-injection/SKILL.md +179 -0
  81. package/skills/csp-bypass-advanced/SKILL.md +259 -0
  82. package/skills/csrf-cross-site-request-forgery/SKILL.md +526 -0
  83. package/skills/csv-formula-injection/SKILL.md +144 -0
  84. package/skills/dangling-markup-injection/SKILL.md +321 -0
  85. package/skills/defi-attack-patterns/SKILL.md +355 -0
  86. package/skills/dependency-confusion/SKILL.md +178 -0
  87. package/skills/deserialization-insecure/JAVA_GADGET_CHAINS.md +511 -0
  88. package/skills/deserialization-insecure/SKILL.md +725 -0
  89. package/skills/dns-rebinding-attacks/SKILL.md +337 -0
  90. package/skills/email-header-injection/SKILL.md +349 -0
  91. package/skills/expression-language-injection/SKILL.md +243 -0
  92. package/skills/file-access-vuln/SKILL.md +33 -0
  93. package/skills/format-string-exploitation/SKILL.md +312 -0
  94. package/skills/ghost-bits-cast-attack/PAYLOAD_COOKBOOK.md +448 -0
  95. package/skills/ghost-bits-cast-attack/SKILL.md +799 -0
  96. package/skills/graphql-and-hidden-parameters/SKILL.md +50 -0
  97. package/skills/hack/SKILL.md +162 -0
  98. package/skills/hash-attack-techniques/SKILL.md +491 -0
  99. package/skills/heap-exploitation/HOUSE_OF_TECHNIQUES.md +244 -0
  100. package/skills/heap-exploitation/IO_FILE_EXPLOITATION.md +256 -0
  101. package/skills/heap-exploitation/SKILL.md +217 -0
  102. package/skills/http-host-header-attacks/SKILL.md +323 -0
  103. package/skills/http-parameter-pollution/SKILL.md +208 -0
  104. package/skills/http2-specific-attacks/SKILL.md +350 -0
  105. package/skills/idor-broken-object-authorization/SKILL.md +336 -0
  106. package/skills/injection-checking/EXTRA_INJECTION_TYPES.md +450 -0
  107. package/skills/injection-checking/SKILL.md +50 -0
  108. package/skills/insecure-source-code-management/SKILL.md +161 -0
  109. package/skills/ios-pentesting-tricks/IOS_RUNTIME_TRICKS.md +411 -0
  110. package/skills/ios-pentesting-tricks/SKILL.md +418 -0
  111. package/skills/jndi-injection/SKILL.md +265 -0
  112. package/skills/jwt-oauth-token-attacks/SKILL.md +301 -0
  113. package/skills/kernel-exploitation/KERNEL_HEAP_TECHNIQUES.md +293 -0
  114. package/skills/kernel-exploitation/KERNEL_MITIGATION_BYPASS.md +224 -0
  115. package/skills/kernel-exploitation/SKILL.md +307 -0
  116. package/skills/kubernetes-pentesting/SKILL.md +348 -0
  117. package/skills/lattice-crypto-attacks/SKILL.md +497 -0
  118. package/skills/linux-lateral-movement/SKILL.md +348 -0
  119. package/skills/linux-privilege-escalation/KERNEL_EXPLOITS_CHECKLIST.md +260 -0
  120. package/skills/linux-privilege-escalation/SKILL.md +346 -0
  121. package/skills/linux-privilege-escalation/SUID_CAPABILITIES_TRICKS.md +305 -0
  122. package/skills/linux-security-bypass/SKILL.md +345 -0
  123. package/skills/llm-prompt-injection/JAILBREAK_PATTERNS.md +306 -0
  124. package/skills/llm-prompt-injection/SKILL.md +357 -0
  125. package/skills/macos-process-injection/DYLIB_XPC_TECHNIQUES.md +373 -0
  126. package/skills/macos-process-injection/SKILL.md +384 -0
  127. package/skills/macos-security-bypass/SKILL.md +337 -0
  128. package/skills/macos-security-bypass/TCC_BYPASS_MATRIX.md +200 -0
  129. package/skills/memory-forensics-volatility/SKILL.md +323 -0
  130. package/skills/memory-forensics-volatility/VOLATILITY_CHEATSHEET.md +225 -0
  131. package/skills/mobile-ssl-pinning-bypass/SKILL.md +531 -0
  132. package/skills/network-protocol-attacks/NAME_RESOLUTION_POISONING.md +226 -0
  133. package/skills/network-protocol-attacks/SKILL.md +330 -0
  134. package/skills/nosql-injection/SKILL.md +341 -0
  135. package/skills/ntlm-relay-coercion/COERCION_METHODS.md +253 -0
  136. package/skills/ntlm-relay-coercion/SKILL.md +267 -0
  137. package/skills/oauth-oidc-misconfiguration/SKILL.md +46 -0
  138. package/skills/open-redirect/SKILL.md +380 -0
  139. package/skills/path-traversal-lfi/SKILL.md +802 -0
  140. package/skills/prototype-pollution/SKILL.md +190 -0
  141. package/skills/prototype-pollution-advanced/KNOWN_GADGETS.md +253 -0
  142. package/skills/prototype-pollution-advanced/SKILL.md +338 -0
  143. package/skills/race-condition/SKILL.md +526 -0
  144. package/skills/recon-and-methodology/SKILL.md +389 -0
  145. package/skills/recon-for-sec/SKILL.md +29 -0
  146. package/skills/request-smuggling/H2_SMUGGLING_VARIANTS.md +498 -0
  147. package/skills/request-smuggling/SKILL.md +314 -0
  148. package/skills/reverse-shell-techniques/SHELL_CHEATSHEET.md +196 -0
  149. package/skills/reverse-shell-techniques/SKILL.md +290 -0
  150. package/skills/rsa-attack-techniques/RSA_ATTACK_CATALOG.md +432 -0
  151. package/skills/rsa-attack-techniques/SKILL.md +437 -0
  152. package/skills/saml-sso-assertion-attacks/SKILL.md +41 -0
  153. package/skills/sandbox-escape-techniques/PYTHON_SANDBOX_ESCAPE.md +349 -0
  154. package/skills/sandbox-escape-techniques/SECCOMP_BYPASS.md +332 -0
  155. package/skills/sandbox-escape-techniques/SKILL.md +250 -0
  156. package/skills/smart-contract-vulnerabilities/SKILL.md +314 -0
  157. package/skills/smart-contract-vulnerabilities/SOLIDITY_VULN_PATTERNS.md +460 -0
  158. package/skills/sqli-sql-injection/SCENARIOS.md +575 -0
  159. package/skills/sqli-sql-injection/SKILL.md +489 -0
  160. package/skills/sqli-sql-injection/SQLMAP_ADVANCED.md +642 -0
  161. package/skills/ssrf-server-side-request-forgery/SCENARIOS.md +226 -0
  162. package/skills/ssrf-server-side-request-forgery/SKILL.md +323 -0
  163. package/skills/ssrf-server-side-request-forgery/URL_PARSER_TRICKS.md +650 -0
  164. package/skills/ssti-server-side-template-injection/ENGINE_PAYLOADS.md +456 -0
  165. package/skills/ssti-server-side-template-injection/SCENARIOS.md +319 -0
  166. package/skills/ssti-server-side-template-injection/SKILL.md +344 -0
  167. package/skills/stack-overflow-and-rop/ROP_ADVANCED_TECHNIQUES.md +249 -0
  168. package/skills/stack-overflow-and-rop/SKILL.md +304 -0
  169. package/skills/steganography-techniques/SKILL.md +348 -0
  170. package/skills/steganography-techniques/STEGO_TOOLS_GUIDE.md +335 -0
  171. package/skills/subdomain-takeover/SKILL.md +247 -0
  172. package/skills/symbolic-execution-tools/ANGR_COOKBOOK.md +437 -0
  173. package/skills/symbolic-execution-tools/SKILL.md +419 -0
  174. package/skills/symmetric-cipher-attacks/BLOCK_CIPHER_ATTACKS.md +364 -0
  175. package/skills/symmetric-cipher-attacks/SKILL.md +462 -0
  176. package/skills/traffic-analysis-pcap/SKILL.md +341 -0
  177. package/skills/tunneling-and-pivoting/SKILL.md +343 -0
  178. package/skills/type-juggling/SKILL.md +291 -0
  179. package/skills/unauthorized-access-common-services/PORT_SERVICE_MATRIX.md +340 -0
  180. package/skills/unauthorized-access-common-services/SKILL.md +388 -0
  181. package/skills/upload-insecure-files/SCENARIOS.md +158 -0
  182. package/skills/upload-insecure-files/SKILL.md +543 -0
  183. package/skills/vm-and-bytecode-reverse/SKILL.md +450 -0
  184. package/skills/vr-cheatsheet-authentication_bypass/SKILL.md +184 -0
  185. package/skills/vr-cheatsheet-dangerous_functions/SKILL.md +200 -0
  186. package/skills/vr-cheatsheet-linux_commands/SKILL.md +40 -0
  187. package/skills/vr-cheatsheet-rce/SKILL.md +177 -0
  188. package/skills/vr-cheatsheet-reverse_engineering/SKILL.md +144 -0
  189. package/skills/vr-cheatsheet-sqli/SKILL.md +270 -0
  190. package/skills/vr-cheatsheet-ssrf/SKILL.md +173 -0
  191. package/skills/vr-cheatsheet-xss/SKILL.md +177 -0
  192. package/skills/vr-methodology-mindset_and_tips/SKILL.md +51 -0
  193. package/skills/vr-template-vulnerability_report_template/SKILL.md +59 -0
  194. package/skills/vr-writeup-CVE-2026-9136/SKILL.md +171 -0
  195. package/skills/vr-writeup-ZVE-2026-3795/SKILL.md +350 -0
  196. package/skills/vr-writeup-api_key_leak/SKILL.md +103 -0
  197. package/skills/waf-bypass-techniques/SKILL.md +290 -0
  198. package/skills/waf-bypass-techniques/WAF_PRODUCT_MATRIX.md +202 -0
  199. package/skills/web-cache-deception/CACHE_POISONING_TECHNIQUES.md +637 -0
  200. package/skills/web-cache-deception/SKILL.md +222 -0
  201. package/skills/websocket-security/SKILL.md +454 -0
  202. package/skills/windows-av-evasion/AMSI_BYPASS_TECHNIQUES.md +289 -0
  203. package/skills/windows-av-evasion/SKILL.md +342 -0
  204. package/skills/windows-lateral-movement/CREDENTIAL_DUMPING.md +308 -0
  205. package/skills/windows-lateral-movement/SKILL.md +335 -0
  206. package/skills/windows-privilege-escalation/SKILL.md +328 -0
  207. package/skills/windows-privilege-escalation/TOKEN_POTATO_TRICKS.md +216 -0
  208. package/skills/windows-privilege-escalation/UAC_BYPASS_METHODS.md +225 -0
  209. package/skills/xslt-injection/SKILL.md +281 -0
  210. package/skills/xss-cross-site-scripting/ADVANCED_XSS_TRICKS.md +276 -0
  211. package/skills/xss-cross-site-scripting/SCENARIOS.md +278 -0
  212. package/skills/xss-cross-site-scripting/SKILL.md +379 -0
  213. package/skills/xxe-xml-external-entity/SCENARIOS.md +112 -0
  214. package/skills/xxe-xml-external-entity/SKILL.md +554 -0
  215. package/src/agent.js +1 -1
  216. package/src/session.js +47 -11
  217. package/src/skills.js +30 -6
  218. package/src/ui.js +1 -1
@@ -0,0 +1,389 @@
1
+ ---
2
+ name: recon-and-methodology
3
+ description: >-
4
+ Reconnaissance and methodology playbook. Use when mapping assets, discovering endpoints, fingerprinting technology, and building a structured testing plan for a new target.gated: true
5
+ ---
6
+
7
+ # SKILL: Recon and Methodology — Expert Bug Bounty Playbook
8
+
9
+ > **AI LOAD INSTRUCTION**: Systematic recon and bug-finding methodology from top bug hunters. Covers subdomain enumeration, endpoint discovery, tech fingerprinting, and the hunter's mental model for finding bugs that others miss. Key insight: most high-severity bugs are found through systematic coverage, not just clever payloads.
10
+
11
+ ---
12
+
13
+ ## 1. RECON HIERARCHY
14
+
15
+ ```
16
+ Target Selection
17
+ └── Scope Definition (in-scope assets)
18
+ └── Asset Discovery (subdomains, IPs, domains)
19
+ └── Tech Fingerprinting (what's running)
20
+ └── Endpoint Discovery (attack surface)
21
+ └── Vulnerability Testing (per vulnerability type)
22
+ ```
23
+
24
+ ---
25
+
26
+ ## 2. SUBDOMAIN ENUMERATION (CRITICAL FIRST STEP)
27
+
28
+ ### Passive (no DNS queries to target)
29
+ ```bash
30
+ # Subfinder (aggregates multiple sources):
31
+ subfinder -d target.com -o subdomains.txt
32
+
33
+ # Amass passive:
34
+ amass enum -passive -d target.com
35
+
36
+ # Certsh (certificate transparency):
37
+ curl -s "https://crt.sh/?q=%.target.com&output=json" | jq -r '.[].name_value' | sort -u
38
+
39
+ # SecurityTrails API, Shodan:
40
+ # Web: https://securitytrails.com/list/apex_domain/target.com
41
+ ```
42
+
43
+ ### Active (DNS brute force + resolution)
44
+ ```bash
45
+ # Massdns + wordlist:
46
+ massdns -r /path/to/resolvers.txt -t A -o S -w output.txt \
47
+ <(cat wordlist.txt | sed 's/$/.target.com/')
48
+
49
+ # ffuf for subdomain brute:
50
+ ffuf -w subdomains-wordlist.txt -u https://FUZZ.target.com \
51
+ -mc 200,301,302,403 -H "Host: FUZZ.target.com"
52
+
53
+ # DNSx for bulk resolution:
54
+ cat subdomains.txt | dnsx -a -resp -o resolved.txt
55
+
56
+ # Recommended wordlist: SecLists/Discovery/DNS/
57
+ ```
58
+
59
+ ### Virtual Host Discovery
60
+ ```bash
61
+ # ffuf vhost mode:
62
+ ffuf -w wordlist.txt -u https://target.com \
63
+ -H "Host: FUZZ.target.com" -mc 200,301,403
64
+
65
+ # gobuster vhost:
66
+ gobuster vhost -u https://target.com -w wordlist.txt
67
+ ```
68
+
69
+ ---
70
+
71
+ ## 3. SERVICE AND PORT DISCOVERY
72
+
73
+ ```bash
74
+ # Fast port scan (common ports):
75
+ nmap -T4 -F target.com -oN ports.txt
76
+
77
+ # Comprehensive scan on resolved subdomains:
78
+ cat resolved_ips.txt | nmap -iL - --open -p 80,443,8080,8443,8888,3000,5000 -oG scan.txt
79
+
80
+ # httpx for HTTP probing:
81
+ cat subdomains.txt | httpx -title -tech-detect -status-code -o live_hosts.txt
82
+
83
+ # masscan for speed on large IP ranges:
84
+ masscan -p 80,443,8080,8443 10.0.0.0/8 --rate=1000
85
+ ```
86
+
87
+ ---
88
+
89
+ ## 4. WEB TECHNOLOGY FINGERPRINTING
90
+
91
+ ```bash
92
+ # Wappalyzer (browser extension) or:
93
+ whatweb https://target.com
94
+
95
+ # httpx with tech detection:
96
+ httpx -u https://target.com -tech-detect
97
+
98
+ # Check headers manually:
99
+ curl -sI https://target.com | grep -i "server\|x-powered-by\|x-generator\|cf-ray"
100
+
101
+ # Fingerprint from:
102
+ - Server header: nginx/1.18, Apache/2.4, IIS/10.0
103
+ - X-Powered-By: PHP/7.4, ASP.NET
104
+ - Cookies: PHPSESSID (PHP), JSESSIONID (Java), _rails_session (Rails)
105
+ - HTML comments: <!-- Drupal 9 -->
106
+ - Meta generator: <meta name="generator" content="WordPress 6.2">
107
+ - JS framework files: /static/js/angular.min.js
108
+ ```
109
+
110
+ ---
111
+
112
+ ## 5. ENDPOINT DISCOVERY
113
+
114
+ ### Directory Brute Force
115
+ ```bash
116
+ # ffuf (fastest):
117
+ ffuf -u https://target.com/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-medium-files.txt \
118
+ -mc 200,301,302,403 -t 50 -o dirs.txt
119
+
120
+ # Gobuster:
121
+ gobuster dir -u https://target.com -w wordlist.txt -x php,html,js,json
122
+
123
+ # feroxbuster (recursive):
124
+ feroxbuster -u https://target.com -w wordlist.txt -x php,html,txt -r
125
+ ```
126
+
127
+ ### Parameter Discovery
128
+ ```bash
129
+ # Arjun (hidden parameter finder):
130
+ arjun -u https://target.com/api/endpoint
131
+
132
+ # x8:
133
+ x8 -u https://target.com/api/endpoint -w params-wordlist.txt
134
+ ```
135
+
136
+ ### JavaScript Source Mining
137
+ ```bash
138
+ # Extract endpoints from JS files:
139
+ gau target.com | grep '\.js$' | httpx -mc 200 | xargs -I{} curl -s {} | \
140
+ grep -oE '"/[a-zA-Z0-9/_-]+"' | sort -u
141
+
142
+ # LinkFinder:
143
+ python3 linkfinder.py -i https://target.com -d -o output.html
144
+
145
+ # GetAllURLs (gau):
146
+ gau target.com | sort -u > all_urls.txt
147
+
148
+ # Wayback URLs:
149
+ waybackurls target.com | sort -u > wayback_urls.txt
150
+ ```
151
+
152
+ ### API Endpoint Discovery
153
+ ```bash
154
+ # Common API paths:
155
+ ffuf -u https://target.com/FUZZ -w /SecLists/Discovery/Web-Content/api/api-endpoints.txt
156
+
157
+ # Swagger/OpenAPI:
158
+ test: /swagger.json /api-docs /openapi.json /v2/api-docs /.well-known/ /docs/
159
+
160
+ # GraphQL:
161
+ test: /graphql /gql /v1/graphql /api/graphql
162
+ ```
163
+
164
+ ---
165
+
166
+ ## 6. SOURCE CODE RECON
167
+
168
+ ### GitHub / GitLab Exposure
169
+ ```bash
170
+ # trufflehog (secret scanner in git history):
171
+ trufflehog git https://github.com/target-org/target-repo
172
+
173
+ # gitleaks:
174
+ gitleaks detect --source /path/to/cloned/repo
175
+
176
+ # Manual GitHub search:
177
+ # site:github.com "target.com" "api_key" OR "secret" OR "password"
178
+ # site:github.com "target.com" ".env" OR "config.php" OR "db_password"
179
+
180
+ # GitHub dorks:
181
+ # "target.com" extension:env
182
+ # "target.com" filename:*.config password
183
+ # org:target-org secret OR password OR apikey
184
+ ```
185
+
186
+ ### Exposed Environment Files
187
+ ```
188
+ # Check common paths:
189
+ https://target.com/.env
190
+ https://target.com/.git/config
191
+ https://target.com/config.json
192
+ https://target.com/config.yaml
193
+ https://target.com/credentials.json
194
+ https://target.com/secrets.json
195
+ https://target.com/wp-config.php
196
+ https://target.com/backup.sql
197
+ https://target.com/backup.zip
198
+ ```
199
+
200
+ ---
201
+
202
+ ## 7. ZSEANO'S TESTING METHODOLOGY
203
+
204
+ ### Core Philosophy
205
+ 1. **Go deep on one program** rather than spread across many — learn the application thoroughly
206
+ 2. **Build a profile of the company** — tech stack, developers, processes
207
+ 3. **Look where others don't** — check error pages, admin paths, old versions, mobile API
208
+ 4. **Follow the filter** — if input is filtered somewhere, that functionality exists and may be bypassed
209
+
210
+ ### Testing Sequence (One Page / Feature)
211
+ ```
212
+ For each input point:
213
+ 1. Non-malicious HTML tags (<h2>, <img>) → are they reflected?
214
+ 2. Incomplete tags → what happens? (<iframe src=//evil.com )
215
+ 3. Encoding tests → %0d, %0a, %09, <%00
216
+ 4. Observe the OUTPUT too (not just response) — where does your input appear?
217
+ 5. Test same input in ALL similarly-structured pages (shared code → shared vuln)
218
+ 6. Check if the same parameter exists in mobile/API endpoint (less protected)
219
+ ```
220
+
221
+ ### Parameter Insights
222
+ ```
223
+ - Each parameter tells a story: "what does this do server-side?"
224
+ - Filename → OS interaction → Path Traversal / CMDi
225
+ - URL/location → HTTP fetch → SSRF
226
+ - Template/HTML parameter → render function → SSTI
227
+ - XML field → parser → XXE
228
+ - SQL filter → query → SQLi
229
+ - User-content → storage → Stored XSS
230
+ ```
231
+
232
+ ---
233
+
234
+ ## 8. BUG BOUNTY PROGRAM TRIAGE (WHERE TO SPEND TIME)
235
+
236
+ ### High-Value Target Selection
237
+ ```
238
+ ✓ Programs with large scope (*.target.com)
239
+ ✓ Programs that pay for P2/P3 (not just RCE)
240
+ ✓ Programs with recent tech changes (migrations = new bugs)
241
+ ✓ Programs with active development (new features = new attack surface)
242
+ × Avoid: frozen/old codebases with well-known CVEs (already claimed)
243
+ × Avoid: strict programs with narrow scope (less surface)
244
+ ```
245
+
246
+ ### High-Value Feature Focus (by bug probability)
247
+ ```
248
+ Priority 1: Authentication, password reset, 2FA → account takeover
249
+ Priority 2: File upload, profile edit, API endpoints → stored XSS, IDOR
250
+ Priority 3: Admin panels, user management → BFLA, privilege escalation
251
+ Priority 4: Payment flows, subscription → business logic
252
+ Priority 5: Import/export, template rendering → XXE, SSTI
253
+ ```
254
+
255
+ ---
256
+
257
+ ## 9. NUCLEI TEMPLATES (AUTOMATED SCANNING)
258
+
259
+ ```bash
260
+ # Run all on target:
261
+ nuclei -u https://target.com -t /nuclei-templates/ -o nuclei-results.txt
262
+
263
+ # Specific categories:
264
+ nuclei -u https://target.com -t cves/ -severity critical,high
265
+ nuclei -u https://target.com -t exposures/
266
+ nuclei -u https://target.com -t misconfiguration/
267
+
268
+ # On subdomain list:
269
+ cat subdomains.txt | nuclei -t exposures/ -t misconfiguration/ -o exposed.txt
270
+ ```
271
+
272
+ ---
273
+
274
+ ## 10. COMMON MISCONFIGURATIONS (QUICK WINS)
275
+
276
+ ```
277
+ □ CORS: Access-Control-Allow-Origin: * with credentials → CSRF + data theft
278
+ □ S3 bucket public: curl https://target.s3.amazonaws.com/
279
+ □ Directory listing: response contains "Index of /"
280
+ □ .git exposed: curl https://target.com/.git/config
281
+ □ .env exposed: curl https://target.com/.env
282
+ □ Debug mode: stack traces in production (source code exposure)
283
+ □ Default credentials: admin:admin, admin:password on admin panels
284
+ □ phpinfo.php: curl https://target.com/phpinfo.php
285
+ □ Backup files: config.bak, database.sql.gz, app.zip
286
+ □ GraphQL introspection enabled: POST /graphql {"query":"{__schema{types{name}}}"}
287
+ □ Admin panels: /admin /manager /console /phpmyadmin /wp-admin
288
+ ```
289
+
290
+ ---
291
+
292
+ ## 11. QUICK REFERENCE TOOLS
293
+
294
+ | Category | Tool |
295
+ |---|---|
296
+ | Subdomain enum | subfinder, amass, massdns |
297
+ | Port scan | nmap, masscan |
298
+ | HTTP probe | httpx |
299
+ | Dir brute | ffuf, feroxbuster, gobuster |
300
+ | JS mining | LinkFinder, gau, waybackurls |
301
+ | Secret scan | trufflehog, gitleaks |
302
+ | Parameter fuzz | arjun, x8 |
303
+ | Vuln scan | nuclei |
304
+ | Proxy/intercept | Burp Suite Pro |
305
+ | JWT attacks | jwt_tool |
306
+ | SQLi | sqlmap |
307
+ | XSS | dalfox, XSStrike |
308
+ | SSRF | SSRFmap, Gopherus |
309
+
310
+ ---
311
+
312
+ ## 12. JAVA MIDDLEWARE FINGERPRINT MATRIX
313
+
314
+ | Middleware | Detection Path | Key Indicators |
315
+ |---|---|---|
316
+ | Apache Tomcat | `/manager/html`, `/manager/status` | Default creds: `tomcat:tomcat`, `admin:admin` |
317
+ | JBoss / WildFly | `/jmx-console/`, `/web-console/` | JMX MBean access, WAR deployment |
318
+ | WebLogic | `/console/`, `/wls-wsat/` | T3 protocol on 7001/7002, IIOP |
319
+ | Spring Boot Actuator | `/actuator/`, `/actuator/env`, `/actuator/heapdump` | JSON endpoint listing, heap dump contains secrets |
320
+ | Spring Boot (alt paths) | `/actuator/jolokia`, `/actuator/gateway/routes` | Jolokia JMX bridge, Gateway route injection |
321
+ | Jenkins | `/script`, `/manage` | Groovy console, API token in cookie |
322
+ | GlassFish | `/common/`, `/theme/` | Admin on 4848, default empty password |
323
+ | Jetty | `/jolokia/` | JMX access |
324
+ | Resin | `/resin-admin/` | Admin panel |
325
+
326
+ ### Spring Boot Actuator Exploitation Priority
327
+
328
+ ```
329
+ /actuator/env → Leak environment variables (DB creds, API keys)
330
+ /actuator/heapdump → Download JVM heap → search for passwords in memory
331
+ /actuator/jolokia → JMX → possible RCE via MBean manipulation
332
+ /actuator/gateway/routes → Spring Cloud Gateway → SpEL injection (CVE-2022-22947)
333
+ /actuator/configprops → All configuration properties
334
+ /actuator/mappings → All URL mappings (hidden endpoints)
335
+ /actuator/beans → All Spring beans
336
+ /actuator/threaddump → Thread dump (may leak session tokens / secrets in stack frames)
337
+ ```
338
+
339
+ ---
340
+
341
+ ## 13. INFORMATION LEAK DETECTION CHECKLIST
342
+
343
+ ### Version Control & Backup Leaks
344
+
345
+ ```
346
+ /.git/HEAD → Git repository exposed
347
+ /.svn/entries → SVN metadata
348
+ /.svn/wc.db → SVN SQLite database
349
+ /.hg/requires → Mercurial
350
+ /.bzr/README → Bazaar
351
+ /.DS_Store → macOS directory listing
352
+ ```
353
+
354
+ ### Backup File Patterns
355
+
356
+ ```
357
+ /backup.zip /backup.tar.gz /backup.sql
358
+ /wwwroot.rar /www.zip /web.zip
359
+ /db.sql /database.sql /dump.sql
360
+ /config.php.bak /config.php~ /config.php.swp
361
+ /.config.php.swp /wp-config.php.bak
362
+ /.env /.env.bak /.env.production
363
+ ```
364
+
365
+ ### API Documentation & Debug
366
+
367
+ ```
368
+ /swagger-ui.html → Swagger/OpenAPI
369
+ /swagger-ui/ → Swagger UI
370
+ /api-docs → API documentation
371
+ /graphql → GraphQL playground
372
+ /graphiql → GraphQL IDE
373
+ /debug/ → Debug endpoints
374
+ /phpinfo.php → PHP configuration
375
+ /server-status → Apache status
376
+ /server-info → Apache info
377
+ /nginx_status → Nginx status
378
+ ```
379
+
380
+ ### Cloud & Infrastructure
381
+
382
+ ```
383
+ /.aws/credentials → AWS credentials
384
+ /.docker/config.json → Docker registry auth
385
+ /robots.txt → Disallowed paths (hint list)
386
+ /sitemap.xml → Full URL listing
387
+ /crossdomain.xml → Flash cross-domain policy
388
+ /.well-known/ → Various well-known URIs
389
+ ```
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: recon-for-sec
3
+ description: >-
4
+ Entry P1 category router for reconnaissance and methodology. Use when mapping
5
+ scope, discovering assets, fingerprinting technology, building endpoint
6
+ inventory, and choosing the first high-value security testing path.gated: true
7
+ ---
8
+
9
+ # Recon and Methodology Router
10
+
11
+ This is the starting router for new targets and unknown attack surfaces.
12
+
13
+ ## When to Use
14
+
15
+ - You just received a new target and do not yet know what to test first
16
+ - You need to begin with asset discovery, tech fingerprinting, endpoint inventory, and test-route planning
17
+ - You want to build follow-up testing on structured methodology instead of random payload enumeration
18
+
19
+ ## Skill Map
20
+
21
+ - [Recon and Methodology](../recon-and-methodology/SKILL.md)
22
+ - [Insecure Source Code Management](../insecure-source-code-management/SKILL.md) — .git/.svn/.hg exposure detection
23
+ - [Dependency Confusion](../dependency-confusion/SKILL.md) — Supply chain reconnaissance for internal package names
24
+
25
+ ## Recommended Flow
26
+
27
+ 1. First confirm in-scope assets and target type
28
+ 2. Then perform asset discovery, port/service identification, technology fingerprinting, and endpoint collection
29
+ 3. Route based on collected findings to [api-sec](../api-sec/SKILL.md), [auth-sec](../auth-sec/SKILL.md), [injection-checking](../injection-checking/SKILL.md), or [business-logic-vuln](../business-logic-vuln/SKILL.md)