不能使用sqlmap

时间:2015-06-27 08:56:59

标签: proxy tor sqlmap

root @ kali:〜#sqlmap --tor --tor-type = SOCKS5 -u http://www.target.com/abc.php?cat=50

sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org

[!]法律免责声明:未经事先双方同意,使用sqlmap攻击目标是非法的。遵守所有适用的地方,州和联邦法律是最终用户的责任。开发人员不承担任何责任,也不对此计划造成的任何误用或损害负责

[*] starting at 14:18:00

[14:18:00] [WARNING] increasing default value for option '--time-sec' to 10 because switch '--tor' was provided
[14:18:00] [INFO] setting Tor SOCKS proxy settings
[14:18:00] [INFO] testing connection to the target URL
[14:18:00] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is going to retry the request
[14:18:00] [WARNING] please make sure that you have Tor installed and running so you could successfully use switch '--tor' (e.g. 'https://help.ubuntu.com/community/Tor')
[14:18:01] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is going to retry the request
[14:18:02] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is going to retry the request
[14:18:03] [CRITICAL] unable to connect to the target URL or proxy

[*] shutting down at 14:18:03

如何解决这个问题?

2 个答案:

答案 0 :(得分:3)

您必须安装tor apt-get install tor,然后在终端中运行tor,之后您可以执行sqlmap --tor --tor-type socks5 --tor-port=9050 --check-tor -u http://www.target.com/abc.php?cat=50来执行。

答案 1 :(得分:0)

我有一个非常类似的问题,我解决它的方式是使用代理链并编辑proxychains conf文件以通过tor路由请求。这很容易做到

我没有kali打开但您可以通过打开终端并输入

来找到该文件
locate proxychains.conf