Incredibly fast crawler designed for OSINT.
add credit card intel
oXis7748b7b876f2
diff --git a/core/regex.py b/core/regex.pyindex b79f658..7105f8d 100644--- a/core/regex.py+++ b/core/regex.py@@ -209,6 +209,8 @@ YARA_PARSE = re.compile(r"""(?:$|\s)""", re.MULTILINE | re.DOTALL | re.VERBOSE)+CREDIT_CARD = re.compile(r"[0-9]{4}[ ]?[-]?[0-9]{4}[ ]?[-]?[0-9]{4}[ ]?[-]?[0-9]{4}")+rintels = [(GENERIC_URL, "GENERIC_URL"),(BRACKET_URL, "BRACKET_URL"),(BACKSLASH_URL, "BACKSLASH_URL"),@@ -218,11 +220,13 @@ rintels = [(GENERIC_URL, "GENERIC_URL"),(IPV4, "IPV4"),(IPV6, "IPV6"),(EMAIL, "EMAIL"),- (MD5, "MD5"),- (SHA1, "SHA1"),- (SHA256, "SHA256"),- (SHA512, "SHA512"),- (YARA_PARSE, "YARA_PARSE")]+ # (MD5, "MD5"),+ # (SHA1, "SHA1"),+ # (SHA256, "SHA256"),+ # (SHA512, "SHA512"),+ (YARA_PARSE, "YARA_PARSE"),+ (CREDIT_CARD, "CREDIT_CARD")]+rscript = re.compile(r'<(script|SCRIPT).*(src|SRC)=([^\s>]+)')rhref = re.compile(r'<[aA].*(href|HREF)=([^\s>]+)')diff --git a/photon.py b/photon.pyindex a18da27..c872b5b 100644--- a/photon.py+++ b/photon.py@@ -329,8 +329,16 @@ if not only_urls:if isinstance(match, tuple):for x in match: # Because "match" is a tupleif x != '': # If the value isn't empty+ if intel_name == "CREDIT_CARD":+ if not luhn(match):+ # garbage number+ continueintel.add("%s:%s" % (intel_name, x))else:+ if intel_name == "CREDIT_CARD":+ if not luhn(match):+ # garbage number+ continueintel.add("%s:%s" % (intel_name, match))for url in external:try: