bbot 2.5.0__py3-none-any.whl → 2.7.2.7424rc0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bbot/__init__.py +1 -1
- bbot/cli.py +22 -8
- bbot/core/engine.py +1 -1
- bbot/core/event/__init__.py +2 -2
- bbot/core/event/base.py +138 -110
- bbot/core/flags.py +1 -0
- bbot/core/helpers/bloom.py +6 -7
- bbot/core/helpers/command.py +5 -2
- bbot/core/helpers/depsinstaller/installer.py +78 -7
- bbot/core/helpers/dns/dns.py +0 -1
- bbot/core/helpers/dns/engine.py +0 -2
- bbot/core/helpers/files.py +2 -2
- bbot/core/helpers/git.py +17 -0
- bbot/core/helpers/helper.py +6 -5
- bbot/core/helpers/misc.py +15 -28
- bbot/core/helpers/names_generator.py +5 -0
- bbot/core/helpers/ntlm.py +0 -2
- bbot/core/helpers/regex.py +1 -1
- bbot/core/helpers/regexes.py +25 -8
- bbot/core/helpers/web/engine.py +1 -1
- bbot/core/helpers/web/web.py +2 -1
- bbot/core/modules.py +22 -60
- bbot/core/shared_deps.py +38 -0
- bbot/defaults.yml +4 -2
- bbot/modules/apkpure.py +2 -2
- bbot/modules/aspnet_bin_exposure.py +80 -0
- bbot/modules/baddns.py +1 -1
- bbot/modules/baddns_direct.py +1 -1
- bbot/modules/baddns_zone.py +1 -1
- bbot/modules/badsecrets.py +1 -1
- bbot/modules/base.py +129 -40
- bbot/modules/bucket_amazon.py +1 -1
- bbot/modules/bucket_digitalocean.py +1 -1
- bbot/modules/bucket_firebase.py +1 -1
- bbot/modules/bucket_google.py +1 -1
- bbot/modules/{bucket_azure.py → bucket_microsoft.py} +2 -2
- bbot/modules/builtwith.py +4 -2
- bbot/modules/c99.py +1 -1
- bbot/modules/dnsbimi.py +1 -4
- bbot/modules/dnsbrute.py +6 -1
- bbot/modules/dnscommonsrv.py +1 -0
- bbot/modules/dnsdumpster.py +35 -52
- bbot/modules/dnstlsrpt.py +0 -6
- bbot/modules/docker_pull.py +2 -2
- bbot/modules/emailformat.py +17 -1
- bbot/modules/ffuf.py +4 -1
- bbot/modules/ffuf_shortnames.py +6 -3
- bbot/modules/filedownload.py +8 -5
- bbot/modules/fullhunt.py +1 -1
- bbot/modules/git_clone.py +47 -22
- bbot/modules/gitdumper.py +5 -15
- bbot/modules/github_workflows.py +6 -5
- bbot/modules/gitlab_com.py +31 -0
- bbot/modules/gitlab_onprem.py +84 -0
- bbot/modules/gowitness.py +60 -30
- bbot/modules/graphql_introspection.py +145 -0
- bbot/modules/httpx.py +2 -0
- bbot/modules/hunt.py +10 -3
- bbot/modules/iis_shortnames.py +16 -7
- bbot/modules/internal/cloudcheck.py +65 -72
- bbot/modules/internal/unarchive.py +9 -3
- bbot/modules/lightfuzz/lightfuzz.py +6 -2
- bbot/modules/lightfuzz/submodules/esi.py +42 -0
- bbot/modules/{deadly/medusa.py → medusa.py} +4 -7
- bbot/modules/nuclei.py +2 -2
- bbot/modules/otx.py +9 -2
- bbot/modules/output/base.py +3 -11
- bbot/modules/paramminer_headers.py +10 -7
- bbot/modules/passivetotal.py +1 -1
- bbot/modules/portfilter.py +2 -0
- bbot/modules/portscan.py +1 -1
- bbot/modules/postman_download.py +2 -2
- bbot/modules/retirejs.py +232 -0
- bbot/modules/securitytxt.py +0 -3
- bbot/modules/sslcert.py +2 -2
- bbot/modules/subdomaincenter.py +1 -16
- bbot/modules/telerik.py +7 -2
- bbot/modules/templates/bucket.py +24 -4
- bbot/modules/templates/gitlab.py +98 -0
- bbot/modules/trufflehog.py +7 -4
- bbot/modules/wafw00f.py +2 -2
- bbot/presets/web/dotnet-audit.yml +1 -0
- bbot/presets/web/lightfuzz-heavy.yml +1 -1
- bbot/presets/web/lightfuzz-medium.yml +1 -1
- bbot/presets/web/lightfuzz-superheavy.yml +1 -1
- bbot/scanner/manager.py +44 -37
- bbot/scanner/scanner.py +17 -4
- bbot/scripts/benchmark_report.py +433 -0
- bbot/test/benchmarks/__init__.py +2 -0
- bbot/test/benchmarks/test_bloom_filter_benchmarks.py +105 -0
- bbot/test/benchmarks/test_closest_match_benchmarks.py +76 -0
- bbot/test/benchmarks/test_event_validation_benchmarks.py +438 -0
- bbot/test/benchmarks/test_excavate_benchmarks.py +291 -0
- bbot/test/benchmarks/test_ipaddress_benchmarks.py +143 -0
- bbot/test/benchmarks/test_weighted_shuffle_benchmarks.py +70 -0
- bbot/test/conftest.py +1 -1
- bbot/test/test_step_1/test_bbot_fastapi.py +2 -2
- bbot/test/test_step_1/test_events.py +22 -21
- bbot/test/test_step_1/test_helpers.py +20 -0
- bbot/test/test_step_1/test_manager_scope_accuracy.py +45 -0
- bbot/test/test_step_1/test_modules_basic.py +40 -15
- bbot/test/test_step_1/test_python_api.py +2 -2
- bbot/test/test_step_1/test_regexes.py +21 -4
- bbot/test/test_step_1/test_scan.py +7 -8
- bbot/test/test_step_1/test_web.py +46 -0
- bbot/test/test_step_2/module_tests/base.py +6 -1
- bbot/test/test_step_2/module_tests/test_module_aspnet_bin_exposure.py +73 -0
- bbot/test/test_step_2/module_tests/test_module_bucket_amazon.py +52 -18
- bbot/test/test_step_2/module_tests/test_module_bucket_google.py +1 -1
- bbot/test/test_step_2/module_tests/{test_module_bucket_azure.py → test_module_bucket_microsoft.py} +7 -5
- bbot/test/test_step_2/module_tests/test_module_cloudcheck.py +19 -31
- bbot/test/test_step_2/module_tests/test_module_dnsbimi.py +2 -1
- bbot/test/test_step_2/module_tests/test_module_dnsdumpster.py +3 -5
- bbot/test/test_step_2/module_tests/test_module_emailformat.py +1 -1
- bbot/test/test_step_2/module_tests/test_module_emails.py +2 -2
- bbot/test/test_step_2/module_tests/test_module_excavate.py +64 -5
- bbot/test/test_step_2/module_tests/test_module_extractous.py +13 -1
- bbot/test/test_step_2/module_tests/test_module_github_workflows.py +10 -1
- bbot/test/test_step_2/module_tests/test_module_gitlab_com.py +66 -0
- bbot/test/test_step_2/module_tests/{test_module_gitlab.py → test_module_gitlab_onprem.py} +4 -69
- bbot/test/test_step_2/module_tests/test_module_gowitness.py +5 -5
- bbot/test/test_step_2/module_tests/test_module_graphql_introspection.py +34 -0
- bbot/test/test_step_2/module_tests/test_module_iis_shortnames.py +46 -1
- bbot/test/test_step_2/module_tests/test_module_jadx.py +9 -0
- bbot/test/test_step_2/module_tests/test_module_lightfuzz.py +71 -3
- bbot/test/test_step_2/module_tests/test_module_nuclei.py +8 -6
- bbot/test/test_step_2/module_tests/test_module_otx.py +3 -0
- bbot/test/test_step_2/module_tests/test_module_portfilter.py +2 -0
- bbot/test/test_step_2/module_tests/test_module_retirejs.py +161 -0
- bbot/test/test_step_2/module_tests/test_module_telerik.py +1 -1
- bbot/test/test_step_2/module_tests/test_module_trufflehog.py +10 -1
- bbot/test/test_step_2/module_tests/test_module_unarchive.py +9 -0
- {bbot-2.5.0.dist-info → bbot-2.7.2.7424rc0.dist-info}/METADATA +12 -9
- {bbot-2.5.0.dist-info → bbot-2.7.2.7424rc0.dist-info}/RECORD +137 -124
- {bbot-2.5.0.dist-info → bbot-2.7.2.7424rc0.dist-info}/WHEEL +1 -1
- {bbot-2.5.0.dist-info → bbot-2.7.2.7424rc0.dist-info/licenses}/LICENSE +98 -58
- bbot/modules/binaryedge.py +0 -42
- bbot/modules/censys.py +0 -98
- bbot/modules/gitlab.py +0 -141
- bbot/modules/zoomeye.py +0 -77
- bbot/test/test_step_2/module_tests/test_module_binaryedge.py +0 -33
- bbot/test/test_step_2/module_tests/test_module_censys.py +0 -83
- bbot/test/test_step_2/module_tests/test_module_zoomeye.py +0 -35
- {bbot-2.5.0.dist-info → bbot-2.7.2.7424rc0.dist-info}/entry_points.txt +0 -0
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
from .base import ModuleTestBase
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class TestCensys(ModuleTestBase):
|
|
5
|
-
config_overrides = {"modules": {"censys": {"api_key": "api_id:api_secret"}}}
|
|
6
|
-
|
|
7
|
-
async def setup_before_prep(self, module_test):
|
|
8
|
-
module_test.httpx_mock.add_response(
|
|
9
|
-
url="https://search.censys.io/api/v1/account",
|
|
10
|
-
match_headers={"Authorization": "Basic YXBpX2lkOmFwaV9zZWNyZXQ="},
|
|
11
|
-
json={
|
|
12
|
-
"email": "info@blacklanternsecurity.com",
|
|
13
|
-
"login": "nope",
|
|
14
|
-
"first_login": "1917-08-03 20:03:55",
|
|
15
|
-
"last_login": "1918-05-19 01:15:22",
|
|
16
|
-
"quota": {"used": 26, "allowance": 250, "resets_at": "1919-06-03 16:30:32"},
|
|
17
|
-
},
|
|
18
|
-
)
|
|
19
|
-
module_test.httpx_mock.add_response(
|
|
20
|
-
url="https://search.censys.io/api/v2/certificates/search",
|
|
21
|
-
match_headers={"Authorization": "Basic YXBpX2lkOmFwaV9zZWNyZXQ="},
|
|
22
|
-
method="POST",
|
|
23
|
-
match_json={"q": "names: blacklanternsecurity.com", "per_page": 100},
|
|
24
|
-
json={
|
|
25
|
-
"code": 200,
|
|
26
|
-
"status": "OK",
|
|
27
|
-
"result": {
|
|
28
|
-
"query": "names: blacklanternsecurity.com",
|
|
29
|
-
"total": 196,
|
|
30
|
-
"duration_ms": 1046,
|
|
31
|
-
"hits": [
|
|
32
|
-
{
|
|
33
|
-
"parsed": {
|
|
34
|
-
"validity_period": {
|
|
35
|
-
"not_before": "2021-11-18T00:09:46Z",
|
|
36
|
-
"not_after": "2022-11-18T00:09:46Z",
|
|
37
|
-
},
|
|
38
|
-
"issuer_dn": "C=US, ST=Arizona, L=Scottsdale, O=GoDaddy.com\\, Inc., OU=http://certs.godaddy.com/repository/, CN=Go Daddy Secure Certificate Authority - G2",
|
|
39
|
-
"subject_dn": "CN=asdf.blacklanternsecurity.com",
|
|
40
|
-
},
|
|
41
|
-
"fingerprint_sha256": "590ad51b8db62925f0fd3f300264c6a36692e20ceec2b5a22e7e4b41c1575cdc",
|
|
42
|
-
"names": ["asdf.blacklanternsecurity.com", "asdf2.blacklanternsecurity.com"],
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
"links": {"next": "NextToken", "prev": ""},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
)
|
|
49
|
-
module_test.httpx_mock.add_response(
|
|
50
|
-
url="https://search.censys.io/api/v2/certificates/search",
|
|
51
|
-
match_headers={"Authorization": "Basic YXBpX2lkOmFwaV9zZWNyZXQ="},
|
|
52
|
-
method="POST",
|
|
53
|
-
match_json={"q": "names: blacklanternsecurity.com", "per_page": 100, "cursor": "NextToken"},
|
|
54
|
-
json={
|
|
55
|
-
"code": 200,
|
|
56
|
-
"status": "OK",
|
|
57
|
-
"result": {
|
|
58
|
-
"query": "names: blacklanternsecurity.com",
|
|
59
|
-
"total": 196,
|
|
60
|
-
"duration_ms": 1046,
|
|
61
|
-
"hits": [
|
|
62
|
-
{
|
|
63
|
-
"parsed": {
|
|
64
|
-
"validity_period": {
|
|
65
|
-
"not_before": "2021-11-18T00:09:46Z",
|
|
66
|
-
"not_after": "2022-11-18T00:09:46Z",
|
|
67
|
-
},
|
|
68
|
-
"issuer_dn": "C=US, ST=Arizona, L=Scottsdale, O=GoDaddy.com\\, Inc., OU=http://certs.godaddy.com/repository/, CN=Go Daddy Secure Certificate Authority - G2",
|
|
69
|
-
"subject_dn": "CN=zzzz.blacklanternsecurity.com",
|
|
70
|
-
},
|
|
71
|
-
"fingerprint_sha256": "590ad51b8db62925f0fd3f300264c6a36692e20ceec2b5a22e7e4b41c1575cdc",
|
|
72
|
-
"names": ["zzzz.blacklanternsecurity.com"],
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
"links": {"next": "", "prev": ""},
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
)
|
|
79
|
-
|
|
80
|
-
def check(self, module_test, events):
|
|
81
|
-
assert any(e.data == "asdf.blacklanternsecurity.com" for e in events), "Failed to detect asdf subdomain"
|
|
82
|
-
assert any(e.data == "asdf2.blacklanternsecurity.com" for e in events), "Failed to detect asdf2 subdomain"
|
|
83
|
-
assert any(e.data == "zzzz.blacklanternsecurity.com" for e in events), "Failed to detect zzzz subdomain"
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
from .base import ModuleTestBase
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class TestZoomEye(ModuleTestBase):
|
|
5
|
-
config_overrides = {"modules": {"zoomeye": {"api_key": "asdf", "include_related": True, "max_pages": 3}}}
|
|
6
|
-
|
|
7
|
-
async def setup_before_prep(self, module_test):
|
|
8
|
-
module_test.httpx_mock.add_response(
|
|
9
|
-
url="https://api.zoomeye.hk/resources-info",
|
|
10
|
-
match_headers={"API-KEY": "asdf"},
|
|
11
|
-
json={"quota_info": {"remain_total_quota": 5}},
|
|
12
|
-
)
|
|
13
|
-
module_test.httpx_mock.add_response(
|
|
14
|
-
url="https://api.zoomeye.hk/domain/search?q=blacklanternsecurity.com&type=0&page=1",
|
|
15
|
-
json={"list": [{"name": "asdf.blacklanternsecurity.com"}]},
|
|
16
|
-
)
|
|
17
|
-
module_test.httpx_mock.add_response(
|
|
18
|
-
url="https://api.zoomeye.hk/domain/search?q=blacklanternsecurity.com&type=0&page=2",
|
|
19
|
-
json={"list": [{"name": "zzzz.blacklanternsecurity.com"}]},
|
|
20
|
-
)
|
|
21
|
-
module_test.httpx_mock.add_response(
|
|
22
|
-
url="https://api.zoomeye.hk/domain/search?q=blacklanternsecurity.com&type=0&page=3",
|
|
23
|
-
json={"list": [{"name": "ffff.blacklanternsecurity.com"}, {"name": "affiliate.bls"}]},
|
|
24
|
-
)
|
|
25
|
-
module_test.httpx_mock.add_response(
|
|
26
|
-
url="https://api.zoomeye.hk/domain/search?q=blacklanternsecurity.com&type=0&page=4",
|
|
27
|
-
json={"list": [{"name": "nope.blacklanternsecurity.com"}]},
|
|
28
|
-
)
|
|
29
|
-
|
|
30
|
-
def check(self, module_test, events):
|
|
31
|
-
assert any(e.data == "asdf.blacklanternsecurity.com" for e in events), "Failed to detect subdomain #1"
|
|
32
|
-
assert any(e.data == "zzzz.blacklanternsecurity.com" for e in events), "Failed to detect subdomain #2"
|
|
33
|
-
assert any(e.data == "ffff.blacklanternsecurity.com" for e in events), "Failed to detect subdomain #3"
|
|
34
|
-
assert any(e.data == "affiliate.bls" and "affiliate" in e.tags for e in events), "Failed to detect affiliate"
|
|
35
|
-
assert not any(e.data == "nope.blacklanternsecurity.com" for e in events), "Failed to obey max_pages"
|
|
File without changes
|