1- from colorama import Fore , Back , Style
2- from pyfiglet import Figlet
3- from rich .console import Console
4- from time import sleep
5- import itertools
6- import threading
1+ import sys
72
8- class ProgressBar (threading .Thread ):
9- def __init__ (self ):
10- super (ProgressBar , self ).__init__ ()
11- self .do_run = True
12-
13- def run (self ):
14- for char in itertools .cycle ('|/-\\ ' ):
15- if not self .do_run :
16- break
17- print (Fore .LIGHTMAGENTA_EX + Back .WHITE + char + Style .RESET_ALL , end = '\r ' )
18- sleep (0.1 )
3+ try :
4+ from colorama import Fore , Back , Style
5+ from pyfiglet import Figlet
6+ from rich .console import Console
7+ except ImportError as e :
8+ print (Fore .RED + "Import error appeared. Reason: {}" .format (e ) + Style .RESET_ALL )
9+ sys .exit ()
1910
2011class Menu :
2112 def __init__ (self ):
@@ -24,9 +15,9 @@ def __init__(self):
2415 def welcome_menu (self ):
2516 fig = Figlet (font = 'univers' )
2617 self .console .print (fig .renderText ('DPULSE' ), style = "bold blue" )
27- print (Fore .BLUE + Back . WHITE + 'HEARTBEAT // version: 0.8b \n ' + Style .RESET_ALL )
28- print (Fore .BLUE + Back . WHITE + 'Developed by OSINT-TECHNOLOGIES\n ' + Style .RESET_ALL )
29- print (Fore .BLUE + Back . WHITE + 'Visit our pages:\n https://github.com/OSINT-TECHNOLOGIES) ' + Style .RESET_ALL + ' \n \n ' )
18+ print (Fore .CYAN + Style . BRIGHT + 'HEARTBEAT // version: 0.9rc1 \n ' + Style .RESET_ALL )
19+ print (Fore .CYAN + Style . BRIGHT + 'Developed by OSINT-TECHNOLOGIES\n ' + Style .RESET_ALL )
20+ print (Fore .CYAN + Style . BRIGHT + 'Visit our pages:\n https://github.com/OSINT-TECHNOLOGIES' + Style .RESET_ALL )
3021
3122 def print_main_menu (self ):
3223 print ('\n ' )
@@ -41,7 +32,8 @@ def print_settings_menu(self):
4132 print ('\n ' )
4233 print (Fore .MAGENTA + Back .WHITE + '[SETTINGS MENU]' + Style .RESET_ALL )
4334 print (Fore .CYAN + "1. Show current config" )
44- print (Fore .LIGHTRED_EX + "2. Return to main menu" + Style .RESET_ALL + '\n ' )
35+ print (Fore .CYAN + "2. Add Google Dork to config file" )
36+ print (Fore .LIGHTRED_EX + "3. Return to main menu" + Style .RESET_ALL + '\n ' )
4537
4638 def print_help_menu (self ):
4739 print (Fore .MAGENTA + Back .WHITE + '[HELP MENU]' + Style .RESET_ALL )
0 commit comments