- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathf.py
More file actions
Latest commit
28 lines (16 loc) · 519 Bytes
/
Copy pathf.py
File metadata and controls
28 lines (16 loc) · 519 Bytes
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
importtime
importrequests
fromrequests.authimportHTTPBasicAuth
page=''
whilepage=='':
try:
page=requests.get('https://34.203.116.253:8443/j_security_check', auth=HTTPBasicAuth('admin', 'admin'), verify=False)
page.status_code
break
except:
print("Connection refused by the server..")
print("Let me sleep for 5 seconds")
print("ZZzzzz...")
time.sleep(1)
print("Was a nice sleep, now let me continue...")
continue