bbot 2.3.0.5438rc0__py3-none-any.whl → 2.3.0.5447rc0__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.

Potentially problematic release.


This version of bbot might be problematic. Click here for more details.

bbot/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # version placeholder (replaced by poetry-dynamic-versioning)
2
- __version__ = "v2.3.0.5438rc"
2
+ __version__ = "v2.3.0.5447rc"
3
3
 
4
4
  from .scanner import Scanner, Preset
@@ -112,7 +112,7 @@ def extract_text(file_path):
112
112
  result = ""
113
113
  buffer = reader.read(4096)
114
114
  while len(buffer) > 0:
115
- result += buffer.decode("utf-8")
115
+ result += buffer.decode("utf-8", errors="ignore")
116
116
  buffer = reader.read(4096)
117
117
 
118
118
  return result.strip()
bbot/modules/httpx.py CHANGED
@@ -1,5 +1,5 @@
1
1
  import re
2
- import json
2
+ import orjson
3
3
  import tempfile
4
4
  import subprocess
5
5
  from pathlib import Path
@@ -142,11 +142,11 @@ class httpx(BaseModule):
142
142
  proxy = self.scan.http_proxy
143
143
  if proxy:
144
144
  command += ["-http-proxy", proxy]
145
- async for line in self.run_process_live(command, input=list(stdin), stderr=subprocess.DEVNULL):
145
+ async for line in self.run_process_live(command, text=False, input=list(stdin), stderr=subprocess.DEVNULL):
146
146
  try:
147
- j = json.loads(line)
148
- except json.decoder.JSONDecodeError:
149
- self.debug(f"Failed to decode line: {line}")
147
+ j = await self.helpers.run_in_executor(orjson.loads, line)
148
+ except orjson.JSONDecodeError:
149
+ self.warning(f"httpx failed to decode line: {line}")
150
150
  continue
151
151
 
152
152
  url = j.get("url", "")
@@ -72,9 +72,10 @@ class CloudCheck(BaseInterceptModule):
72
72
  base_kwargs["event_type"] = event_type
73
73
  for sig in sigs:
74
74
  matches = []
75
- if event.type == "HTTP_RESPONSE":
76
- matches = await self.helpers.re.findall(sig, event.data.get("body", ""))
77
- elif event.type.startswith("DNS_NAME"):
75
+ # TODO: convert this to an excavate YARA hook
76
+ # if event.type == "HTTP_RESPONSE":
77
+ # matches = await self.helpers.re.findall(sig, event.data.get("body", ""))
78
+ if event.type.startswith("DNS_NAME"):
78
79
  for host in str_hosts_to_check:
79
80
  match = sig.match(host)
80
81
  if match:
@@ -8,7 +8,7 @@ class TestCloudCheck(ModuleTestBase):
8
8
  modules_overrides = ["httpx", "excavate", "cloudcheck"]
9
9
 
10
10
  async def setup_after_prep(self, module_test):
11
- module_test.set_expect_requests({"uri": "/"}, {"response_data": "<a href='asdf.s3.amazonaws.com'/>"})
11
+ module_test.set_expect_requests({"uri": "/"}, {"response_data": "<a href='http://asdf.s3.amazonaws.com'/>"})
12
12
 
13
13
  scan = Scanner(config={"cloudcheck": True})
14
14
  await scan._prep()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bbot
3
- Version: 2.3.0.5438rc0
3
+ Version: 2.3.0.5447rc0
4
4
  Summary: OSINT automation for hackers.
5
5
  Home-page: https://github.com/blacklanternsecurity/bbot
6
6
  License: GPL-3.0
@@ -29,6 +29,7 @@ Requires-Dist: jinja2 (>=3.1.3,<4.0.0)
29
29
  Requires-Dist: lxml (>=4.9.2,<6.0.0)
30
30
  Requires-Dist: mmh3 (>=4.1,<6.0)
31
31
  Requires-Dist: omegaconf (>=2.3.0,<3.0.0)
32
+ Requires-Dist: orjson (>=3.10.12,<4.0.0)
32
33
  Requires-Dist: psutil (>=5.9.4,<7.0.0)
33
34
  Requires-Dist: puremagic (>=1.28,<2.0)
34
35
  Requires-Dist: pycryptodome (>=3.17,<4.0)
@@ -280,8 +281,6 @@ config:
280
281
  baddns:
281
282
  enable_references: True
282
283
 
283
-
284
-
285
284
  ```
286
285
 
287
286
  </details>
@@ -1,4 +1,4 @@
1
- bbot/__init__.py,sha256=PSBAzvTIlXQ6VGkKm7voHEz1M3On9Kmudq3sMhhIMQM,130
1
+ bbot/__init__.py,sha256=h_5kMUtItS3CeMu4nQuuiTZe8kt6rXLQaQ6_-wcMuOM,130
2
2
  bbot/cli.py,sha256=Qlgqabm8N6r6uO1RuwGaM7-VXDSP_NH-YUnDUTsDYPM,10877
3
3
  bbot/core/__init__.py,sha256=l255GJE_DvUnWvrRb0J5lG-iMztJ8zVvoweDOfegGtI,46
4
4
  bbot/core/config/__init__.py,sha256=zYNw2Me6tsEr8hOOkLb4BQ97GB7Kis2k--G81S8vofU,342
@@ -98,7 +98,7 @@ bbot/modules/docker_pull.py,sha256=T_xObzExDTZF-_HfgZSfrU199QgCME3rYmkVs1HigXQ,9
98
98
  bbot/modules/dockerhub.py,sha256=yHKxV-uVubAUvYrIXizSZoLUiPKArTH2mCh5FjY4sas,3486
99
99
  bbot/modules/dotnetnuke.py,sha256=rw_EchDg49VyQj5JiUh0AqUqtsuqLrhc-nwrybdzhZ8,10537
100
100
  bbot/modules/emailformat.py,sha256=RLPJW-xitYB-VT4Lp08qVzFkXx_kMyV_035JT_Yf4fM,1082
101
- bbot/modules/extractous.py,sha256=_9tJsQRqhYIaPFmMByc2NiyvPhcPgs-KGQ8-XhtkSyc,4546
101
+ bbot/modules/extractous.py,sha256=qE4h0reR51t9NSIcR4-VMMjc5t3H03bpW3fO0A6nb9c,4563
102
102
  bbot/modules/ffuf_shortnames.py,sha256=9Kh0kJsw7XXpXmCkiB5eAhG4h9rSo8Y-mB3p0EDa_l0,12624
103
103
  bbot/modules/filedownload.py,sha256=x2LmLcLD1FD2L9O6p58l21WYoqyxD5HgHg6P1g1RyxU,8180
104
104
  bbot/modules/fingerprintx.py,sha256=rdlR9d64AntAhbS_eJzh8bZCeLPTJPSKdkdKdhH_qAo,3269
@@ -114,14 +114,14 @@ bbot/modules/google_playstore.py,sha256=N4QjzQag_bgDXfX17rytBiiWA-SQtYI2N0J_ZNEO
114
114
  bbot/modules/gowitness.py,sha256=nLV2AFFK6hiQrQSoYlqY1Eo2BE3rAjYiiOKCtqAoRDc,11277
115
115
  bbot/modules/hackertarget.py,sha256=IsKs9PtxUHdLJKZydlRdW_loBE2KphQYi3lKDAd4odc,1029
116
116
  bbot/modules/host_header.py,sha256=uDjwidMdeNPMRfzQ2YW4REEGsZqnGOZHbOS6GgdNd9s,7686
117
- bbot/modules/httpx.py,sha256=VaHpdfMsnEGkJlSUfRrM4DppgqEsDxC1MBqOgKhEL18,7588
117
+ bbot/modules/httpx.py,sha256=sNvtjIek2Io9BTle3MQUOj-0QYZvbsKL4et1Xd9vY1I,7642
118
118
  bbot/modules/hunt.py,sha256=5giYoCuXWVCzxuHwF6DvA9UlJcenokZJU2-fsou_9zg,5933
119
119
  bbot/modules/hunterio.py,sha256=Vp_QnxHSHLYmlUxPYozFVs1u-50UzRybq7Q7dWvCbFM,2638
120
120
  bbot/modules/iis_shortnames.py,sha256=bIlmC21a0eK_cjMu1UQkDl9EfpfCN1SAggDqJL8LJfE,14493
121
121
  bbot/modules/internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
122
122
  bbot/modules/internal/aggregate.py,sha256=csWYIt2fUp9K_CRxP3bndUMIjpNIh8rmBubp5Fr1-nc,395
123
123
  bbot/modules/internal/base.py,sha256=BXO4Hc7XKaAOaLzolF3krJX1KibPxtek2GTQUgnCHk0,387
124
- bbot/modules/internal/cloudcheck.py,sha256=k9Sg7R06wV0hx0HJI86oWZ2ozeKa1S2VLpVPlx7XPe8,4845
124
+ bbot/modules/internal/cloudcheck.py,sha256=sr1_dj4eqcD3x8MigZkjf0AxZZWSJFzvRjYGl5uxVdk,4913
125
125
  bbot/modules/internal/dnsresolve.py,sha256=1fwWChIGpSEIIkswueiIhEwIahQ7YngZ-njFK-RIsfU,15679
126
126
  bbot/modules/internal/excavate.py,sha256=IazekmFOnjrqghTf9YhBbMM4dohv27vIEvfNZXJSZvg,51529
127
127
  bbot/modules/internal/speculate.py,sha256=NolqW2s8tokibc6gVM960KlrABkjhLB-7YlCdVx4O9s,9223
@@ -294,7 +294,7 @@ bbot/test/test_step_2/module_tests/test_module_c99.py,sha256=F-46Kkwxe29xPZ-3kxC
294
294
  bbot/test/test_step_2/module_tests/test_module_censys.py,sha256=RoFfLS0hgASdSoctJEzaKrHVqqRkuPRKPTYVCX2rZLo,4177
295
295
  bbot/test/test_step_2/module_tests/test_module_certspotter.py,sha256=60jCOeK1yaUEgtTxYW-T47kZgKt9XxP2qBH9w-0MDBk,636
296
296
  bbot/test/test_step_2/module_tests/test_module_chaos.py,sha256=9JRgtDEnnJgmEMCTB2bqRJRkBavLys-6ypHPxrM_hXk,956
297
- bbot/test/test_step_2/module_tests/test_module_cloudcheck.py,sha256=XWAkCpq0PMEGXksnK4tNR1IyPkjRd_anhCoT5tWmLU4,4074
297
+ bbot/test/test_step_2/module_tests/test_module_cloudcheck.py,sha256=9DVhJfXaM42JXz577T0LdrrmArvhFXNdhICZP8aLLFU,4081
298
298
  bbot/test/test_step_2/module_tests/test_module_code_repository.py,sha256=i02Tgvr_F9_E4d6aEaXrfdk71NkoDvjzP4C98l2rNGg,2414
299
299
  bbot/test/test_step_2/module_tests/test_module_columbus.py,sha256=6CpIJCsykUfsn0CqxQWciIiNdM3Z73-HTnpBnVtS-L8,563
300
300
  bbot/test/test_step_2/module_tests/test_module_credshed.py,sha256=ipkCFL7YmZBLWWoGyGr98saL_yh3E99EnLtagHqdY1g,3360
@@ -416,8 +416,8 @@ bbot/wordlists/raft-small-extensions-lowercase_CLEANED.txt,sha256=ZSIVebs7ptMvHx
416
416
  bbot/wordlists/top_open_ports_nmap.txt,sha256=LmdFYkfapSxn1pVuQC2LkOIY2hMLgG-Xts7DVtYzweM,42727
417
417
  bbot/wordlists/valid_url_schemes.txt,sha256=0B_VAr9Dv7aYhwi6JSBDU-3M76vNtzN0qEC_RNLo7HE,3310
418
418
  bbot/wordlists/wordninja_dns.txt.gz,sha256=DYHvvfW0TvzrVwyprqODAk4tGOxv5ezNmCPSdPuDUnQ,570241
419
- bbot-2.3.0.5438rc0.dist-info/LICENSE,sha256=GzeCzK17hhQQDNow0_r0L8OfLpeTKQjFQwBQU7ZUymg,32473
420
- bbot-2.3.0.5438rc0.dist-info/METADATA,sha256=i5UQgB9yhkyfzqgT3X74QNPpmFrdp0oZcTsLXFWUzcg,17949
421
- bbot-2.3.0.5438rc0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
422
- bbot-2.3.0.5438rc0.dist-info/entry_points.txt,sha256=cWjvcU_lLrzzJgjcjF7yeGuRA_eDS8pQ-kmPUAyOBfo,38
423
- bbot-2.3.0.5438rc0.dist-info/RECORD,,
419
+ bbot-2.3.0.5447rc0.dist-info/LICENSE,sha256=GzeCzK17hhQQDNow0_r0L8OfLpeTKQjFQwBQU7ZUymg,32473
420
+ bbot-2.3.0.5447rc0.dist-info/METADATA,sha256=DcH8iZT2eAe35Bq37mk8fCuK6gCrfz-sOtBjB6wA_WI,17988
421
+ bbot-2.3.0.5447rc0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
422
+ bbot-2.3.0.5447rc0.dist-info/entry_points.txt,sha256=cWjvcU_lLrzzJgjcjF7yeGuRA_eDS8pQ-kmPUAyOBfo,38
423
+ bbot-2.3.0.5447rc0.dist-info/RECORD,,