zcutlip

wndr3700v4 fingerprint

Oct 23rd, 2013
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. #fingerprint the firmware of a Netgear WNDR3700v4
  2. #this requires no authentication
  3.  
  4. from bowcaster.clients.http import HttpClient
  5.  
  6. def fingerprint_wndr3700_version(target,port=80):
  7.     client=HttpClient()
  8.              
  9.     url="http://%s:%d/currentsetting.htm" % (target,port)
  10.  
  11.     resp=client.send(url)
  12.     lines=resp.split()
  13.     fingerprint={}
  14.     for line in lines:
  15.         (k,v)=line.strip().split("=")
  16.         fingerprint[k]=v
  17.     return fingerprint
Advertisement
Add Comment
Please, Sign In to add comment