forked from h4cklinker/Backlinker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
backlinker.py
29 lines (28 loc) · 1.14 KB
/
backlinker.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
import json,requests,re,sys
try:
print("""
_ ____ _ _ _ _
| | _ \ | | | (_) | |
_ _ _ __| | |_) | __ _ ___| | _| |_ _ __ | | _____ _ __
| | | | '__| | _ < / _` |/ __| |/ / | | '_ \| |/ / _ \ '__|
| |_| | | | | |_) | (_| | (__| <| | | | | | < __/ |
\__,_|_| |_|____/ \__,_|\___|_|\_\_|_|_| |_|_|\_\___|_|
H4-cklinker - wmdark.com
""")
if (sys.version_info.major == 3):
site = input(" => Backlink Kasilcak Site\t: ")
else:
site = raw_input(" => Backlink Kasilcak Site\t: ")
with open("urlbacklinks.json", "r") as file:
data = json.loads(file.read())
for backlink in data:
url = backlink['url'].replace("h4link.duckdns.org", site)
try:
r = requests.get(url).status_code
except KeyboardInterrupt:
sys.exit()
except:
r = "time out"
print(site + " => Backlink Eklendi ==> "+re.search('http:\/\/.*?\/', url).group(0).replace("/", "").replace("http:","") + " status: "+str(r))
except:
print("\n\n => exit\n")