This commit is contained in:
3err0
2019-05-22 15:21:44 +08:00
parent ae6d2895c5
commit 58809b2127
3 changed files with 44 additions and 1 deletions
Executable
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env python
import httplib2
import sys
URL = "http://"+sys.argv[1]+"/cgi-bin/reboot.cgi"
USER = "root"
PASS = "root"
h = httplib2.Http(cache=None, timeout=0.1)
h.add_credentials(USER, PASS)
try:
resp = h.request(URL, "GET", headers={'cache-control':'no-cache'})
resp
print"OK"
except:
print"Asic not avalible"