bbot 2.3.0.5473rc0__py3-none-any.whl → 2.3.0.5479rc0__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.5473rc"
2
+ __version__ = "v2.3.0.5479rc"
3
3
 
4
4
  from .scanner import Scanner, Preset
@@ -13,7 +13,7 @@ class trufflehog(BaseModule):
13
13
  }
14
14
 
15
15
  options = {
16
- "version": "3.86.1",
16
+ "version": "3.87.0",
17
17
  "config": "",
18
18
  "only_verified": True,
19
19
  "concurrency": 8,
@@ -135,14 +135,17 @@ class BBOTArgs:
135
135
  args_preset.core.merge_custom({"modules": {"stdout": {"event_types": self.parsed.event_types}}})
136
136
 
137
137
  # dependencies
138
+ deps_config = args_preset.core.custom_config.get("deps", {})
138
139
  if self.parsed.retry_deps:
139
- args_preset.core.custom_config["deps_behavior"] = "retry_failed"
140
+ deps_config["behavior"] = "retry_failed"
140
141
  elif self.parsed.force_deps:
141
- args_preset.core.custom_config["deps_behavior"] = "force_install"
142
+ deps_config["behavior"] = "force_install"
142
143
  elif self.parsed.no_deps:
143
- args_preset.core.custom_config["deps_behavior"] = "disable"
144
+ deps_config["behavior"] = "disable"
144
145
  elif self.parsed.ignore_failed_deps:
145
- args_preset.core.custom_config["deps_behavior"] = "ignore_failed"
146
+ deps_config["behavior"] = "ignore_failed"
147
+ if deps_config:
148
+ args_preset.core.merge_custom({"deps": deps_config})
146
149
 
147
150
  # other scan options
148
151
  if self.parsed.name is not None:
@@ -295,6 +298,12 @@ class BBOTArgs:
295
298
  )
296
299
 
297
300
  output = p.add_argument_group(title="Output")
301
+ output.add_argument(
302
+ "-o",
303
+ "--output-dir",
304
+ help="Directory to output scan results",
305
+ metavar="DIR",
306
+ )
298
307
  output.add_argument(
299
308
  "-om",
300
309
  "--output-modules",
@@ -304,12 +313,6 @@ class BBOTArgs:
304
313
  metavar="MODULE",
305
314
  )
306
315
  output.add_argument("-lo", "--list-output-modules", action="store_true", help="List available output modules")
307
- output.add_argument(
308
- "-o",
309
- "--output-dir",
310
- help="Directory to output scan results",
311
- metavar="DIR",
312
- )
313
316
  output.add_argument("--json", "-j", action="store_true", help="Output scan data in JSON format")
314
317
  output.add_argument("--brief", "-br", action="store_true", help="Output only the data itself")
315
318
  output.add_argument("--event-types", nargs="+", default=[], help="Choose which event types to display")
@@ -798,7 +798,7 @@ class Preset:
798
798
  # misc scan options
799
799
  if self.scan_name:
800
800
  preset_dict["scan_name"] = self.scan_name
801
- if self.scan_name:
801
+ if self.scan_name and self.output_dir is not None:
802
802
  preset_dict["output_dir"] = self.output_dir
803
803
 
804
804
  # conditions
@@ -1,3 +1,5 @@
1
+ import yaml
2
+
1
3
  from ..bbot_fixtures import *
2
4
 
3
5
  from bbot import cli
@@ -143,6 +145,20 @@ async def test_cli_args(monkeypatch, caplog, capsys, clean_default_config):
143
145
  assert len(out.splitlines()) == 1
144
146
  assert out.count(".") > 1
145
147
 
148
+ # deps behavior
149
+ monkeypatch.setattr("sys.argv", ["bbot", "-n", "depstest", "--retry-deps", "--current-preset"])
150
+ result = await cli._main()
151
+ assert result is None
152
+ out, err = capsys.readouterr()
153
+ print(out)
154
+ # parse YAML output
155
+ preset = yaml.safe_load(out)
156
+ assert preset == {
157
+ "description": "depstest",
158
+ "scan_name": "depstest",
159
+ "config": {"deps": {"behavior": "retry_failed"}},
160
+ }
161
+
146
162
  # list modules
147
163
  monkeypatch.setattr("sys.argv", ["bbot", "--list-modules"])
148
164
  result = await cli._main()
@@ -401,7 +417,6 @@ async def test_cli_args(monkeypatch, caplog, capsys, clean_default_config):
401
417
  async def test_cli_customheaders(monkeypatch, caplog, capsys):
402
418
  monkeypatch.setattr(sys, "exit", lambda *args, **kwargs: True)
403
419
  monkeypatch.setattr(os, "_exit", lambda *args, **kwargs: True)
404
- import yaml
405
420
 
406
421
  # test custom headers
407
422
  monkeypatch.setattr(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bbot
3
- Version: 2.3.0.5473rc0
3
+ Version: 2.3.0.5479rc0
4
4
  Summary: OSINT automation for hackers.
5
5
  Home-page: https://github.com/blacklanternsecurity/bbot
6
6
  License: GPL-3.0
@@ -1,4 +1,4 @@
1
- bbot/__init__.py,sha256=bghIkQycSLymbVcV4jVa_CprXDUdqUPECcnUyWKcL1o,130
1
+ bbot/__init__.py,sha256=b0tn9Xvh6RQbYv2LopEOiA7Rbz2eJdslwWxlVQd7sBY,130
2
2
  bbot/cli.py,sha256=SUEd4CcI-9QzFnqXpezza1sq_TNPcfDtJaSwL4MAl9g,10717
3
3
  bbot/core/__init__.py,sha256=l255GJE_DvUnWvrRb0J5lG-iMztJ8zVvoweDOfegGtI,46
4
4
  bbot/core/config/__init__.py,sha256=zYNw2Me6tsEr8hOOkLb4BQ97GB7Kis2k--G81S8vofU,342
@@ -191,7 +191,7 @@ bbot/modules/templates/sql.py,sha256=o-CdyyoJvHJdJBKkj3CIGXYxUta4w2AB_2Vr-k7cDDU
191
191
  bbot/modules/templates/subdomain_enum.py,sha256=SJmQKbWpymgSV_CYXDLlARhDCFxonzhhpvO_gIFaHnM,8396
192
192
  bbot/modules/templates/webhook.py,sha256=Ch7Xrq8DuIBSYaIUWsSGqg8irtDsyk6LVKhsRHTpTh0,3706
193
193
  bbot/modules/trickest.py,sha256=MRgLW0YiDWzlWdAjyqfPPLFb-a51r-Ffn_dphiJI_gA,1550
194
- bbot/modules/trufflehog.py,sha256=Q4giB4la8o1fIWs3jyt6yCdY0r2mhnPICxY4PPOLncc,8553
194
+ bbot/modules/trufflehog.py,sha256=8VnsF7wIjlR6z77VJPirweoZl-k70TZTpjKdOtI54FU,8553
195
195
  bbot/modules/url_manipulation.py,sha256=4J3oFkqTSJPPmbKEKAHJg2Q2w4QNKtQhiN03ZJq5VtI,4326
196
196
  bbot/modules/urlscan.py,sha256=-w_3Bm6smyG2GLQyIbnMUkKmeQVauo-V6F4_kJDYG7s,3740
197
197
  bbot/modules/viewdns.py,sha256=2SjNZNjQL1tko58tPAjP-CGYDmP-zZ1HpY-vACGa9UI,2595
@@ -221,11 +221,11 @@ bbot/scanner/__init__.py,sha256=gCyAAbkNm8_KozNpDENCKqO3E3ZCgseplnz40AtiJ1U,56
221
221
  bbot/scanner/dispatcher.py,sha256=_hsIegfUDrt8CUdXqgRvp1J0UwwzqVSDxjQmiviO41c,793
222
222
  bbot/scanner/manager.py,sha256=_5FBfxOmSMUeGp_-ryyGGl0pxb_eu-NSWft-lH1Pyog,10466
223
223
  bbot/scanner/preset/__init__.py,sha256=Jf2hWsHlTFtWNXL6gXD8_ZbKPFUM564ppdSxHFYnIJU,27
224
- bbot/scanner/preset/args.py,sha256=pMJ0PfQDbLwOnggaKJl_CHz1SpQpqhhQQPvVWQaoIKA,16269
224
+ bbot/scanner/preset/args.py,sha256=K8ivx2HIJ3sgYy-dGq9LKxx_vxFT5koJodlWKkBghAY,16331
225
225
  bbot/scanner/preset/conditions.py,sha256=hFL9cSIWGEsv2TfM5UGurf0c91cyaM8egb5IngBmIjA,1569
226
226
  bbot/scanner/preset/environ.py,sha256=9KbEOLWkUdoAf5Ez_2A1NNm6QduQElbnNnrPi6VDhZs,4731
227
227
  bbot/scanner/preset/path.py,sha256=Q29MO8cOEn690yW6bB08P72kbZ3C-H_TOEoXuwWnFM8,2274
228
- bbot/scanner/preset/preset.py,sha256=R8-RNEstx4kLMZcfz878qzmTpEH45kgg3itRK-FWw5I,40038
228
+ bbot/scanner/preset/preset.py,sha256=u4GpuydOZov1tEZpshQAB-LL8bZLJ3nyu-NmkBEBvEY,40070
229
229
  bbot/scanner/scanner.py,sha256=9Lpl7N7lAurMB1gWknbxv3Ph28QQWoZlGmcwTQarHJY,54129
230
230
  bbot/scanner/stats.py,sha256=re93sArKXZSiD0Owgqk2J3Kdvfm3RL4Y9Qy_VOcaVk8,3623
231
231
  bbot/scanner/target.py,sha256=svWRL8CtmAhZ0gNjvslMp_GHtTUx9aysyiNENzPNwPQ,11556
@@ -243,7 +243,7 @@ bbot/test/test_step_1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
243
243
  bbot/test/test_step_1/test__module__tests.py,sha256=uwuROxdXI52D-V9z3Q9VNslvBfaduj6MQS5tQ_UOqXA,1460
244
244
  bbot/test/test_step_1/test_bbot_fastapi.py,sha256=FNGvlax4lFZVd0T3HvV9SJh1lsngOX58GrUnJVzoy20,2531
245
245
  bbot/test/test_step_1/test_bloom_filter.py,sha256=GodseGF98sarWXZ5C3JCVWblnycS4BA75HEAzhx4xXg,2139
246
- bbot/test/test_step_1/test_cli.py,sha256=osCnJFA5S7NpGeAukVFTx3EkmLZPX6vITectU062Rsg,26299
246
+ bbot/test/test_step_1/test_cli.py,sha256=0OWNnfToVXN7tHzD00uOekjwNl5UjQAJxMQthW0JNJ0,26736
247
247
  bbot/test/test_step_1/test_command.py,sha256=5IeGV6TKB0xtFEsfsU_0mNrOmEdIQiQ3FHkUmsBNoOI,6485
248
248
  bbot/test/test_step_1/test_config.py,sha256=Q38hygpke2GDcv8OguVZuiSOnfDJxEMrRy20dN5Qsn0,887
249
249
  bbot/test/test_step_1/test_depsinstaller.py,sha256=zr9f-wJDotD1ZvKXGEuDRWzFYMAYBI6209mI_PWPtTQ,703
@@ -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.5473rc0.dist-info/LICENSE,sha256=GzeCzK17hhQQDNow0_r0L8OfLpeTKQjFQwBQU7ZUymg,32473
420
- bbot-2.3.0.5473rc0.dist-info/METADATA,sha256=7QT7k3a3jRu02K-1pb7d4ApdhBF726OypEmQq3Ak6iI,17988
421
- bbot-2.3.0.5473rc0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
422
- bbot-2.3.0.5473rc0.dist-info/entry_points.txt,sha256=cWjvcU_lLrzzJgjcjF7yeGuRA_eDS8pQ-kmPUAyOBfo,38
423
- bbot-2.3.0.5473rc0.dist-info/RECORD,,
419
+ bbot-2.3.0.5479rc0.dist-info/LICENSE,sha256=GzeCzK17hhQQDNow0_r0L8OfLpeTKQjFQwBQU7ZUymg,32473
420
+ bbot-2.3.0.5479rc0.dist-info/METADATA,sha256=wZUFULIcGcLNnNDjaxFqrbv8-Ck2HTK2k6tv1FpQy38,17988
421
+ bbot-2.3.0.5479rc0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
422
+ bbot-2.3.0.5479rc0.dist-info/entry_points.txt,sha256=cWjvcU_lLrzzJgjcjF7yeGuRA_eDS8pQ-kmPUAyOBfo,38
423
+ bbot-2.3.0.5479rc0.dist-info/RECORD,,