bbot 2.4.0__py3-none-any.whl → 2.4.0.5977rc0__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.4.0"
2
+ __version__ = "v2.4.0.5977rc"
3
3
 
4
4
  from .scanner import Scanner, Preset
bbot/scanner/target.py CHANGED
@@ -95,7 +95,7 @@ class BaseTarget(RadixTarget):
95
95
  else:
96
96
  event = self.make_event(target)
97
97
  if event:
98
- self.inputs.add(target)
98
+ self.inputs.add(str(target))
99
99
  _events = [event]
100
100
  for event in _events:
101
101
  events.add(event)
@@ -1075,3 +1075,19 @@ scan_name: bbot_test
1075
1075
  assert output_file.is_file()
1076
1076
 
1077
1077
  shutil.rmtree(output_dir, ignore_errors=True)
1078
+
1079
+
1080
+ # regression test for https://github.com/blacklanternsecurity/bbot/issues/2337
1081
+ def test_preset_serialization():
1082
+ from ipaddress import ip_address, ip_network
1083
+
1084
+ preset = Preset("192.168.1.1")
1085
+ preset = preset.bake()
1086
+
1087
+ import orjson as json
1088
+
1089
+ preset_dict = preset.to_dict(include_target=True)
1090
+ print(preset_dict)
1091
+ preset_str = json.dumps(preset_dict)
1092
+ preset_dict = json.loads(preset_str)
1093
+ assert preset_dict == {"target": ["192.168.1.1"], "whitelist": ["192.168.1.1/32"]}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bbot
3
- Version: 2.4.0
3
+ Version: 2.4.0.5977rc0
4
4
  Summary: OSINT automation for hackers.
5
5
  License: GPL-3.0
6
6
  Keywords: python,cli,automation,osint,threat-intel,intelligence,neo4j,scanner,python-library,hacking,recursion,pentesting,recon,command-line-tool,bugbounty,subdomains,security-tools,subdomain-scanner,osint-framework,attack-surface,subdomain-enumeration,osint-tool
@@ -1,4 +1,4 @@
1
- bbot/__init__.py,sha256=IicYjzB9QO4XhJgmacK62_obEGwmxMNCGkv8dXh0BGs,123
1
+ bbot/__init__.py,sha256=uyluUiAkmmBVRMN2lWwuwgDrFroiK-3Cf5H8CMnip70,130
2
2
  bbot/cli.py,sha256=H7L3yIoYuSpkrf1K1qqiBMQBTyt8UI9FfConpjqr7KI,11029
3
3
  bbot/core/__init__.py,sha256=l255GJE_DvUnWvrRb0J5lG-iMztJ8zVvoweDOfegGtI,46
4
4
  bbot/core/config/__init__.py,sha256=zYNw2Me6tsEr8hOOkLb4BQ97GB7Kis2k--G81S8vofU,342
@@ -236,7 +236,7 @@ bbot/scanner/preset/path.py,sha256=Q29MO8cOEn690yW6bB08P72kbZ3C-H_TOEoXuwWnFM8,2
236
236
  bbot/scanner/preset/preset.py,sha256=Xmh9mkO4c985sOG8BGRwujBUmO1jCpHRC_Sgq2fD_dY,40805
237
237
  bbot/scanner/scanner.py,sha256=O9LPaOa33yjdtolri3pcmQOBj4_8fMpMlwoYICZYK0M,54617
238
238
  bbot/scanner/stats.py,sha256=re93sArKXZSiD0Owgqk2J3Kdvfm3RL4Y9Qy_VOcaVk8,3623
239
- bbot/scanner/target.py,sha256=EQwtFZLDeNlqt8JupyBEksqeQ_c_i3NARSWf3mQQC4k,12128
239
+ bbot/scanner/target.py,sha256=icfcalZrFSP_LIQkH4MpQXuvrVmo-Xl83FCg7NlddX0,12133
240
240
  bbot/scripts/docs.py,sha256=ZLY9-O6OeEElzOUvTglO5EMkRv1s4aEuxJb2CthCVsI,10782
241
241
  bbot/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
242
242
  bbot/test/bbot_fixtures.py,sha256=JZhqObsSQ5H2RJZCkq4eNaGo6DcxKYMPQ1XFcbE8vQg,9995
@@ -264,7 +264,7 @@ bbot/test/test_step_1/test_helpers.py,sha256=hZfnzjtegezYOqTuo5uAaXGI2GGsfuHhglb
264
264
  bbot/test/test_step_1/test_manager_deduplication.py,sha256=hZQpDXzg6zvzxFolVOcJuY-ME8NXjZUsqS70BRNXp8A,15594
265
265
  bbot/test/test_step_1/test_manager_scope_accuracy.py,sha256=JV1bQHt9EIM0GmGS4T4Brz_L2lfcwTxtNC06cfv7r64,79763
266
266
  bbot/test/test_step_1/test_modules_basic.py,sha256=ELpGlsthSq8HaxB5My8-ESVHqMxqdL5Of0STMIyaWzA,20001
267
- bbot/test/test_step_1/test_presets.py,sha256=cIwtuKKim7b0MRdeNtlRk0VYxNYuHaolyFXhjYp15YA,40474
267
+ bbot/test/test_step_1/test_presets.py,sha256=hCyIWu7YHzEJ_mPD66Ms1J1xE_2PXKnYsIUULWTUPhA,40974
268
268
  bbot/test/test_step_1/test_python_api.py,sha256=GM5Kp2AAFl92ozo1kL6axsM87F8Gdq2_mWQvRnbXW_0,5503
269
269
  bbot/test/test_step_1/test_regexes.py,sha256=BMlaXY_5eybgbgz8MCZbXNrXsovbYK_mNPd_4AH6mSc,14353
270
270
  bbot/test/test_step_1/test_scan.py,sha256=g1oB1TGXzOIm3Rvy-HCE6xDg_IJ-mOuTfqlRjI4wWnI,8872
@@ -425,8 +425,8 @@ bbot/wordlists/raft-small-extensions-lowercase_CLEANED.txt,sha256=ZSIVebs7ptMvHx
425
425
  bbot/wordlists/top_open_ports_nmap.txt,sha256=LmdFYkfapSxn1pVuQC2LkOIY2hMLgG-Xts7DVtYzweM,42727
426
426
  bbot/wordlists/valid_url_schemes.txt,sha256=0B_VAr9Dv7aYhwi6JSBDU-3M76vNtzN0qEC_RNLo7HE,3310
427
427
  bbot/wordlists/wordninja_dns.txt.gz,sha256=DYHvvfW0TvzrVwyprqODAk4tGOxv5ezNmCPSdPuDUnQ,570241
428
- bbot-2.4.0.dist-info/LICENSE,sha256=GzeCzK17hhQQDNow0_r0L8OfLpeTKQjFQwBQU7ZUymg,32473
429
- bbot-2.4.0.dist-info/METADATA,sha256=_6CgTkuCM74hqp6kq93LGudlnOXFBQwlFrV6I9pu_Xc,18210
430
- bbot-2.4.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
431
- bbot-2.4.0.dist-info/entry_points.txt,sha256=cWjvcU_lLrzzJgjcjF7yeGuRA_eDS8pQ-kmPUAyOBfo,38
432
- bbot-2.4.0.dist-info/RECORD,,
428
+ bbot-2.4.0.5977rc0.dist-info/LICENSE,sha256=GzeCzK17hhQQDNow0_r0L8OfLpeTKQjFQwBQU7ZUymg,32473
429
+ bbot-2.4.0.5977rc0.dist-info/METADATA,sha256=P4-00DPgON9pxancnGdzGsL0wbeXMZLhwyJqCDqEBek,18218
430
+ bbot-2.4.0.5977rc0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
431
+ bbot-2.4.0.5977rc0.dist-info/entry_points.txt,sha256=cWjvcU_lLrzzJgjcjF7yeGuRA_eDS8pQ-kmPUAyOBfo,38
432
+ bbot-2.4.0.5977rc0.dist-info/RECORD,,