@@ -132,7 +132,7 @@ def getApps(webPort,victim,uri,https,verb,requestHeaders):
132132
133133 if errorCheck == False :
134134 injLen = int (len (urllib2 .urlopen (req ).read ()))
135- checkResult (randLength ,injLen ,testNum ,verb )
135+ checkResult (randLength ,injLen ,testNum ,verb , None )
136136 testNum += 1
137137 else :
138138 testNum += 1
@@ -150,7 +150,7 @@ def getApps(webPort,victim,uri,https,verb,requestHeaders):
150150
151151 if errorCheck == False :
152152 injLen = int (len (urllib2 .urlopen (req ).read ()))
153- checkResult (randLength ,injLen ,testNum ,verb )
153+ checkResult (randLength ,injLen ,testNum ,verb , None )
154154 testNum += 1
155155
156156 else :
@@ -169,7 +169,7 @@ def getApps(webPort,victim,uri,https,verb,requestHeaders):
169169
170170 if errorCheck == False :
171171 injLen = int (len (urllib2 .urlopen (req ).read ()))
172- checkResult (randLength ,injLen ,testNum ,verb )
172+ checkResult (randLength ,injLen ,testNum ,verb , None )
173173 testNum += 1
174174
175175 else :
@@ -188,7 +188,7 @@ def getApps(webPort,victim,uri,https,verb,requestHeaders):
188188
189189 if errorCheck == False :
190190 injLen = int (len (urllib2 .urlopen (req ).read ()))
191- checkResult (randLength ,injLen ,testNum ,verb )
191+ checkResult (randLength ,injLen ,testNum ,verb , None )
192192 testNum += 1
193193 else :
194194 testNum += 1
@@ -205,7 +205,7 @@ def getApps(webPort,victim,uri,https,verb,requestHeaders):
205205
206206 if errorCheck == False :
207207 injLen = int (len (urllib2 .urlopen (req ).read ()))
208- checkResult (randLength ,injLen ,testNum ,verb )
208+ checkResult (randLength ,injLen ,testNum ,verb , None )
209209 testNum += 1
210210
211211 else :
@@ -223,7 +223,7 @@ def getApps(webPort,victim,uri,https,verb,requestHeaders):
223223
224224 if errorCheck == False :
225225 injLen = int (len (urllib2 .urlopen (req ).read ()))
226- checkResult (randLength ,injLen ,testNum ,verb )
226+ checkResult (randLength ,injLen ,testNum ,verb , None )
227227 testNum += 1
228228 else :
229229 testNum += 1
@@ -240,7 +240,7 @@ def getApps(webPort,victim,uri,https,verb,requestHeaders):
240240
241241 if errorCheck == False :
242242 injLen = int (len (urllib2 .urlopen (req ).read ()))
243- checkResult (randLength ,injLen ,testNum ,verb )
243+ checkResult (randLength ,injLen ,testNum ,verb , None )
244244 testNum += 1
245245 else :
246246 testNum += 1
@@ -258,7 +258,7 @@ def getApps(webPort,victim,uri,https,verb,requestHeaders):
258258
259259 if errorCheck == False :
260260 injLen = int (len (urllib2 .urlopen (req ).read ()))
261- checkResult (randLength ,injLen ,testNum ,verb )
261+ checkResult (randLength ,injLen ,testNum ,verb , None )
262262 testNum += 1
263263
264264
@@ -473,7 +473,7 @@ def postApps(victim,webPort,uri,https,verb,postData,requestHeaders):
473473
474474 if errorCheck == False :
475475 injLen = int (len (urllib2 .urlopen (req ).read ()))
476- checkResult (randLength ,injLen ,testNum ,verb )
476+ checkResult (randLength ,injLen ,testNum ,verb , postData )
477477 testNum += 1
478478
479479 else :
@@ -500,7 +500,7 @@ def postApps(victim,webPort,uri,https,verb,postData,requestHeaders):
500500
501501 if errorCheck == False :
502502 injLen = int (len (urllib2 .urlopen (req ).read ()))
503- checkResult (randLength ,injLen ,testNum ,verb )
503+ checkResult (randLength ,injLen ,testNum ,verb , postData )
504504 testNum += 1
505505
506506 postData .update ({injOpt :"a'; return db.a.find(); var dummy='!" })
@@ -517,7 +517,7 @@ def postApps(victim,webPort,uri,https,verb,postData,requestHeaders):
517517
518518 if errorCheck == False :
519519 injLen = int (len (urllib2 .urlopen (req ).read ()))
520- checkResult (randLength ,injLen ,testNum ,verb )
520+ checkResult (randLength ,injLen ,testNum ,verb , postData )
521521 testNum += 1
522522 else :
523523 testNum += 1
@@ -537,7 +537,7 @@ def postApps(victim,webPort,uri,https,verb,postData,requestHeaders):
537537
538538 if errorCheck == False :
539539 injLen = int (len (urllib2 .urlopen (req ).read ()))
540- checkResult (randLength ,injLen ,testNum ,verb )
540+ checkResult (randLength ,injLen ,testNum ,verb , postData )
541541 testNum += 1
542542 else :
543543 testNum += 1
@@ -558,7 +558,7 @@ def postApps(victim,webPort,uri,https,verb,postData,requestHeaders):
558558
559559 if errorCheck == False :
560560 injLen = int (len (urllib2 .urlopen (req ).read ()))
561- checkResult (randLength ,injLen ,testNum ,verb )
561+ checkResult (randLength ,injLen ,testNum ,verb , postData )
562562 testNum += 1
563563
564564 else :
@@ -579,7 +579,7 @@ def postApps(victim,webPort,uri,https,verb,postData,requestHeaders):
579579
580580 if errorCheck == False :
581581 injLen = int (len (urllib2 .urlopen (req ).read ()))
582- checkResult (randLength ,injLen ,testNum ,verb )
582+ checkResult (randLength ,injLen ,testNum ,verb , postData )
583583 testNum += 1
584584
585585 else :
@@ -601,7 +601,7 @@ def postApps(victim,webPort,uri,https,verb,postData,requestHeaders):
601601
602602 if errorCheck == False :
603603 injLen = int (len (urllib2 .urlopen (req ).read ()))
604- checkResult (randLength ,injLen ,testNum ,verb )
604+ checkResult (randLength ,injLen ,testNum ,verb , postData )
605605 testNum += 1
606606 print "\n "
607607 else :
@@ -621,7 +621,7 @@ def postApps(victim,webPort,uri,https,verb,postData,requestHeaders):
621621
622622 if errorCheck == False :
623623 injLen = int (len (urllib2 .urlopen (req ).read ()))
624- checkResult (randLength ,injLen ,testNum ,verb )
624+ checkResult (randLength ,injLen ,testNum ,verb , postData )
625625 testNum += 1
626626
627627 else :
@@ -750,7 +750,7 @@ def errorTest (errorCheck,testNum):
750750
751751
752752
753- def checkResult (baseSize ,respSize ,testNum ,verb ):
753+ def checkResult (baseSize ,respSize ,testNum ,verb , postData ):
754754 global vulnAddrs
755755 global possAddrs
756756 global lt24
0 commit comments