mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	MySQL is specific (types are automatically being converted without any warning/error)
This commit is contained in:
		
							parent
							
								
									f1f34a65a2
								
							
						
					
					
						commit
						7ea8dd9428
					
				| 
						 | 
					@ -225,7 +225,10 @@ def columnExists(columnFile, regex=None):
 | 
				
			||||||
        columns = {}
 | 
					        columns = {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for column in threadData.shared.value:
 | 
					        for column in threadData.shared.value:
 | 
				
			||||||
            result = inject.checkBooleanExpression("%s" % safeStringFormat("EXISTS(SELECT %s FROM %s WHERE ROUND(%s)=ROUND(%s))", (column, table, column, column)))
 | 
					            if Backend.getIdentifiedDbms() in (DBMS.MYSQL,):
 | 
				
			||||||
 | 
					                result = inject.checkBooleanExpression("%s" % safeStringFormat("EXISTS(SELECT %s FROM %s WHERE ABS(%s)>0)", (column, table, column)))
 | 
				
			||||||
 | 
					            else:
 | 
				
			||||||
 | 
					                result = inject.checkBooleanExpression("%s" % safeStringFormat("EXISTS(SELECT %s FROM %s WHERE ROUND(%s)=ROUND(%s))", (column, table, column, column)))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if result:
 | 
					            if result:
 | 
				
			||||||
                columns[column] = 'numeric'
 | 
					                columns[column] = 'numeric'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user