From 91a3a582e836f4c182db048e6af4fe554c9186ab Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 4 Nov 2010 12:22:04 +0000 Subject: [PATCH] Minor bug fix to avoid crash when running sqlmap behind a proxy server --- lib/takeover/icmpsh.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/takeover/icmpsh.py b/lib/takeover/icmpsh.py index 4872a96d0..e857997fb 100644 --- a/lib/takeover/icmpsh.py +++ b/lib/takeover/icmpsh.py @@ -29,7 +29,7 @@ class ICMPsh: This class defines methods to call icmpsh for plugins. """ - def __init__(self): + def __initVars(self): self.lhostStr = None self.rhostStr = None self.localIP = getLocalIP() @@ -67,6 +67,7 @@ class ICMPsh: self.execCmd(cmd, silent=True) def uploadIcmpshSlave(self, web=False): + self.__initVars() self.__randStr = randomStr(lowercase=True) self.__icmpslaveRemoteBase = "tmpi%s.exe" % self.__randStr