mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-06 22:23:14 +03:00
Minor bug fix to avoid crash when running sqlmap behind a proxy server
This commit is contained in:
parent
0e9515c540
commit
91a3a582e8
|
@ -29,7 +29,7 @@ class ICMPsh:
|
||||||
This class defines methods to call icmpsh for plugins.
|
This class defines methods to call icmpsh for plugins.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self):
|
def __initVars(self):
|
||||||
self.lhostStr = None
|
self.lhostStr = None
|
||||||
self.rhostStr = None
|
self.rhostStr = None
|
||||||
self.localIP = getLocalIP()
|
self.localIP = getLocalIP()
|
||||||
|
@ -67,6 +67,7 @@ class ICMPsh:
|
||||||
self.execCmd(cmd, silent=True)
|
self.execCmd(cmd, silent=True)
|
||||||
|
|
||||||
def uploadIcmpshSlave(self, web=False):
|
def uploadIcmpshSlave(self, web=False):
|
||||||
|
self.__initVars()
|
||||||
self.__randStr = randomStr(lowercase=True)
|
self.__randStr = randomStr(lowercase=True)
|
||||||
self.__icmpslaveRemoteBase = "tmpi%s.exe" % self.__randStr
|
self.__icmpslaveRemoteBase = "tmpi%s.exe" % self.__randStr
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user