我sqlmap
从 macOS Sierra 10.12 上的 macports 2.3.4安装
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的文件:(.
for /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呢?或者如果我错过了一些文件?
非常感谢。