mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-26 05:31:04 +03:00 
			
		
		
		
	More Backend class method usage refactoring
This commit is contained in:
		
							parent
							
								
									00f14bec5f
								
							
						
					
					
						commit
						b3a0424269
					
				|  | @ -105,7 +105,7 @@ class UDF: | ||||||
|         return output |         return output | ||||||
| 
 | 
 | ||||||
|     def udfCheckNeeded(self): |     def udfCheckNeeded(self): | ||||||
|         if ( not conf.rFile or ( conf.rFile and Backend.getIdentifiedDbms() != DBMS.PGSQL ) ) and "sys_fileread" in self.sysUdfs: |         if ( not conf.rFile or ( conf.rFile and not Backend.isDbms(DBMS.PGSQL) ) ) and "sys_fileread" in self.sysUdfs: | ||||||
|             self.sysUdfs.pop("sys_fileread") |             self.sysUdfs.pop("sys_fileread") | ||||||
| 
 | 
 | ||||||
|         if not conf.osPwn: |         if not conf.osPwn: | ||||||
|  |  | ||||||
|  | @ -280,7 +280,7 @@ class Filesystem: | ||||||
| 
 | 
 | ||||||
|             return None |             return None | ||||||
| 
 | 
 | ||||||
|         if fileContent in ( None, "" ) and Backend.getIdentifiedDbms() != DBMS.PGSQL: |         if fileContent in ( None, "" ) and not Backend.isDbms(DBMS.PGSQL): | ||||||
|             self.cleanup(onlyFileTbl=True) |             self.cleanup(onlyFileTbl=True) | ||||||
| 
 | 
 | ||||||
|             return |             return | ||||||
|  | @ -302,7 +302,7 @@ class Filesystem: | ||||||
|         fileContent = self.__unhexString(fileContent) |         fileContent = self.__unhexString(fileContent) | ||||||
|         rFilePath = dataToOutFile(fileContent) |         rFilePath = dataToOutFile(fileContent) | ||||||
| 
 | 
 | ||||||
|         if Backend.getIdentifiedDbms() != DBMS.PGSQL: |         if not Backend.isDbms(DBMS.PGSQL): | ||||||
|             self.cleanup(onlyFileTbl=True) |             self.cleanup(onlyFileTbl=True) | ||||||
| 
 | 
 | ||||||
|         return rFilePath |         return rFilePath | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user