Incredibly fast crawler designed for OSINT.
remove scripts THEN tags for intel match
oXis94e01b179006
diff --git a/core/regex.py b/core/regex.pyindex 1ba1f80..570742d 100644--- a/core/regex.py+++ b/core/regex.py@@ -213,7 +213,7 @@ CREDIT_CARD = re.compile(r"[0-9]{4}[ ]?[-]?[0-9]{4}[ ]?[-]?[0-9]{4}[ ]?[-]?[0-9]rintels = [(GENERIC_URL, "GENERIC_URL"),(BRACKET_URL, "BRACKET_URL"),- # (BACKSLASH_URL, "BACKSLASH_URL"),+ (BACKSLASH_URL, "BACKSLASH_URL"),(HEXENCODED_URL, "HEXENCODED_URL"),(URLENCODED_URL, "URLENCODED_URL"),(B64ENCODED_URL, "B64ENCODED_URL"),diff --git a/photon.py b/photon.pyindex d568117..9385a14 100644--- a/photon.py+++ b/photon.py@@ -206,11 +206,9 @@ supress_regex = Falsedef intel_extractor(response):"""Extract intel from the response body."""for rintel in rintels:- if rintel[1] in ["MD5", "SHA1", "SHA256", "SHA512"]:- # prevent csrf token match- rintel[0].findall(re.sub('<[^<]+?>', '', response))- else:- matches = rintel[0].findall(response)+ res = re.sub(r'<(script).*?</\1>(?s)', '', response)+ res = re.sub(r'<[^<]+?>', '', res)+ matches = rintel[0].findall(res)if matches:for match in matches:verb('Intel', match)