Skip to content

Commit

Permalink
-Renamed about to help
Browse files Browse the repository at this point in the history
-Except KeyboardInterrupt when calling user selected option
  • Loading branch information
vil committed Jun 30, 2024
1 parent ba8051b commit 2099ad6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ You can also [donate](https://github.com/sponsors/vil) to keep the project alive
| Local User Enum | Enumerates local user accounts on the current machine. |
| Caesar Cipher | Cipher/decipher/bruteforce a message using the Caesar's code. |
| BaseXX | Encodes/decodes a message using Base64/32/16. |
| About | Tells you about the tool. |
| Help | Shows the help message. |
| Donate | My crypto addresses where to donate. |
| Exit | Exits the tool. |

Expand Down
19 changes: 11 additions & 8 deletions h4xtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def print_banner() -> None:
{Style.RESET_ALL}v{VERSION} / Vili (@vil) / https://vili.dev
""")

def about() -> None:
def help() -> None:
print(Fore.LIGHTCYAN_EX)
printer.nonprefix(f"""
H4X-Tools v{VERSION}, a toolkit for scraping, OSINT and more.
Expand All @@ -58,7 +58,7 @@ def about() -> None:
Ip Lookup : Looks up an IP/domain address and returns information about it.
Port Scanner : Scans for open ports in a given IP/domain address.
Username Search : Tries to find a given username from many different websites.
Cybercime int : Searches if given email/domain has been compromised and leaked.
Cybercrime int : Searches if given email/domain has been compromised and leaked.
Email Search : Efficiently finds registered accounts from a given email.
Webhook Spammer : Spams messages to a discord webhook.
WhoIs Lookup : Looks up a domain and returns information about it.
Expand All @@ -71,12 +71,12 @@ def about() -> None:
Local User Enum : Enumerates local user accounts on the current machine.
Caesar Cipher : Cipher/decipher/bruteforce a message using the Caesar's code.
BaseXX : Encodes/decodes a message using Base64/32/16.
About : Tells you about the tool.
Help : Shows the help message.
Donate : My crypto addresses where to donate.
You can also exit the program with quit, q, kill, exit
You can close the toolkit with the commands quit, q, kill and exit.
This source code is under the GNU General Public License, version 3, and is made by Vili.
This toolkit is under the GNU General Public License, version 3, and is made by Vili.
""")


Expand Down Expand Up @@ -108,7 +108,7 @@ def print_menu() -> None:
print(" " * 4, end='')

print("\n")
print(f"Type {Style.BRIGHT}exit{Style.RESET_ALL} to close the tool...")
print(f"Type {Style.BRIGHT}exit{Style.RESET_ALL} to close the toolkit...")

MENU_OPTIONS = {
"1": handles.handle_ig_scrape,
Expand All @@ -130,7 +130,7 @@ def print_menu() -> None:
"17": handles.handle_local_user_enum,
"18": handles.handle_caesar_cipher,
"19": handles.handle_basexx,
"20": about,
"20": help,
"21": donate
}

Expand Down Expand Up @@ -158,7 +158,10 @@ def main() -> None:
break

if user_input in MENU_OPTIONS:
MENU_OPTIONS[user_input]() # Call the corresponding function based on the selected option
try:
MENU_OPTIONS[user_input]() # Call the corresponding function based on the selected option
except KeyboardInterrupt:
printer.warning("Cancelled..!")
time.sleep(3) # Sleep so the user has time to see results.
else:
printer.error("Invalid option!")
Expand Down

0 comments on commit 2099ad6

Please sign in to comment.