From 7ba9e75c97b58206ca90d4b1f8a1a9e92df47e49 Mon Sep 17 00:00:00 2001 From: stamparm Date: Thu, 16 May 2013 15:23:20 +0200 Subject: [PATCH] Minor update related to the last commit --- lib/techniques/brute/use.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/techniques/brute/use.py b/lib/techniques/brute/use.py index e8d22a5ad..6ba0ae808 100644 --- a/lib/techniques/brute/use.py +++ b/lib/techniques/brute/use.py @@ -226,7 +226,7 @@ def columnExists(columnFile, regex=None): for column in threadData.shared.value: if Backend.getIdentifiedDbms() in (DBMS.MYSQL,): - result = inject.checkBooleanExpression("%s" % safeStringFormat("EXISTS(SELECT %s FROM %s WHERE ABS(%s)>0)", (column, table, column))) + result = not inject.checkBooleanExpression("%s" % safeStringFormat("EXISTS(SELECT %s FROM %s WHERE %s REGEXP '[^0-9]')", (column, table, column))) else: result = inject.checkBooleanExpression("%s" % safeStringFormat("EXISTS(SELECT %s FROM %s WHERE ROUND(%s)=ROUND(%s))", (column, table, column, column)))