今天在新机器上安装sqlmap,运行提示AttributeError: 'module' object has no attribute 'HTTPSHandler'
网上找了找资料,发现一篇文章http://paltman.com/2007/11/15/getting-ssl-support-in-python-251/
输入如下命令:
wget http://www.openssl.org/source/openssl-0.9.8g.tar.gz
tar zxf openssl-0.9.8g.tar.gz
cd
openssl-0.9.8g
./config
#需要安装perl5
make
make install
安装好之后
vi -2.7.4/Modules/Setup.dist
接下来cd到python安装包的目录
找到以下内容,取消注释(文章说是206-209,不过我这个在210多行,差不多,一般:206回车就能看到了)
取消注释后重新编译python
cd
Python-2.7.4
./configure
make
make install
以上步骤执行后再./sqlmap.py 搞定
您可能感兴趣的文章:
如您对本文有疑问或者有任何想说的,请 点击进行留言回复,万千网友为您解惑!
网友评论