bhp-pro 1.2.8__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.
- {bhp_pro-1.2.8.dist-info → bhp_pro-1.2.9.dist-info}/METADATA +1 -1
- bhp_pro-1.2.9.dist-info/RECORD +6 -0
- bhp_pro.py +35 -11
- bhp_pro-1.2.8.dist-info/RECORD +0 -6
- {bhp_pro-1.2.8.dist-info → bhp_pro-1.2.9.dist-info}/WHEEL +0 -0
- {bhp_pro-1.2.8.dist-info → bhp_pro-1.2.9.dist-info}/entry_points.txt +0 -0
- {bhp_pro-1.2.8.dist-info → bhp_pro-1.2.9.dist-info}/top_level.txt +0 -0
|
@@ -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
|
-
|
|
472
|
-
|
|
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
|
|
@@ -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.
|
|
16948
|
-
ORANGE + "All rights reserved 2022-
|
|
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,
|
bhp_pro-1.2.8.dist-info/RECORD
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
bhp_pro.py,sha256=NFRfBKMWZUHVGgNBjItzouhWYXWniIzh7Ewd6hp9E_M,743966
|
|
2
|
-
bhp_pro-1.2.8.dist-info/METADATA,sha256=SLojzdE6JqUql4KhkYRKQy1sPNGj_u32RNTU8s2PVs4,600
|
|
3
|
-
bhp_pro-1.2.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
4
|
-
bhp_pro-1.2.8.dist-info/entry_points.txt,sha256=Yn3HpraGX3lXX4FPq3Gm-lHh3SwQA-5rtgPWNWMFXkw,41
|
|
5
|
-
bhp_pro-1.2.8.dist-info/top_level.txt,sha256=1xjbIaVM77UJz9Tsi1JjILgE0YDG7iLhY6KSMNEi9zM,8
|
|
6
|
-
bhp_pro-1.2.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|