Fixed regular expression to parse burp log file hosts' scheme/port

This commit is contained in:
Bernardo Damele 2009-06-04 14:42:53 +00:00
parent cfd8a83655
commit 5ac2b0658c

View File

@ -101,7 +101,7 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
for request in reqResList:
if scheme is None:
schemePort = re.search("\d\d[\:|\.]\d\d[\:|\.]\d\d\s+(http[\w]*)\:([\d]+)", request, re.I)
schemePort = re.search("\d\d[\:|\.]\d\d[\:|\.]\d\d\s+(http[\w]*)\:\/\/.*?\:([\d]+)", request, re.I)
if schemePort:
scheme = schemePort.group(1)