@@ -534,7 +534,7 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
534534 conf .db , conf .db , conf .db , unsafeSQLIdentificatorNaming (tbl ).split ("." )[- 1 ])
535535 query += condQuery .replace ("[DB]" , conf .db )
536536 elif Backend .getIdentifiedDbms () in (DBMS .SQLITE , DBMS .FIREBIRD ):
537- query = rootQuery .inband .query % tbl
537+ query = rootQuery .inband .query % unsafeSQLIdentificatorNaming ( tbl )
538538
539539 if dumpMode and colList :
540540 values = [(_ ,) for _ in colList ]
@@ -564,7 +564,7 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
564564 index , values = 1 , []
565565
566566 while True :
567- query = rootQuery .inband .query2 % (conf .db , tbl , index )
567+ query = rootQuery .inband .query2 % (conf .db , unsafeSQLIdentificatorNaming ( tbl ) , index )
568568 value = unArrayizeValue (inject .getValue (query , blind = False , time = False ))
569569
570570 if isNoneValue (value ) or value == " " :
@@ -663,15 +663,15 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
663663 query += condQuery .replace ("[DB]" , conf .db )
664664
665665 elif Backend .isDbms (DBMS .FIREBIRD ):
666- query = rootQuery .blind .count % (tbl )
666+ query = rootQuery .blind .count % unsafeSQLIdentificatorNaming (tbl )
667667 query += condQuery
668668
669669 elif Backend .isDbms (DBMS .INFORMIX ):
670- query = rootQuery .blind .count % (conf .db , conf .db , conf .db , conf .db , conf .db , tbl )
670+ query = rootQuery .blind .count % (conf .db , conf .db , conf .db , conf .db , conf .db , unsafeSQLIdentificatorNaming ( tbl ) )
671671 query += condQuery
672672
673673 elif Backend .isDbms (DBMS .SQLITE ):
674- query = rootQuery .blind .query % tbl
674+ query = rootQuery .blind .query % unsafeSQLIdentificatorNaming ( tbl )
675675 value = unArrayizeValue (inject .getValue (query , union = False , error = False ))
676676 parseSqliteTableSchema (value )
677677 return kb .data .cachedColumns
@@ -694,7 +694,7 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
694694 if Backend .isDbms (DBMS .MSSQL ):
695695 count , index , values = 0 , 1 , []
696696 while True :
697- query = rootQuery .blind .query3 % (conf .db , tbl , index )
697+ query = rootQuery .blind .query3 % (conf .db , unsafeSQLIdentificatorNaming ( tbl ) , index )
698698 value = unArrayizeValue (inject .getValue (query , union = False , error = False ))
699699 if isNoneValue (value ) or value == " " :
700700 break
@@ -723,11 +723,11 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
723723 query += condQuery .replace ("[DB]" , conf .db )
724724 field = condition .replace ("[DB]" , conf .db )
725725 elif Backend .isDbms (DBMS .FIREBIRD ):
726- query = rootQuery .blind .query % (tbl )
726+ query = rootQuery .blind .query % unsafeSQLIdentificatorNaming (tbl )
727727 query += condQuery
728728 field = None
729729 elif Backend .isDbms (DBMS .INFORMIX ):
730- query = rootQuery .blind .query % (index , conf .db , conf .db , conf .db , conf .db , conf .db , tbl )
730+ query = rootQuery .blind .query % (index , conf .db , conf .db , conf .db , conf .db , conf .db , unsafeSQLIdentificatorNaming ( tbl ) )
731731 query += condQuery
732732 field = condition
733733
@@ -761,9 +761,9 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
761761 query = rootQuery .blind .query2 % (conf .db , conf .db , conf .db , conf .db , column , conf .db ,
762762 conf .db , conf .db , unsafeSQLIdentificatorNaming (tbl ).split ("." )[- 1 ])
763763 elif Backend .isDbms (DBMS .FIREBIRD ):
764- query = rootQuery .blind .query2 % (tbl , column )
764+ query = rootQuery .blind .query2 % (unsafeSQLIdentificatorNaming ( tbl ) , column )
765765 elif Backend .isDbms (DBMS .INFORMIX ):
766- query = rootQuery .blind .query2 % (conf .db , conf .db , conf .db , conf .db , conf .db , tbl , column )
766+ query = rootQuery .blind .query2 % (conf .db , conf .db , conf .db , conf .db , conf .db , unsafeSQLIdentificatorNaming ( tbl ) , column )
767767
768768 colType = unArrayizeValue (inject .getValue (query , union = False , error = False ))
769769
0 commit comments