Skip to content

Incredibly fast crawler designed for OSINT.

Change badTypes to bad_types

ConnorSkeese0b4d38ca78d
diff --git a/core/config.py b/core/config.py
index fd7a357..688836f 100644
--- a/core/config.py
+++ b/core/config.py
@@ -9,7 +9,7 @@ intels = [
'youtube.com',
]
-badTypes = [
+bad_types = [
'bmp',
'css',
'csv',
diff --git a/core/utils.py b/core/utils.py
index 6e528b6..d70c6d8 100644
--- a/core/utils.py
+++ b/core/utils.py
@@ -1,7 +1,7 @@
import re
import tld
import math
-from core.config import verbose, badTypes
+from core.config import verbose, bad_types
from core.colors import info
try:
@@ -36,7 +36,7 @@ def is_link(url, processed):
bool If `url` should be crawled
"""
if url not in processed:
- is_file = url.endswith(badTypes)
+ is_file = url.endswith(bad_types)
if is_file:
files.add(url)
return is_file
diff --git a/photon.py b/photon.py
index 44170b7..866658a 100644
--- a/photon.py
+++ b/photon.py
@@ -19,7 +19,7 @@ from core.flash import flash
from core.mirror import mirror
from core.prompt import prompt
from core.requester import requester
-from core.config import badTypes, intels
+from core.config import intels
from core.zap import zap
from core.utils import top_level, extract_headers, verb, is_link, entropy, regxy, remove_regex, timer, writer
from core.colors import bad, good, info, run, green, red, white, end