Skip to content

Instantly share code, notes, and snippets.

@Sh1n0g1
Created May 18, 2020 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sh1n0g1/6d434dee8854cdbce6749b29b5496e98 to your computer and use it in GitHub Desktop.
Save Sh1n0g1/6d434dee8854cdbce6749b29b5496e98 to your computer and use it in GitHub Desktop.
#!python3
import requests
import time
URL= [
'http://shino.club/ ',
'https://shinobot.com/ ',
'https://mnd2015.info/ ',
'https://shinosec.com/ ',
'https://shinobotps1.com/ ',
'https://shinolocker.com/ ',
'http://mnctf.info/ ',
'https://cvestalker.com/ '
]
EXPECTEDSTATUS=200
TIMEOUT=3
def checkstatus(url):
try:
r=requests.get(url.strip(), timeout=3)
if r.status_code!=EXPECTEDSTATUS:
return False, str(r.status_code)
else:
return True, str(r.status_code)
except Exception as e:
return False, str(e)
while True:
for u in URL:
start=time.time()
alive, message=checkstatus(u)
end=time.time()
print("URL: %s\tAlive: %s\tTime: %.2f\tMessage: %s" % (u, alive, end-start, message))
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment