@@ -55,27 +55,27 @@ def run(self, saved_state):
55
55
if self .path is not None :
56
56
if self .path in loc :
57
57
text = soup .get_text (separator = ' ' ).split ('Indicators of Compromise' )[- 1 ]
58
- artifacts += self .process_element (content = text , reference_link = self . url , include_nonobfuscated = True )
58
+ artifacts += self .process_element (content = text , reference_link = str ( loc ) , include_nonobfuscated = True )
59
59
60
60
# Only filters using a keyword
61
61
if self .path is None :
62
62
if x in loc :
63
63
text = soup .get_text (separator = ' ' ).split ('Indicators of Compromise' )[- 1 ]
64
- artifacts += self .process_element (content = text , reference_link = self . url , include_nonobfuscated = True )
64
+ artifacts += self .process_element (content = text , reference_link = str ( loc ) , include_nonobfuscated = True )
65
65
66
66
elif self .filter is None and self .path is not None :
67
67
# Filters only by path in XML loc, no set filter
68
68
# Default: /path/name/*
69
69
70
70
if self .path in loc :
71
71
text = soup .get_text (separator = ' ' ).split ('Indicators of Compromise' )[- 1 ]
72
- artifacts += self .process_element (content = text , reference_link = self . url , include_nonobfuscated = True )
72
+ artifacts += self .process_element (content = text , reference_link = str ( loc ) , include_nonobfuscated = True )
73
73
74
74
else :
75
75
# Locates all blog links within the sitemap
76
76
if "blog" in loc :
77
77
text = soup .get_text (separator = ' ' ).split ('Indicators of Compromise' )[- 1 ]
78
- artifacts += self .process_element (content = text , reference_link = self . url , include_nonobfuscated = True )
78
+ artifacts += self .process_element (content = text , reference_link = str ( loc ) , include_nonobfuscated = True )
79
79
80
80
if xml .find ("lastmod" ):
81
81
saved_state = str (u .findNext ("lastmod" ).text ).split ("T" , 1 )[0 ]
0 commit comments