mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 07:57:47 +03:00 
			
		
		
		
	working on #742 - working on it
This commit is contained in:
		
							parent
							
								
									6999c3413c
								
							
						
					
					
						commit
						4be0b366eb
					
				|  | @ -182,18 +182,15 @@ class Filesystem(GenericFilesystem): | ||||||
|         # TODO: need to be fixed |         # TODO: need to be fixed | ||||||
|         #psString = "[System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String(%s)) > %s" % (encodedFileContent, dFile) |         #psString = "[System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String(%s)) > %s" % (encodedFileContent, dFile) | ||||||
|         #psString = "[System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String(\"%s\")) | Out-File -Encoding \"ASCII\" %s" % (encodedFileContent, dFile) |         #psString = "[System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String(\"%s\")) | Out-File -Encoding \"ASCII\" %s" % (encodedFileContent, dFile) | ||||||
|         psString = "[System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String(\"%s\")) > %s" % (encodedFileContent, dFile) |         psString = "[System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String(\"%s\")) ^> %s" % (encodedFileContent, dFile) | ||||||
| 
 | 
 | ||||||
|         logger.debug("uploading the PowerShell script to %s, please wait.." % randPSScriptPath) |         logger.debug("uploading the PowerShell script to %s, please wait.." % randPSScriptPath) | ||||||
| 
 | 
 | ||||||
|         self.xpCmdshellWriteFile(psString, tmpPath, randPSScriptPath) |         self.xpCmdshellWriteFile(psString, tmpPath, randPSScript) | ||||||
| 
 | 
 | ||||||
|         logger.debug("executing the PowerShell script to write the %s file" % dFile) |         logger.debug("executing the PowerShell script to write the %s file" % dFile) | ||||||
| 
 | 
 | ||||||
|         commands = ("powershell -File %s" % randPSScriptPath) |         self.execCmd("powershell -File \"%s\"" % randPSScriptPath) | ||||||
|         complComm = " & ".join(command for command in commands) |  | ||||||
| 
 |  | ||||||
|         self.execCmd(complComm) |  | ||||||
| 
 | 
 | ||||||
|     def _stackedWriteFileDebugExe(self, tmpPath, wFile, wFileContent, dFile, fileType): |     def _stackedWriteFileDebugExe(self, tmpPath, wFile, wFileContent, dFile, fileType): | ||||||
|         infoMsg = "using debug.exe to write the %s " % fileType |         infoMsg = "using debug.exe to write the %s " % fileType | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user