mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +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 = {}
|
||||
|
||||
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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user