-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbypass.py
42 lines (38 loc) · 1.22 KB
/
bypass.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
import requests, os
def bypass():
os.system("clear")
print("[1] Bypass One URL")
print("[2] Bypass Multiple URLs")
print("[3] Exit")
o = input("[+] Enter > ")
if o == "1":
url = input("[+] Enter URL to Bypass: ")
payload = {"url": url}
url_bypass = requests.post("https://api.bypass.vip/", data=payload)
bypassed = url_bypass.json()
print("Bypassed URL: " + bypassed["destination"])
elif o == "2":
print("[!] Example File Input:")
print("[+] Enter The File with URLs: urls.txt")
urls_file = input("[+] Enter The File with URLs: ")
urls = open(f"{str(urls_file)}", "r")
for i in urls:
url_bypass = {"url": i}
bypass = requests.post("https://api.bypass.vip/", data=url_bypass)
bypassed = bypass.json()
try:
open("bypassed.txt", "x")
except FileExistsError:
pass
bypassed_url = open("bypassed.txt", "a")
try:
print("[+] Bypassed URL")
bypassed_url.write(bypassed["destination"] + "\n")
except KeyError:
print("[-] Invalid URL Found")
pass
elif o == "3":
os.system("exit")
if __name__ == "__main__":
bypass()
# Original: https://github.com/bypass-vip/bypass.vip/blob/main/python-requests.py