This commit is contained in:
root 2024-12-09 08:56:11 +01:00
parent 6d698fcb59
commit 5f222cbfe7
19 changed files with 290 additions and 68 deletions

View file

@ -4,7 +4,6 @@ import json
import pandas as pd
import glob
def main():
print('[+] ONION UPTIME CHECKER')
@ -29,11 +28,19 @@ def main():
url=df.at[i,"URL"]
try:
status = requests.get(url,proxies=proxies, timeout=5).status_code
print(url,"✔️")
df.at[i,"Status"]="✔️"
#if uptime <100 do +1 to the value
if df.at[i,"Score"] < 100:
df.at[i,"Score"] = df.at[i,"Score"] + 1
print('[+]',url,status)
if status != 502:
print(url,"✔️")
df.at[i,"Status"]="✔️"
#if uptime <100 do +1 to the value
if df.at[i,"Score"] < 100:
df.at[i,"Score"] = df.at[i,"Score"] + 1
else:
print(url,"")
df.at[i,"Status"]=""
#if uptime >0 do -1 to the value
if df.at[i,"Score"] > 0:
df.at[i,"Score"] = df.at[i,"Score"] - 1
except requests.ConnectionError as e:
#print(e)
print(url,"")