This repository has been archived by the owner on Nov 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathmain.py
55 lines (40 loc) · 1.91 KB
/
main.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
import requests, colorama, random, threading
from colorama import init, Fore, Back, Style
from dhooks import Webhook, Embed
## CONFIG
sendtowebhook = True ## (False, True)
yourwebhook = "here"
min = 5
max = 6
threads = 2 ## i would reccomend u keep this at 1 IF u are using the send to webhook feature, if not u can turn this up, this will speed up the process of finding usernames.
## END OF CONFIG
init()
def namegen():
length = random.randint(min, max)
eval = "a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R",
"S","T","U","V","W","X","Y","Z","1","2","3","4","5","6","7","8","9","0","_"
return ''.join(random.choice(eval) for i in range(length))
if sendtowebhook:
setwebhook = Webhook(url=yourwebhook)
def main():
while True:
name = namegen()
r = requests.get("https://api.roblox.com/users/get-by-username?username=" + name)
a = r.text
## credits to @thatonehen https://github.com/thatonehen
if not a.find('{"success":false,"errorMessage":"User not found"}') == -1:
print(f'{Fore.GREEN}{name} Is Not Taken!')
print('='*38)
open("UserNames.txt", "a").write(name + '\n')
if sendtowebhook:
embed = Embed(title='New Username Sniped!', color=0x00e3fd)#stuff
embed.add_field(name='Username', value=f'{name}')#stuff
embed.add_field(name='Register Here!', value=f'[Here!](https://www.roblox.com/signup)')
embed.add_field(name='Discord', value=f'[Join!](https://discord.gg/H5bcd7fTYb)')
setwebhook.execute(embed=embed)
for noni in range(threads):
try:
t = threading.Thread(target=main)
t.start()
except Exception as e:
print(e)