mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 07:57:47 +03:00 
			
		
		
		
	Bug fix (--common-columns on SQLite)
This commit is contained in:
		
							parent
							
								
									47d2cf0c6c
								
							
						
					
					
						commit
						03728a4f20
					
				|  | @ -4068,9 +4068,9 @@ def safeSQLIdentificatorNaming(name, isTable=False): | |||
|         if retVal.upper() in kb.keywords or (retVal or " ")[0].isdigit() or not re.match(r"\A[A-Za-z0-9_@%s\$]+\Z" % ('.' if _ else ""), retVal):  # MsSQL is the only DBMS where we automatically prepend schema to table name (dot is normal) | ||||
|             retVal = unsafeSQLIdentificatorNaming(retVal) | ||||
| 
 | ||||
|             if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.ACCESS): | ||||
|             if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.ACCESS, DBMS.SQLITE):  # Note: in SQLite double-quotes are treated as string if column/identifier is non-existent (e.g. SELECT "foobar" FROM users) | ||||
|                 retVal = "`%s`" % retVal | ||||
|             elif Backend.getIdentifiedDbms() in (DBMS.PGSQL, DBMS.DB2, DBMS.SQLITE, DBMS.HSQLDB, DBMS.H2, DBMS.INFORMIX): | ||||
|             elif Backend.getIdentifiedDbms() in (DBMS.PGSQL, DBMS.DB2, DBMS.HSQLDB, DBMS.H2, DBMS.INFORMIX): | ||||
|                 retVal = "\"%s\"" % retVal | ||||
|             elif Backend.getIdentifiedDbms() in (DBMS.ORACLE,): | ||||
|                 retVal = "\"%s\"" % retVal.upper() | ||||
|  | @ -4106,9 +4106,9 @@ def unsafeSQLIdentificatorNaming(name): | |||
|     retVal = name | ||||
| 
 | ||||
|     if isinstance(name, six.string_types): | ||||
|         if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.ACCESS): | ||||
|         if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.ACCESS, DBMS.SQLITE): | ||||
|             retVal = name.replace("`", "") | ||||
|         elif Backend.getIdentifiedDbms() in (DBMS.PGSQL, DBMS.DB2, DBMS.SQLITE, DBMS.INFORMIX, DBMS.HSQLDB): | ||||
|         elif Backend.getIdentifiedDbms() in (DBMS.PGSQL, DBMS.DB2, DBMS.INFORMIX, DBMS.HSQLDB): | ||||
|             retVal = name.replace("\"", "") | ||||
|         elif Backend.getIdentifiedDbms() in (DBMS.ORACLE,): | ||||
|             retVal = name.replace("\"", "").upper() | ||||
|  |  | |||
|  | @ -18,7 +18,7 @@ from lib.core.enums import OS | |||
| from thirdparty.six import unichr as _unichr | ||||
| 
 | ||||
| # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | ||||
| VERSION = "1.3.11.108" | ||||
| VERSION = "1.3.11.109" | ||||
| TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" | ||||
| TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} | ||||
| VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user