hydra
Run online login brute-force and password spraying with THC Hydra. Use when a user asks to test the login strength of SSH/FTP/HTTP/SMB/RDP services they own, validate a credential list against a target during an authorized engagement, or run a CTF login brute challenge.
What this skill does
# THC Hydra ## Overview Hydra is the standard online credential testing tool: it throws username/password pairs at live services (SSH, FTP, HTTP forms, SMB, RDP, MySQL, PostgreSQL, Telnet, VNC, and 50+ more) and reports valid combinations. Unlike offline crackers (John, hashcat), Hydra attacks live services — rate limits, account lockouts, and alerting systems all apply. Use only for authorized security testing and CTFs. ## Instructions ### Step 1: Prepare Usernames and Passwords ```bash # One entity per line cat > users.txt <<'EOF' admin root postgres svc_backup jdoe EOF # Reasonable password list (don't use rockyou — 14M lines is pointless online) cat > passwords.txt <<'EOF' Summer2026! ChangeMe123 Winter2025! Welcome1 Password1 EOF # Common wordlists on Kali ls /usr/share/wordlists/seclists/Passwords/Common-Credentials/ ``` ### Step 2: Attack Specific Services ```bash # SSH hydra -L users.txt -P passwords.txt -t 4 -f -V ssh://10.0.0.5 # -t 4 threads (keep low on SSH to avoid lockouts) # -f stop after first valid pair per host # -V verbose — print every attempt # FTP hydra -L users.txt -P passwords.txt ftp://10.0.0.5 -f # SMB (domain accounts) hydra -L users.txt -P passwords.txt smb://10.0.0.10 -f # RDP (slow — RDP itself rate-limits) hydra -L users.txt -P passwords.txt rdp://10.0.0.20 -t 1 -f # MySQL / PostgreSQL hydra -L users.txt -P passwords.txt mysql://10.0.0.5 hydra -L users.txt -P passwords.txt postgres://10.0.0.5 ``` ### Step 3: HTTP Form Attacks ```bash # POST form — inspect the target form first # <form action="/login" method="POST"> # <input name="username"> # <input name="password"> # </form> # On failure, the response contains: "Invalid credentials" hydra -L users.txt -P passwords.txt 10.0.0.5 http-post-form \ '/login:username=^USER^&password=^PASS^:F=Invalid credentials' \ -t 4 -f -V # HTTPS with cookies and custom headers hydra -L users.txt -P passwords.txt example.com -s 443 https-post-form \ '/api/auth:user=^USER^&pass=^PASS^:F=error\":\"bad_creds:H=Cookie\: csrftoken=abc123' \ -t 2 -f # Basic auth hydra -L users.txt -P passwords.txt 10.0.0.5 http-get /admin/ ``` ### Step 4: Password Spraying (Safer than Brute-Force) ```bash # One password across many users — avoids lockouts hydra -L all-users.txt -p 'Summer2026!' ssh://10.0.0.5 -t 1 -W 3 -f # Sequential sprays with delay for pw in 'Spring2026!' 'Summer2026!' 'Welcome123!'; do hydra -L all-users.txt -p "$pw" ssh://10.0.0.5 -t 1 -W 3 sleep 3600 # one password per hour — well under lockout thresholds done ``` ### Step 5: Output and Resume ```bash # Save results hydra -L users.txt -P passwords.txt ssh://10.0.0.5 \ -o results.txt -f # Restore after interruption hydra -R # Reads ./hydra.restore and resumes ``` ## Examples ### Example 1: Audit Your Own SSH Bastion ```bash # In the engagement agreement: "Authorized to test bastion.example.com for # credential strength on a list of service accounts." cat > svc-users.txt <<'EOF' svc_backup svc_ci svc_monitor svc_deploy EOF # 1000-entry wordlist tailored to the org cat > targeted.txt <<'EOF' Acme2026! Acme2025! BackupService1 CiRunner! MonitorAcme! EOF hydra -L svc-users.txt -P targeted.txt \ -t 2 -W 5 -f -V \ -o audit-ssh.log \ ssh://bastion.example.com # Expected output: # [22][ssh] host: bastion.example.com login: svc_backup password: BackupService1 # Report weak credentials, rotate, done. ``` ### Example 2: CTF — Break a Login Form ```bash # Reconnaissance first curl -sS -X POST http://10.10.10.50/login -d 'username=wrong&password=wrong' -i # Response contains: "Login failed. Try again." # Hydra with the matching failure string hydra -l admin -P /usr/share/wordlists/rockyou.txt \ 10.10.10.50 http-post-form \ '/login:username=^USER^&password=^PASS^:F=Login failed' \ -t 16 -f # [80][http-post-form] host: 10.10.10.50 login: admin password: letmein2024 ``` ## Guidelines - **Only target systems you own or have written authorization for.** Online brute-force against third-party services is illegal and loud. - Online attacks trip account lockouts — start with password spraying (one password × many users) before doing per-user brute force. - Keep thread counts low (`-t 1..4`). High concurrency causes false negatives when services rate-limit, and alerts defenders. - Always inspect the target form manually first to identify the real failure string — wrong `F=` matches make every attempt look successful. - Use `-W seconds` between attempts on lockout-prone services (AD, RDP). - Hydra is for live services. For captured hashes, switch to John or hashcat. - On web apps, prefer `ffuf` or `wfuzz` for deeper customization (headers, JSON bodies, CSRF tokens). Hydra is faster but less flexible. - Log every session with `-o` so you can reproduce findings and feed them into the final report.
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.