new parameters
This commit is contained in:
+2
-2
@@ -4,8 +4,8 @@ import httplib2
|
||||
import sys
|
||||
|
||||
URL = "http://"+sys.argv[1]+"/cgi-bin/reboot.cgi"
|
||||
USER = "root"
|
||||
PASS = "root"
|
||||
USER = sys.argv[2]
|
||||
PASS = sys.argv[3]
|
||||
|
||||
h = httplib2.Http(cache=None, timeout=0.1)
|
||||
h.add_credentials(USER, PASS)
|
||||
|
||||
Reference in New Issue
Block a user