Skip to content

armgit / bbot

Public Imported from GitHub
0

The recursive internet scanner for hackers. 🧡

crt: request an explicit / path (blasthttp sends an empty path, which crt.sh rejects with 400) (#3428)

wandering-walnut8b360ed27c49
diff --git a/bbot/modules/crt.py b/bbot/modules/crt.py
index ed435ccd3..f6c9dcfca 100644
--- a/bbot/modules/crt.py
+++ b/bbot/modules/crt.py
@@ -11,7 +11,7 @@ class crt(subdomain_enum):
"author": "@TheTechromancer",
}
- base_url = "https://crt.sh"
+ base_url = "https://crt.sh/"
reject_wildcards = False
async def setup(self):
diff --git a/bbot/test/test_step_2/module_tests/test_module_crt.py b/bbot/test/test_step_2/module_tests/test_module_crt.py
index 34bfd7b1a..8947a3d59 100644
--- a/bbot/test/test_step_2/module_tests/test_module_crt.py
+++ b/bbot/test/test_step_2/module_tests/test_module_crt.py
@@ -6,7 +6,7 @@ class TestCRT(ModuleTestBase):
module_test.module.abort_if = lambda e: False
for t in self.targets:
module_test.blasthttp_mock.add_response(
- url="https://crt.sh?q=%25.blacklanternsecurity.com&output=json",
+ url="https://crt.sh/?q=%25.blacklanternsecurity.com&output=json",
json=[{"id": 1, "name_value": "asdf.blacklanternsecurity.com\nzzzz.blacklanternsecurity.com"}],
)