如何使用从macports安装的sqlmap?

时间:2016-10-20 04:18:29

标签: python macports sqlmap

我在MacOS Sierra 10.12上的macports 2.3.4中安装了sqlmap

sqlmap @0.9_1 (security, databases, python)
    sqlmap is an open source penetration testing tool.

然后发现:

> sqlmap
zsh: command not found: sqlmap

> python sqlmap.py
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'sqlmap.py': [Errno 2] No such file or directory

然后我试着找到sqlmap的文件:(./opt/local/

> find . -name '*sqlmap*'
./Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlmap
./Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlmap/extra/msfauxmod/sqlmap.rb
./Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlmap/sqlmap.conf
./Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlmap/sqlmap.py
./Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlmap/sqlmap.pyc
./Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlmap/sqlmap.pyo
./Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sqlmap/xml/sqlmap.xsd
./var/macports/distfiles/sqlmap
./var/macports/distfiles/sqlmap/sqlmap-0.9.tar.gz
./var/macports/registry/portfiles/sqlmap-0.9_1
./var/macports/software/sqlmap
./var/macports/software/sqlmap/sqlmap-0.9_1+python27.darwin_16.x86_64.tbz2
./var/macports/sources/rsync.macports.org/release/tarballs/ports/security/sqlmap

我在/opt/local/bin/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/

中找不到任何可执行文件

那么如何使用从macports安装的sqlmap?或者如果我错过了一些文件?

非常感谢。

0 个答案:

没有答案