Skip to content

Incredibly fast crawler designed for OSINT.

Update photon.py

Somdev Sangwanf65b942cd5e3
diff --git a/photon.py b/photon.py
index ed0066d..7034158 100644
--- a/photon.py
+++ b/photon.py
@@ -178,6 +178,9 @@ else:
with open(sys.path[0] + '/core/user-agents.txt', 'r') as uas:
user_agents = [agent.strip('\n') for agent in uas]
+
+supress_regex = False
+
def intel_extractor(response):
"""Extract intel from the response body."""
matches = re.findall(r'([\w\.-]+s[\w\.-]+\.amazonaws\.com)|([\w\.-]+@[\w\.-]+\.[\.\w]+)', response)
@@ -232,7 +235,7 @@ def extractor(url):
intel_extractor(response)
js_extractor(response)
if args.regex and not supress_regex:
- regxy(args.regex, response, custom)
+ regxy(args.regex, response, supress_regex, custom)
if api:
matches = re.findall(r'[\w-]{16,45}', response)
for match in matches: