This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
utils.py
64 lines (49 loc) · 2.15 KB
/
utils.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
from os import system, name
from itertools import cycle
import json
import random
# Colors
class Colors:
GREEN = "\033[92m"
FAIL = "\033[91m"
RESET = "\033[0m" # Resets the colors of the next characters
BLUE = "\033[94m"
class Browsers:
CHROME = "chrome"
FIREFOX = "firefox"
# Function to clear the terminal screen
def clear_terminal():
system('cls' if name == 'nt' else 'clear')
# Enables the colors to appear on the terminal, will run on any file that imports utils
system("")
def print_logo():
"""
Print the logo to the terminal in blue and adds 3 line breaks
"""
# prints the ascii logo with the description
print(f"""{Colors.BLUE}
███████╗████████╗ █████╗ ██████╗ ██╗ ███████╗
██╔════╝╚══██╔══╝██╔══██╗██╔════╝ ██║ ██╔════╝
█████╗ ██║ ███████║██║ ██╗ ██║ █████╗
██╔══╝ ██║ ██╔══██║██║ ╚██╗██║ ██╔══╝
███████╗ ██║ ██║ ██║╚██████╔╝███████╗███████╗
╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚══════╝
{Colors.RESET}
A multithreaded Omegle spam bot that:
• Uses custom and random user-agents
• Has a clear and well made config file
• Has Firefox and Chrome support
• Can send messages in a sequence
• Can save logs{Colors.BLUE}
""")
# get user agents from the user-agents.json file
with open("user-agents.json", 'r') as json_agents:
agent_list = json.load(json_agents)
# Randomize order of user agents in the list of agents
random.shuffle(agent_list)
# Create a cycle for the list of agents
agent_cycle = cycle(agent_list)
# For testing purposes
if __name__ == "__main__":
print_logo()
print(next(agent_cycle))