微慑信息网

[python] python如何安装httplib2

1.
首先,为了方便期间,我们要设置环境变量,这样就不用在命令行下给出python.exe的具体位置,具体说如下:
假设你的python安装在C:Python27目录下,设置环境变量方法如下:
方法一、我的电脑->属性->高级->环境变量->系统变量
在系统变量里找到PATH,双击PATH,在结尾加上 ";C:Python27"(不要引号)
方法二、运行->cmd
输入set PATH=%PATH%;C:Python25
接下来,再在当前的 cmd下输入python,即可运行
其次,安装httplib2时,应该是先cd命令到httplib2解压文件夹的位置,然后再“python setup.py install",这样就能成功安装。
要是顺序改成”python ……/setup.py install",而不使用cd的话,会导致提示错误:
error: package directory 'python2/httplib2' does not exist
或者:
error: package directory 'python3/httplib2' does not exist
2.
破解mysql hash(findmyhash – v. 1.1.2.py)文件下载地址:
https://code.google.com/p/findmyhash/downloads/detail?name=findmyhash_v1.1.2.py&can=2&q=
3.
httplib2 下载地址:
https://code.google.com/p/httplib2/downloads/detail?name=httplib2-0.8.zip&can=2&q=
4.
执行python MYSQL -h “hash number” 即可
e.g:
C:Documents and SettingsAdministrator桌面CrackMysqlHashToolhttplib2-0.8>py
hon setup.py install
running install
running build
running build_py
creating build
creating buildlib
creating buildlibhttplib2
copying python2httplib2iri2uri.py -> buildlibhttplib2
copying python2httplib2__init__.py -> buildlibhttplib2
copying python2httplib2socks.py -> buildlibhttplib2
copying python2httplib2cacerts.txt -> buildlibhttplib2
running install_lib
creating C:Python27Libsite-packageshttplib2
copying buildlibhttplib2iri2uri.py -> C:Python27Libsite-packageshttplib2
copying buildlibhttplib2__init__.py -> C:Python27Libsite-packageshttplib
copying buildlibhttplib2socks.py -> C:Python27Libsite-packageshttplib2
copying buildlibhttplib2cacerts.txt -> C:Python27Libsite-packageshttplib
byte-compiling C:Python27Libsite-packageshttplib2iri2uri.py to iri2uri.pyc
byte-compiling C:Python27Libsite-packageshttplib2__init__.py to __init__.p
c
byte-compiling C:Python27Libsite-packageshttplib2socks.py to socks.pyc
running install_egg_info
Writing C:Python27Libsite-packageshttplib2-0.8-py2.7.egg-info
————————-
Cracking hash: *42daf1afcb28984533b14cc4f5b297a5910f1aed
Analyzing with hashcrack (http://hashcrack.com)…
… hash not found in hashcrack
Analyzing with goog.li (http://goog.li)…
… hash not found in goog.li
The following hashes were cracked:
———————————-
NO HASH WAS CRACKED.

本文标题:[python] python如何安装httplib2
本文链接:
(转载请附上本文链接)
http://vulsee.com/archives/vulsee_2013/1129_789.html
转载请附本站链接,未经允许不得转载,,谢谢:微慑信息网-VulSee.com » [python] python如何安装httplib2
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

微慑信息网 专注工匠精神

访问我们联系我们