How to use the sqlmap installed from macports?
<p>I installed <code>sqlmap</code> from macports 2.3.4 on macOS Sierra 10.12</p>

<pre><code>sqlmap @0.9_1 (security, databases, python)
    sqlmap is an open source penetration testing tool.
</code></pre>

<p>Then found:</p>

<pre><code>&gt; sqlmap
zsh: command not found: sqlmap

&gt; 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
</code></pre>

<p>Then I made a try to find the files of sqlmap:(<code>.</code> for <code>/opt/local/</code>)</p>

<pre><code>&gt; 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
</code></pre>

<p>And I cannot find any executable file in <code>/opt/local/bin</code> or <code>/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/</code></p>

<p>So how to use the sqlmap installed from macports? Or if I missed some files?</p>

<p>Thanks a lot.</p>