pythonsqlmap

useing sqlmap on mac


I have installed python3 on my mac.

But when I use sqlmap, I get

wrong initialization of pymsql detected (using Python3 dependencies)


Solution

  • Can you show the command you use to sqlmap?

    On my Mac, I have both Python 2.7 and Python 3 installed and have to invoke Python3 explicitly via:

    python3 <scriptName>
    

    Because just using 'python' defaults to python 2.7.

    In ref to OP's comment about first line of script using #!/usr/bin/env python

    This is exactly my point, that on the Mac this defaults to Python 2.7 but you need to run sqlmap with Python3

    Notice 2.7.10 below:

    /usr/bin/env python
    Python 2.7.10 (default, Jul 14 2015, 19:46:27)
    [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>>