mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-26 05:31:04 +03:00 
			
		
		
		
	Fix for an --os-pwn with ICMPsh (it was crashing because methods interleaved with Metasploit ones)
This commit is contained in:
		
							parent
							
								
									46e2ad53cd
								
							
						
					
					
						commit
						425df067eb
					
				|  | @ -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() | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user