Skip to content

Commit 8604102

Browse files
tcstooltcstool
tcstool
authored and
tcstool
committed
Fix bug 27
1 parent c65fc79 commit 8604102

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nosqlmap.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def options():
167167
global mmSelect
168168
global dbPort
169169
global requestHeaders
170+
requestHeaders = {}
170171

171172
#Set default value if needed
172173
if optionSet[0] == False:
@@ -367,6 +368,8 @@ def options():
367368
httpMethod = optList[3]
368369
myIP = optList[4]
369370
myPort = optList[5]
371+
verb = optList[6]
372+
https = optList[7]
370373

371374
if httpMethod == "POST":
372375
postData = ast.literal_eval(csvOpt[1])
@@ -423,10 +426,11 @@ def options():
423426
savePath = raw_input("Enter file name to save: ")
424427
try:
425428
fo = open(savePath, "wb")
426-
fo.write(str(victim) + "," + str(webPort) + "," + str(uri) + "," + str(httpMethod) + "," + str(myIP) + "," + str(myPort))
429+
fo.write(str(victim) + "," + str(webPort) + "," + str(uri) + "," + str(httpMethod) + "," + str(myIP) + "," + str(myPort) + "," + verb + "," + https)
427430

428431
if httpMethod == "POST":
429432
fo.write(",\n"+ str(postData))
433+
fo.write(",\n" + str(requestHeaders) )
430434
fo.close()
431435
print "Options file saved!"
432436
except:

0 commit comments

Comments
 (0)