Fix for issues/9

This commit is contained in:
Mariusz B. / mgeeky 2022-09-22 19:51:21 +02:00
parent 2eec0b5f47
commit 492b6e7444

View File

@ -5645,6 +5645,10 @@ Src: https://www.cisco.com/c/en/us/td/docs/security/esa/esa11-1/user_guide/b_ESA
if num != -1:
num1 += 1
m = re.search(r'([\w\._\+-]+@([\w.-]+\.)+[\w]{2,})', value, re.I)
if m:
value = m.group(1)
else:
value = value.replace('<', '').replace('>', '').replace('\t', '').replace(' ', '').strip()
headers += f' - {hdr}\n'
@ -6431,7 +6435,8 @@ This can lead to an internal information disclosure. This test shows potential h
}
def testResolveIntoIP(self):
domains = set(re.findall(r'([a-z0-9_\-\.]+\.[a-zA-Z]{2,5})', self.text, re.I))
#domains = set(re.findall(r'([a-z0-9_\-\.]+\.[a-zA-Z]{2,})', self.text, re.I))
domains = set(re.findall(r'((?:[\w.-]+\.)+[\w]{2,})', self.text, re.I))
resolved = set()
result = ''
tmp = ''
@ -6449,6 +6454,8 @@ This can lead to an internal information disclosure. This test shows potential h
if d in resolved: continue
if d in skip: continue
if f'{d}@' in self.text: continue
try:
resolved.add(d)
d2 = self.colorizeKeywords(d)