bhp-pro 1.2.6__py3-none-any.whl → 1.2.9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bhp_pro
3
- Version: 1.2.6
3
+ Version: 1.2.9
4
4
  Summary: Web Enumeration Tool
5
5
  Author: ssskingsss12
6
6
  Author-email: smalls3000i@gmail.com
@@ -0,0 +1,6 @@
1
+ bhp_pro.py,sha256=PILeO-qsRI54JDAkMxqhte87SrQhNyhaGnb52xypsFU,745023
2
+ bhp_pro-1.2.9.dist-info/METADATA,sha256=ymCnXEbRzRbwrBjss9-hGyZIDXqjHdIEUKWKTEk38-c,600
3
+ bhp_pro-1.2.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
+ bhp_pro-1.2.9.dist-info/entry_points.txt,sha256=Yn3HpraGX3lXX4FPq3Gm-lHh3SwQA-5rtgPWNWMFXkw,41
5
+ bhp_pro-1.2.9.dist-info/top_level.txt,sha256=1xjbIaVM77UJz9Tsi1JjILgE0YDG7iLhY6KSMNEi9zM,8
6
+ bhp_pro-1.2.9.dist-info/RECORD,,
bhp_pro.py CHANGED
@@ -359,6 +359,7 @@ import os
359
359
  import sys
360
360
  import subprocess
361
361
  import time
362
+ import shutil # Added missing import
362
363
 
363
364
  REQUIRED_MODULES = [
364
365
  'multithreading', 'loguru', 'tqdm', 'bs4', 'pyfiglet', 'requests',
@@ -389,6 +390,17 @@ def install_python_module(module_name):
389
390
  ], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
390
391
  return True
391
392
  except subprocess.CalledProcessError:
393
+ # Fallback for cryptography
394
+ if module_name == 'cryptography':
395
+ try:
396
+ print(f" {YELLOW}Retrying with cryptography==41.0.7...{RESET}", end='', flush=True)
397
+ subprocess.check_call([
398
+ sys.executable, "-m", "pip", "install",
399
+ "cryptography==41.0.7", "--break-system-packages"
400
+ ], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
401
+ return True
402
+ except subprocess.CalledProcessError:
403
+ return False
392
404
  return False
393
405
 
394
406
  def install_system_package(package_name, package_manager):
@@ -430,8 +442,6 @@ def clear_tldextract_cache():
430
442
  print(f"Cache directory not found: {cache_path}")
431
443
  except Exception as e:
432
444
  print(f"Error removing cache: {e}")
433
- clear_tldextract_cache()
434
- clear_screen()
435
445
 
436
446
  def install_dependencies():
437
447
  clear_screen()
@@ -466,31 +476,45 @@ def install_dependencies():
466
476
 
467
477
  print(f"\n{CYAN}Installing Python modules...{RESET}")
468
478
  for i, module in enumerate(REQUIRED_MODULES, 1):
469
- simple_progress(i, len(REQUIRED_MODULES), {module})
479
+ simple_progress(i, len(REQUIRED_MODULES), f"{module}") # Fixed f-string
470
480
  try:
471
- __import__(module)
472
- print(f" {YELLOW}- Already installed: {module}{RESET}")
481
+ # Special handling for bugscan-x
482
+ if module == 'bugscan-x':
483
+ try:
484
+ __import__('bugscan_x') # Try with underscore
485
+ print(f" {YELLOW}- Already installed: {module}{RESET}")
486
+ except ImportError:
487
+ raise ImportError() # Force installation
488
+ else:
489
+ __import__(module)
490
+ print(f" {YELLOW}- Already installed: {module}{RESET}")
473
491
  except ImportError:
474
492
  print(f" {CYAN}Installing: {module}{RESET}", end='', flush=True)
475
493
  success = install_python_module(module)
476
494
  print(f" {GREEN if success else RED}{'✓' if success else '✗'}{RESET}")
477
495
 
478
-
479
496
  print(f"\n\n{GREEN}✅ Installation complete!{RESET}\n")
480
497
  time.sleep(1)
481
498
  clear_screen()
482
499
  print(f"{CYAN}Launching BUGHUNTERS PRO...{RESET}")
483
500
  time.sleep(1)
484
- install_dependencies()
485
-
486
501
 
487
502
  def setup_ctrlc_handler(back_function):
488
503
  """Sets up Ctrl+C handler to call the specified back function"""
504
+ import signal
505
+
489
506
  def handler(signum, frame):
490
507
  print("\nReturning to previous menu...")
491
508
  back_function()
509
+
510
+ signal.signal(signal.SIGINT, handler)
511
+ return handler
512
+
513
+
514
+ clear_tldextract_cache()
515
+ clear_screen()
516
+ install_dependencies()
492
517
 
493
- handler(signum, frame)
494
518
  #============================= Imports ========================#
495
519
 
496
520
  import argparse
@@ -6958,7 +6982,7 @@ def websocket_scanner_old():
6958
6982
  except Exception as write_err:
6959
6983
  print(f"{RED}[!] Failed to write result: {write_err}{RESET}")
6960
6984
  return "SUCCESS", result, status_code, server_info
6961
- elif status_code in ["101", "403", "301", "409", "405"]:
6985
+ elif status_code in ["101", "403", "301", "409", "405", "400"]:
6962
6986
  print(f"{YELLOW}[-] {result} — Interesting Status: {status_code}, Server: {server_info}{RESET}")
6963
6987
  if output_file:
6964
6988
  try:
@@ -16569,8 +16593,8 @@ def menu3():
16569
16593
  else:
16570
16594
  os.system('cls' if os.name == 'nt' else 'clear')
16571
16595
 
16572
- if __name__ == "__main__":
16573
- help_main()
16596
+
16597
+ help_main()
16574
16598
 
16575
16599
  def mainkio():
16576
16600
  if not is_admin():
@@ -16670,8 +16694,8 @@ def menu3():
16670
16694
  else:
16671
16695
  print("[!] Invalid choice. Please try again.")
16672
16696
 
16673
- if __name__ == "__main__":
16674
- mainkio()
16697
+
16698
+ mainkio()
16675
16699
 
16676
16700
  def prox():
16677
16701
  #!/usr/bin/env python3
@@ -16944,8 +16968,8 @@ def banner():
16944
16968
  MAGENTA + "██╔═══╝ ██╔══██╗██║ ██║" + LIME + "user should understand that useage of this script may be" + ENDC,
16945
16969
  MAGENTA + "██║ ██║ ██║╚██████╔╝" + LIME + "concidered an attack on a data network, and may violate terms" + ENDC,
16946
16970
  MAGENTA + "╚═╝ ╚═╝ ╚═╝ ╚═════╝" + LIME + "of service, use on your own network or get permission first" + ENDC,
16947
- PURPLE + "script_version@ 1.2.6 ®" + ENDC,
16948
- ORANGE + "All rights reserved 2022-2025 ♛: ®" + ENDC,
16971
+ PURPLE + "script_version@ 1.2.9 ®" + ENDC,
16972
+ ORANGE + "All rights reserved 2022-2026 ♛: ®" + ENDC,
16949
16973
  MAGENTA + "In Collaboration whit Ayan Rajpoot ® " + ENDC,
16950
16974
  BLUE + "Support: https://t.me/BugScanX 💬" + ENDC,
16951
16975
  YELLOW + "Programmed by King https://t.me/ssskingsss ☏: " + YELLOW + "®" + ENDC,
@@ -1,6 +0,0 @@
1
- bhp_pro.py,sha256=JuWWyPIcbUg0zpV7FOAVq7mE68IKixm21xvyxz0V4kI,744039
2
- bhp_pro-1.2.6.dist-info/METADATA,sha256=gYqCR7YtMiqZMiCusEU1KPUF6RaQy3hHLi6j-QYcWO4,600
3
- bhp_pro-1.2.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
- bhp_pro-1.2.6.dist-info/entry_points.txt,sha256=Yn3HpraGX3lXX4FPq3Gm-lHh3SwQA-5rtgPWNWMFXkw,41
5
- bhp_pro-1.2.6.dist-info/top_level.txt,sha256=1xjbIaVM77UJz9Tsi1JjILgE0YDG7iLhY6KSMNEi9zM,8
6
- bhp_pro-1.2.6.dist-info/RECORD,,