Fix for an --os-pwn with ICMPsh (it was crashing because methods interleaved with Metasploit ones)

This commit is contained in:
Miroslav Stampar 2013-01-07 16:44:22 +01:00
parent 46e2ad53cd
commit 425df067eb

View File

@ -45,8 +45,8 @@ class ICMPsh:
return address return address
def _prepareIngredients(self, encode=True): def _prepareIngredients(self, encode=True):
self.lhostStr = self._selectLhost() self.lhostStr = ICMPsh._selectLhost(self)
self.rhostStr = self._selectRhost() self.rhostStr = ICMPsh._selectRhost(self)
def _runIcmpshMaster(self): def _runIcmpshMaster(self):
infoMsg = "running icmpsh master locally" infoMsg = "running icmpsh master locally"
@ -82,7 +82,7 @@ class ICMPsh:
self.writeFile(self._icmpslave, self._icmpslaveRemote, "binary") self.writeFile(self._icmpslave, self._icmpslaveRemote, "binary")
def icmpPwn(self): def icmpPwn(self):
self._prepareIngredients() ICMPsh._prepareIngredients(self)
self._runIcmpshSlaveRemote() self._runIcmpshSlaveRemote()
self._runIcmpshMaster() self._runIcmpshMaster()