mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
MySQL is specific (types are automatically being converted without any warning/error)
This commit is contained in:
@@ -225,7 +225,10 @@ def columnExists(columnFile, regex=None):
|
||||
columns = {}
|
||||
|
||||
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:
|
||||
columns[column] = 'numeric'
|
||||
|
||||
Reference in New Issue
Block a user