@@ -271,6 +271,7 @@ def _parseBurpLog(content):
271271 params = False
272272 newline = None
273273 lines = request .split ('\n ' )
274+ headers = []
274275
275276 for index in xrange (len (lines )):
276277 line = lines [index ]
@@ -320,14 +321,14 @@ def _parseBurpLog(content):
320321 port = filterStringValue (splitValue [1 ], "[0-9]" )
321322
322323 # Avoid to add a static content length header to
323- # conf.httpHeaders and consider the following lines as
324+ # headers and consider the following lines as
324325 # POSTed data
325326 if key .upper () == HTTP_HEADER .CONTENT_LENGTH .upper ():
326327 params = True
327328
328329 # Avoid proxy and connection type related headers
329330 elif key not in (HTTP_HEADER .PROXY_CONNECTION , HTTP_HEADER .CONNECTION ):
330- conf . httpHeaders .append ((getUnicode (key ), getUnicode (value )))
331+ headers .append ((getUnicode (key ), getUnicode (value )))
331332
332333 if CUSTOM_INJECTION_MARK_CHAR in re .sub (PROBLEMATIC_CUSTOM_INJECTION_PATTERNS , "" , value or "" ):
333334 params = True
@@ -355,7 +356,7 @@ def _parseBurpLog(content):
355356
356357 if not (conf .scope and not re .search (conf .scope , url , re .I )):
357358 if not kb .targets or url not in addedTargetUrls :
358- kb .targets .add ((url , method , data , cookie ))
359+ kb .targets .add ((url , method , data , cookie , tuple ( headers ) ))
359360 addedTargetUrls .add (url )
360361
361362 fp = openFile (reqFile , "rb" )
0 commit comments