-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshortenurlpc.py
103 lines (83 loc) · 3.05 KB
/
shortenurlpc.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Developed by GH0STH4CKER
# Got idea from Fire-Phoenix-SL/Phishing-url-mask
import requests , sys , time , os , socket
from bs4 import BeautifulSoup as bSoup
from colorama import init , Fore
init()
def Main() :
os.system('cls')
banner = """
█▀ █ █ █▀█ █▀█ ▀█▀ █▀▀ █▄ █ █ █ █▀█ █
▄█ █▀█ █▄█ █▀▄ █ ██▄ █ ▀█ █▄█ █▀▄ █▄▄"""
tagline = """ [v 1.0]
--------------------------------------------------
Hide Your Malicious Links [+] By GH0STH4CK3R
--------------------------------------------------
"""
def banners() :
print(Fore.CYAN+banner)
print(Fore.LIGHTCYAN_EX+tagline)
banners()
itms = ["Checking for internet /","Checking for internet -","Checking for internet \\","Checking for internet |"]
def spinning_cursor():
while True:
for cursor in itms:
yield cursor
spinner = spinning_cursor()
for iii in range(50):
sys.stdout.write(next(spinner))
sys.stdout.flush()
time.sleep(0.1)
sys.stdout.write('\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b')
try:
ip = socket.gethostbyname("www.google.com")
except Exception as e:
os.system('cls')
banners()
print(Fore.LIGHTRED_EX + "No Internet !")
time.sleep(5)
exit()
os.system('cls')
banners()
print(Fore.CYAN + "[01] Facebook")
print("[02] Google")
print("[03] Instagram")
print("[04] Youtube")
print("[05] Twitter")
smedia = input("\nSelector > ")
if smedia == "01" :
social = "https://www.facebook.com"
elif smedia == "02" :
social = "https://www.google.com"
elif smedia == "03" :
social = "https://www.instagram.com"
elif smedia == "04" :
social = "https://www.youtube.com"
elif smedia == "05" :
social = "https://www.twitter.com"
else :
print("Default option selected !")
social = "https:/www.facebook.com"
iurl = input("\nEnter Url : ")
postname = input("\nName for Post link (amazing-tricks) : ")
url = "https://www.shorturl.at/shortener.php"
data = {"u": iurl}
res = requests.post(url,data=data)
rcode = res.status_code
if rcode == 200 :
#rdata = res.text
page_html = res.text
page_soup = bSoup(page_html,"html.parser")
urltag = page_soup.find("input",{"id":"shortenurl"})
surl = urltag['value']
full_url = social + "-" + postname + "@" + surl
print(Fore.LIGHTGREEN_EX + "\nCopy This Link > ",full_url)
else :
print(Fore.LIGHTRED_EX + "Error !",rcode)
print(Fore.CYAN+"")
loop = int(input("Shorten another link ?\n\n[98] Yes\n[99] No\n\nChoice > "))
if loop == 98 :
Main()
else:
exit()
Main()