Skip to content

Commit 425df06

Browse files
committed
Fix for an --os-pwn with ICMPsh (it was crashing because methods interleaved with Metasploit ones)
1 parent 46e2ad5 commit 425df06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/takeover/icmpsh.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def _selectLhost(self):
4545
return address
4646

4747
def _prepareIngredients(self, encode=True):
48-
self.lhostStr = self._selectLhost()
49-
self.rhostStr = self._selectRhost()
48+
self.lhostStr = ICMPsh._selectLhost(self)
49+
self.rhostStr = ICMPsh._selectRhost(self)
5050

5151
def _runIcmpshMaster(self):
5252
infoMsg = "running icmpsh master locally"
@@ -82,7 +82,7 @@ def uploadIcmpshSlave(self, web=False):
8282
self.writeFile(self._icmpslave, self._icmpslaveRemote, "binary")
8383

8484
def icmpPwn(self):
85-
self._prepareIngredients()
85+
ICMPsh._prepareIngredients(self)
8686
self._runIcmpshSlaveRemote()
8787
self._runIcmpshMaster()
8888

0 commit comments

Comments
 (0)