mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-09 18:02:56 +01:00
MySQL is specific (types are automatically being converted without any warning/error)
This commit is contained in:
parent
f1f34a65a2
commit
7ea8dd9428
1 changed files with 4 additions and 1 deletions
|
|
@ -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 a new issue