Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import os
- import sys
- additionalParameters='--dbms=mysql --level=5 --risk=3'
- def checkDir():
- if not (os.path.exists("requests")):
- print "This must be the first time you have used this script."
- print
- print "Creating a directory called 'requests'. This is where"
- print "you can save the web requests you would like formatted"
- print "for sqlmap."
- print
- os.makedirs("requests")
- def getFileName():
- if (len(os.listdir('requests')) == 0):
- print "Inside this directory is another directory called requests."
- print "Currently this directory is empty, please add to this directory"
- print "the saved web requests that you would like formatted for sqlmap."
- print
- print "Example: In OWASP ZAP 2.4 where the web request is located,"
- print "change the display to be combined with the header and the"
- print "body. Then right-click and Save Raw --> Request --> All."
- print "Then navigate to the requests directory and save it. You"
- print "can save more than one file and then select which one to"
- print "format."
- print
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement