Install and run sqlmap on windows

By | April 18, 2013

Sqlmap is the most popular tool for automated exploitation of sql injection vulnerability and database takeover. Its written in python is cross platform. If you are using Backtrack then sqlmap comes pre packaged in it. In this post I am going to show you the simple process to setup and run sqlmap on windows.

Download and install python

Since sqlmap is written in python, the first thing you need is the python interpreter. Download the python interpreter from There are two series of python, 2.7.x and 3.3.x. Sqlmap should run fine with either. So download and install.

Download and install sqlmap

Next download the sqlmap zip file from Extract the zip files in any directory. Launch the dos prompt and navigate to the directory of sqlmap. Now run the script with the python interpreter.

C:\sqlmapproject-sqlmap-2defc30>python ./
Usage: ./ [options] error: missing a mandatory option (-d, -u, -l, -m, -r, -g, -c, --wiza
rd, --update, --purge-output or --dependencies), use -h for basic or -hh for adv
anced help

Press Enter to continue...

That was easy! Sqlmap is asking for some parameters so that it can hack something.

Now that you have finished installing sqlmap and are ready to run it, you might want to read some tutorial on how to use sqlmap.

Last Updated On : 18th April 2013

Related Post

9 thoughts on “Install and run sqlmap on windows

  1. mariana

    c:\>\sqlmapproject-sqlmap-2defc30>python ./
    Access is denied.

    c:\>Usage: ./ [options]
    ‘Usage:’ is not recognized as an internal or external command,
    operable program or batch file.


  2. ERROR

    The instructions say 3.3 is ok where in fact it’s NOT!

    Error: For successfully running sqlmap you’ll have to use version 2.6 or 2.7 (visit ‘’)

  3. Kana

    It is still the case of installing Python 2.6 or 2.7:

    [CRITICAL] incompatible Python version detected (‘3.4.2’). For successfully running sqlmap you’ll have to use version 2.6 or 2.7 (visit ‘’)

    If you get the error “python is not recognized as internal or external command”: add the path to python.exe to the Windows environment variables Path

  4. Mr Ho3eiN

    i run but show a error message:

    File “”, line 104
    except SqlmapBaseException, ex:
    SyntaxError: invalid syntax

    What’s the problem ?
    Please reply

    1. erm3nda

      “except SqlmapBaseException, ex:”

      If syntax is wrong, then you used the wrong interpreter. Probably (SURE) you tried with Python3.
      Using tools REQUIRES read at least how to use. Doing those things without read docs could end in “shooting yourself into the foot”.

      simple google search: This makes sqlmap a cross-platform application which is independant of the operating system. sqlmap requires Python version 2.6.x or 2.7.x. To make it even…etc

      Particularily this is related to the except clause, that in python3 should be:
      except SqlmapBaseException as ex:


Leave a Reply

Your email address will not be published. Required fields are marked *