Install and run sqlmap on windows

2 Flares Filament.io 2 Flares ×

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 python.org. 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 sqlmap.org. Extract the zip files in any directory. Launch the dos prompt and navigate to the directory of sqlmap. Now run the sqlmap.py script with the python interpreter.

C:\sqlmapproject-sqlmap-2defc30>python ./sqlmap.py
Usage: ./sqlmap.py [options]

sqlmap.py: 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

Subscribe to get updates delivered to your inbox

  • sharad

    i have installed python 2.7.8. I got error : python is not recognized as internal or external command

  • Li Ding

    That’s because you MUST use python 2.7…

    • Mr.Point

      Thank you so much! Haha

  • Mr Ho3eiN

    i run sqlmap.py but show a error message:

    File “sqlmap.py”, line 104
    except SqlmapBaseException, ex:
    ^
    SyntaxError: invalid syntax

    What’s the problem ?
    Please reply

2 Flares Twitter 0 Facebook 0 Google+ 2 LinkedIn 0 StumbleUpon 0 Filament.io 2 Flares ×