-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathh4xtools.py
executable file
·177 lines (147 loc) · 6.44 KB
/
h4xtools.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
#!/usr/bin/env python3
"""
Copyright (c) 2024. Vili and contributors.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
import os, time, socket
from colorama import Fore, Style
from helper import printer, handles
VERSION = "0.3.1"
def internet_check() -> None:
try:
socket.create_connection(("gnu.org", 80))
printer.success("Internet Connection is Available..!")
except OSError:
printer.warning("Internet Connection is Unavailable..!")
def print_banner() -> None:
print(Fore.LIGHTBLACK_EX + f"""
▄ .▄▐▄• ▄ ▄▄▄▄▄ ▄▄▌ .▄▄ ·
██▪▐█ █▌█▌▪•██ ▪ ▪ ██• ▐█ ▀.
██▀▐█ ·██· ▐█.▪ ▄█▀▄ ▄█▀▄ ██▪ ▄▀▀▀█▄
██▌▐▀▪▐█·█▌ ▐█▌·▐█▌.▐▌▐█▌.▐▌▐█▌▐▌▐█▄▪▐█
▀▀▀ ·•▀▀ ▀▀ ▀▀▀ ▀█▄▀▪ ▀█▄▀▪.▀▀▀ ▀▀▀▀
{Style.RESET_ALL}v{VERSION} / Vili (@vil) / https://vili.dev
""")
def help() -> None:
print(Fore.LIGHTCYAN_EX)
printer.nonprefix(f"""
H4X-Tools v{VERSION}, a toolkit for scraping, OSINT and more.
Repository link : https://github.com/vil/h4x-tools
Made in Finland, with love.
Name Desc
--------- ----------
Ig Scrape : Scrapes information from IG accounts.
Web Search : Searches the internet for the given query.
Phone Lookup : Looks up a phone number and returns information about it.
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.
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.
SMS Bomber : Spams messages to a given mobile number. (Works poorly and only for US numbers)
Fake Info Generator : Generates fake information using Faker.
Web Scrape : Scrapes links from a given url.
Wi-Fi Finder : Scans for nearby Wi-Fi networks.
Wi-Fi Vault : Scans for locally saved Wi-Fi passwords.
Dir Buster : Bruteforce directories on a website.
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.
Help : Shows the help message.
Donate : My crypto addresses where to donate.
You can close the toolkit with the commands quit, q, kill and exit.
This toolkit is under the GNU General Public License, version 3, and is made by Vili.
""")
def donate() -> None:
printer.nonprefix(f"""{Fore.LIGHTCYAN_EX}
If you want to support me and keep H4X-Tools alive, you can donate to these addresses:
Platform Address
------ ------
BCH : qp58pmwsfq4rp0vvafjrj2uenp8edmftycvvh8wmlg
BTC : bc1qwgeuvc25g4hrylmgcup4yzavt5tl8pk93auj34
ETH : 0x4433D6d7d31F38c63E0e6eA31Ffac2125B618142
XMR : 47RTtA7b8dgQmd9dDYYTUrhsrXzdUvckLGqvZoBCwrchRdky1fLmzexL3esTNrTMstJiafnhDacsXi8UnS1AXACNKkNzv71
Or you can support me on GitHub : https://github.com/sponsors/vil
Every single donation is appreciated! <3
""")
def print_menu() -> None:
max_option_length = max(len(value.__name__.replace('handle_', '').replace('_', ' ').title()) for value in MENU_OPTIONS.values())
for i, (key, value) in enumerate(MENU_OPTIONS.items(), start=1):
option_name = value.__name__.replace('handle_', '').replace('_', ' ').title()
print(f"{Fore.LIGHTGREEN_EX}[{key.zfill(2)}]{Style.RESET_ALL} {option_name.ljust(max_option_length)}", end='')
if i % 2 == 0:
print()
else:
print(" " * 4, end='')
print("\n")
print(f"Type {Style.BRIGHT}exit{Style.RESET_ALL} to close the toolkit...")
MENU_OPTIONS = {
"1": handles.handle_ig_scrape,
"2": handles.handle_web_search,
"3": handles.handle_phone_lookup,
"4": handles.handle_ip_lookup,
"5": handles.handle_username_search,
"6": handles.handle_email_search,
"7": handles.handle_cybercrime_int,
"8": handles.handle_port_scanner,
"9": handles.handle_webhook_spammer,
"10": handles.handle_whois_lookup,
"11": handles.handle_sms_bomber,
"12": handles.handle_fake_info_generator,
"13": handles.handle_web_scrape,
"14": handles.handle_wifi_finder,
"15": handles.handle_wifi_vault,
"16": handles.handle_dir_buster,
"17": handles.handle_local_user_enum,
"18": handles.handle_caesar_cipher,
"19": handles.handle_basexx,
"20": help,
"21": donate
}
def main() -> None:
internet_check()
time.sleep(0.5)
if os.name == "nt":
printer.warning("Windows system detected..! Expect issues...")
time.sleep(1)
while True:
print_banner()
time.sleep(1)
print_menu()
user_input = printer.inp(f"Tool to execute : \t")
if user_input.lower() in {"quit", "exit", "q", "kill"}:
"""
Kills the program.
"""
printer.warning("Quitting... Goodbye!")
print(Style.RESET_ALL)
time.sleep(0.5)
break
if user_input in MENU_OPTIONS:
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!")
time.sleep(0.5)
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
print("\n")
printer.warning("Quitting... Goodbye!")
print(Style.RESET_ALL)
exit(1)