-
Notifications
You must be signed in to change notification settings - Fork 3
/
checkname.py
83 lines (70 loc) · 3.71 KB
/
checkname.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
import os
import yaml
import requests
import subprocess, sys
# color and other
W = '\033[0m'
P = '\033[1;35m'
C = '\033[1;36m'
R = '\033[91m'
ht = 'https://'
# domains buy
gd = 'https://domains.google.com/express/search?searchTerm=' #google domains
un = 'https://uniregistry.com/buy-domains/' #uniregistry
god= 'https://id.godaddy.com/domainsearch/find?checkAvail=1&domainToCheck=' #godaddy
nc = 'https://www.namecheap.com/domains/registration/results/?domain=' #namecheap
hg = 'https://portal.hostgator.com/domain/purchase/registration/tegalsec/SNAPPY?search=' #hostgator
iw = 'https://iwantmyname.com/?domain=' #iwantmyname
dn = 'https://www.domainesia.com/domain/?domain=' #domainesia
def checker():
print ("""
██████╗██╗ ██╗███████╗ ██████╗██╗ ██╗███╗ ██╗ █████╗ ███╗ ███╗███████╗
██╔════╝██║ ██║██╔════╝██╔════╝██║ ██╔╝████╗ ██║██╔══██╗████╗ ████║██╔════╝
██║ ███████║█████╗ ██║ █████╔╝ ██╔██╗ ██║███████║██╔████╔██║█████╗
██║ ██╔══██║██╔══╝ ██║ ██╔═██╗ ██║╚██╗██║██╔══██║██║╚██╔╝██║██╔══╝
╚██████╗██║ ██║███████╗╚██████╗██║ ██╗██║ ╚████║██║ ██║██║ ╚═╝ ██║███████╗
╚═════╝╚═╝ ╚═╝╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
</> Tegal1337 </>
""")
user = input("Username: ")
if user == '':
exit()
else:
with open('websites.yml') as f:
data = yaml.safe_load(f)
links = data['sites']
weblinks = ["{}{}".format(i,user) for i in links]
for url in weblinks:
r = requests.get(url, headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'})
if r.status_code == 200:
print(C+'Unavailable for: '+W+'' + url)
else:
print(P+'Available for: '+W+'' + url)
with open("tlds.txt", "r") as ifile:
for line in ifile:
tld = line.rstrip("\n")
ns = "nslookup "+user+"."+tld+" | grep -i \"Can't find\""
nsl = subprocess.run(ns, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
x = user+'.'+tld
xx = ht+user+'.'+tld
if nsl.returncode == 0:
print(P+'Available for: '+W+''+xx)
print(R+" Google Domains: "+W+gd+x)
# print(R+" Uniregistry: "+W+un+x)
# print(R+" Godaddy: "+W+god+x)
# print(R+" Namecheap: "+W+nc+x)
# print(R+" Hostgator: "+W+hg+x)
# print(R+" Iwantmyname: "+W+iw+x)
# print(R+" Domainesia: "+W+dn+x)
else:
print(C+'Unavailable for: '+W+''+xx)
def banner():
try:
os.system('cls')
raise ValueError('Error')
except Exception:
os.system('clear')
def main():
checker()
banner()
main()