print_error("Socket error ({ex}). It most likely means that something else is listening locally on port UDP:{port}. Make sure to kill it before running the exploit again.".format(ex=ex,port=9999))
defcommand_loop(self):
while1:
cmd=raw_input("cmd > ")
try:
print_info(self.execute(cmd))
exceptsocket.timeout:
print_error("No response received. The exploit tends to be unstable though. It is worth trying to run the same command again.")
defexecute(self,cmd):
iflen(cmd)>237:
print_error('Your command must be at most 237 characters long. Longer strings might crash the server.')
...
...
@@ -86,7 +79,7 @@ class Exploit(exploits.Exploit):