-
Notifications
You must be signed in to change notification settings - Fork 0
/
getreq
56 lines (45 loc) · 1.5 KB
/
getreq
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
import os
import time
import requests
clear = lambda: os.system('clear')
clear()
print("╭──────────────•◈•──────────────╮")
print(" [+] Welcome to H1V3'S Tool! [+] ")
print("╰──────────────•◈•──────────────╯\n")
while True:
user = input(" Enter username: ")
pwd = input(" Enter your passwor: ")
if(user == "a" and pwd == "a"):
print ("\n [+] welcome [+] \n")
break
else:
print(" sorry wrong username or password ")
time.sleep(0.5)
clear()
print("╭──────────────•◈•──────────────╮")
print(" [+] Welcome to H1V3'S Tool! [+] ")
print("╰──────────────•◈•──────────────╯\n")
clear()
while True:
web = input(" [+] Enter a website you want to check [+] ")
ok = 'https://'
ok1 = 'https://'
x = web.startswith((ok))
x1 = web.startswith((ok1))
if (x == True or x1 == True):
try:
r = requests.get(web)
r.headers
print(" ", r)
print (" ", r.headers)
print("\n Removing from screen in 5 seconds! \n")
time.sleep(5)
clear()
except:
print("\n Enter valid URL")
time.sleep(1)
clear()
else:
print(" Error enter a valid URL ")
time.sleep(1)
clear()