@@ -272,7 +272,7 @@ def _parseBurpLog(content):
272272 index = 5
273273
274274 url = line [index :line .index (" HTTP/" )]
275- method = line [:index - 1 ]
275+ method = line [:index - 1 ]
276276
277277 if "?" in line and "=" in line :
278278 params = True
@@ -587,7 +587,7 @@ def _findPageForms():
587587 for i in xrange (len (targets )):
588588 try :
589589 target = targets [i ]
590- page , _ , _ = Request .getPage (url = target .strip (), crawling = True , raise404 = False )
590+ page , _ , _ = Request .getPage (url = target .strip (), crawling = True , raise404 = False )
591591 findPageForms (page , target , False , True )
592592
593593 if conf .verbose in (1 , 2 ):
@@ -942,7 +942,7 @@ def _setHTTPProxy():
942942 try :
943943 port = int (hostnamePort [1 ])
944944 except :
945- pass # drops into the next check block
945+ pass # drops into the next check block
946946
947947 if not all ((scheme , hasattr (PROXY_TYPE , scheme ), hostname , port )):
948948 errMsg = "proxy value must be in format '(%s)://url:port'" % "|" .join (_ [0 ].lower () for _ in getPublicTypeMembers (PROXY_TYPE ))
@@ -1373,8 +1373,9 @@ def _cleanupOptions():
13731373 conf .data = re .sub (INJECT_HERE_MARK .replace (" " , r"[^A-Za-z]*" ), CUSTOM_INJECTION_MARK_CHAR , conf .data , re .I )
13741374
13751375 if re .search (r'%[0-9a-f]{2}' , conf .data , re .I ):
1376+ class _ (unicode ):
1377+ pass
13761378 original = conf .data
1377- class _ (unicode ): pass
13781379 conf .data = _ (urldecode (conf .data ))
13791380 setattr (conf .data , UNENCODED_ORIGINAL_VALUE , original )
13801381 else :
@@ -1409,7 +1410,7 @@ class _(unicode): pass
14091410 conf .code = int (conf .code )
14101411
14111412 if conf .csvDel :
1412- conf .csvDel = conf .csvDel .decode ("string_escape" ) # e.g. '\\t' -> '\t'
1413+ conf .csvDel = conf .csvDel .decode ("string_escape" ) # e.g. '\\t' -> '\t'
14131414
14141415 if conf .torPort and conf .torPort .isdigit ():
14151416 conf .torPort = int (conf .torPort )
@@ -1504,7 +1505,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
15041505 kb .authHeader = None
15051506 kb .bannerFp = AttribDict ()
15061507
1507- kb .brute = AttribDict ({"tables" :[], "columns" :[]})
1508+ kb .brute = AttribDict ({"tables" : [], "columns" : []})
15081509 kb .bruteMode = False
15091510
15101511 kb .cache = AttribDict ()
@@ -1592,7 +1593,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
15921593 kb .redirectChoice = None
15931594 kb .redirectSetCookie = None
15941595 kb .reflectiveMechanism = True
1595- kb .reflectiveCounters = {REFLECTIVE_COUNTER .MISS :0 , REFLECTIVE_COUNTER .HIT :0 }
1596+ kb .reflectiveCounters = {REFLECTIVE_COUNTER .MISS : 0 , REFLECTIVE_COUNTER .HIT : 0 }
15961597 kb .responseTimes = []
15971598 kb .resumeValues = True
15981599 kb .safeCharEncode = False
0 commit comments