Welcome, guest | Sign In | My Account | Store | Cart
null 

Diff to Previous Revision

--- revision 3 2012-11-07 08:16:00
+++ revision 4 2013-05-26 10:55:07
@@ -1,28 +1,1 @@
-# DHCP Table POP
-# Requests device name + mac address
-
-
-import urllib
-import re
-import json
-
-
-password = "admin"
-user     = "admin"
-
-#combines credentials with URL.
-website = urllib.urlopen("http://" + user + ":" + password + "@192.168.1.1/Static_dhcp.htm")
-
-#looks for the fragment of code that stores DHCP clients
-for lines in website.readlines():
-if re.match("var myData", lines):
-clients = lines
-
-#cleans up the json object
-clients = clients.strip("var myData =  ")
-clients = clients.replace(';','')
-
-#loads json object
-jsonList = json.loads(clients)
-for x in jsonList:
-print x[0] + " " + x[3]
+null 

History