Advertisement
opexxx

sqlmap-tool.py

Aug 5th, 2015
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.07 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import os
  4. import sys
  5.  
  6. additionalParameters='--dbms=mysql --level=5 --risk=3'
  7.  
  8.  
  9. def checkDir():
  10.  if not (os.path.exists("requests")):
  11.   print "This must be the first time you have used this script."
  12.   print
  13.   print "Creating a directory called 'requests'.  This is where"
  14.   print "you can save the web requests you would like formatted"
  15.   print "for sqlmap."
  16.   print
  17.   os.makedirs("requests")
  18.  
  19. def getFileName():
  20.  if (len(os.listdir('requests')) == 0):
  21.   print "Inside this directory is another directory called requests."
  22.   print "Currently this directory is empty, please add to this directory"
  23.   print "the saved web requests that you would like formatted for sqlmap."
  24.   print
  25.   print "Example: In OWASP ZAP 2.4 where the web request is located,"
  26.   print "change the display to be combined with the header and the"
  27.   print "body.  Then right-click and Save Raw --> Request --> All."
  28.   print "Then navigate to the requests directory and save it.  You"
  29.   print "can save more than one file and then select which one to"
  30.   print "format."
  31.   print
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement