mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-11 10:19:03 +00:00
Fix for an --os-pwn with ICMPsh (it was crashing because methods interleaved with Metasploit ones)
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user