Incredibly fast crawler designed for OSINT.
prevent csrf token match
oXis4e0c77f742b6
diff --git a/core/regex.py b/core/regex.pyindex 7105f8d..570742d 100644--- a/core/regex.py+++ b/core/regex.py@@ -220,10 +220,10 @@ rintels = [(GENERIC_URL, "GENERIC_URL"),(IPV4, "IPV4"),(IPV6, "IPV6"),(EMAIL, "EMAIL"),- # (MD5, "MD5"),- # (SHA1, "SHA1"),- # (SHA256, "SHA256"),- # (SHA512, "SHA512"),+ (MD5, "MD5"),+ (SHA1, "SHA1"),+ (SHA256, "SHA256"),+ (SHA512, "SHA512"),(YARA_PARSE, "YARA_PARSE"),(CREDIT_CARD, "CREDIT_CARD")]diff --git a/photon.py b/photon.pyindex c872b5b..1188488 100644--- a/photon.py+++ b/photon.py@@ -206,7 +206,11 @@ supress_regex = Falsedef intel_extractor(response):"""Extract intel from the response body."""for rintel in rintels:- matches = rintel[0].findall(response)+ if rintel[0] in ["MD5", "SHA1", "SHA256", "SHA512"]:+ # prevent csrf token match+ rintel[0].findall(re.sub('<[^<]+?>', '', response))+ else:+ matches = rintel[0].findall(response)if matches:for match in matches:verb('Intel', match)