0

我已经在我的网页中编写了一个登录程序,现在我想针对字典攻击对其进行测试。我正在使用 Apache 并且我的网站不在线所以要访问它我连接到 localhost/website 在 hydra 我正在使用命令

hydra -l username -P passList.txt localhost/website http-post-form "/logIn.php:user=^USER^&pass=^PASS:forgot"

但它以错误终止

[DATA] attacking service http-post-form on port 80 [ERROR] could not resolve address: localhost/website 0 of 1 target completed, 0 valid passwords found [ERROR] 1 target did not resolve or could not be connected 问题是什么?

4

2 回答 2

2

使用 localhost 某处的 ip 地址,例如:

hydra -l 用户名 -P passList.txt 127.0.0.1/website http-post-form "/logIn.php:user=^USER^&pass=^PASS:forgot"

于 2016-09-14T08:24:13.810 回答
0

尝试这个:

hydra -l username -P passList.txt localhost http-post-form \
    "/website/logIn.php:user=^USER^&pass=^PASS:forgot"
于 2015-01-25T00:46:56.303 回答