mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +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
 | 
			
		||||
 | 
			
		||||
    def _prepareIngredients(self, encode=True):
 | 
			
		||||
        self.lhostStr = self._selectLhost()
 | 
			
		||||
        self.rhostStr = self._selectRhost()
 | 
			
		||||
        self.lhostStr = ICMPsh._selectLhost(self)
 | 
			
		||||
        self.rhostStr = ICMPsh._selectRhost(self)
 | 
			
		||||
 | 
			
		||||
    def _runIcmpshMaster(self):
 | 
			
		||||
        infoMsg = "running icmpsh master locally"
 | 
			
		||||
| 
						 | 
				
			
			@ -82,7 +82,7 @@ class ICMPsh:
 | 
			
		|||
            self.writeFile(self._icmpslave, self._icmpslaveRemote, "binary")
 | 
			
		||||
 | 
			
		||||
    def icmpPwn(self):
 | 
			
		||||
        self._prepareIngredients()
 | 
			
		||||
        ICMPsh._prepareIngredients(self)
 | 
			
		||||
        self._runIcmpshSlaveRemote()
 | 
			
		||||
        self._runIcmpshMaster()
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user