Notes

Hydra

Back to cyber security page


What is Hydra?

Hydra is brute-forcing common passwords for many protocols. On github of hydra project , it is refered as “Hydra is a tool to guess/crack valid login/password pairs.”


Syntax

Syntax: hydra -l LOGIN -L FILE -p PASS -P FILE -C FILE -e nsr -o FILE -t TASKS -M FILE -T TASKS -w TIME -W TIME -f -s PORT -x MIN:MAX:CHARSET -c TIME -ISOuvVd46 -m MODULE_OPT service://server[:PORT][/OPT



Supported services:

These services were not compiled in: afp ncp oracle sapr3 smb2.


Hydra proxy & Example

Use HYDRA_PROXY_HTTP or HYDRA_PROXY environment variables for a proxy setup. E.g. % export HYDRA_PROXY=socks5://l:p@127.0.0.1:9150 (or: socks4:// connect://) % export HYDRA_PROXY=connect_and_socks_proxylist.txt (up to 64 entries) % export HYDRA_PROXY_HTTP=http://login:pass@proxy:8080 % export HYDRA_PROXY_HTTP=proxylist.txt (up to 64 entries)

Examples: hydra -l user -P passlist.txt ftp://192.168.0.1 hydra -L userlist.txt -p defaultpw imap://192.168.0.1/PLAIN hydra -C defaults.txt -6 pop3s://[2001:db8::1]:143/TLS:DIGEST-MD5 hydra -l admin -p password ftp://[192.168.0.0/24]/ hydra -L logins.txt -P pws.txt -M targets.txt ssh hydra -l username -P wordlist MACHINE_IP http-post-form “login/:username=^USER^&password=^PASS^:F=incorrect”


Source