mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-30 23:47:45 +03:00 
			
		
		
		
	Fixes #4637
This commit is contained in:
		
							parent
							
								
									387020ece8
								
							
						
					
					
						commit
						9a6acd2054
					
				|  | @ -18,7 +18,7 @@ from lib.core.enums import OS | ||||||
| from thirdparty.six import unichr as _unichr | from thirdparty.six import unichr as _unichr | ||||||
| 
 | 
 | ||||||
| # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | # sqlmap version (<major>.<minor>.<month>.<monthly commit>) | ||||||
| VERSION = "1.5.4.6" | VERSION = "1.5.4.7" | ||||||
| TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" | TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" | ||||||
| TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} | 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) | VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) | ||||||
|  |  | ||||||
|  | @ -86,7 +86,7 @@ class Entries(object): | ||||||
|                 singleTimeLogMessage(infoMsg) |                 singleTimeLogMessage(infoMsg) | ||||||
|                 return |                 return | ||||||
| 
 | 
 | ||||||
|         conf.db = safeSQLIdentificatorNaming(conf.db) |         conf.db = safeSQLIdentificatorNaming(conf.db) or "" | ||||||
| 
 | 
 | ||||||
|         if conf.tbl: |         if conf.tbl: | ||||||
|             if Backend.getIdentifiedDbms() in UPPER_CASE_DBMSES: |             if Backend.getIdentifiedDbms() in UPPER_CASE_DBMSES: | ||||||
|  | @ -101,7 +101,7 @@ class Entries(object): | ||||||
| 
 | 
 | ||||||
|                 if tblList and isListLike(tblList[0]): |                 if tblList and isListLike(tblList[0]): | ||||||
|                     tblList = tblList[0] |                     tblList = tblList[0] | ||||||
|             elif not conf.search: |             elif conf.db and not conf.search: | ||||||
|                 errMsg = "unable to retrieve the tables " |                 errMsg = "unable to retrieve the tables " | ||||||
|                 errMsg += "in database '%s'" % unsafeSQLIdentificatorNaming(conf.db) |                 errMsg += "in database '%s'" % unsafeSQLIdentificatorNaming(conf.db) | ||||||
|                 raise SqlmapNoneDataException(errMsg) |                 raise SqlmapNoneDataException(errMsg) | ||||||
|  | @ -190,7 +190,7 @@ class Entries(object): | ||||||
|                     elif Backend.getIdentifiedDbms() in (DBMS.SYBASE, DBMS.MSSQL): |                     elif Backend.getIdentifiedDbms() in (DBMS.SYBASE, DBMS.MSSQL): | ||||||
|                         # Partial inband and error |                         # Partial inband and error | ||||||
|                         if not (isTechniqueAvailable(PAYLOAD.TECHNIQUE.UNION) and kb.injection.data[PAYLOAD.TECHNIQUE.UNION].where == PAYLOAD.WHERE.ORIGINAL): |                         if not (isTechniqueAvailable(PAYLOAD.TECHNIQUE.UNION) and kb.injection.data[PAYLOAD.TECHNIQUE.UNION].where == PAYLOAD.WHERE.ORIGINAL): | ||||||
|                             table = "%s.%s" % (conf.db, tbl) |                             table = "%s.%s" % (conf.db, tbl) if conf.db else tbl | ||||||
| 
 | 
 | ||||||
|                             if Backend.isDbms(DBMS.MSSQL) and not conf.forcePivoting: |                             if Backend.isDbms(DBMS.MSSQL) and not conf.forcePivoting: | ||||||
|                                 warnMsg = "in case of table dumping problems (e.g. column entry order) " |                                 warnMsg = "in case of table dumping problems (e.g. column entry order) " | ||||||
|  | @ -297,7 +297,7 @@ class Entries(object): | ||||||
|                     elif Backend.getIdentifiedDbms() in (DBMS.SQLITE, DBMS.MAXDB, DBMS.ACCESS, DBMS.FIREBIRD, DBMS.MCKOI, DBMS.EXTREMEDB, DBMS.RAIMA): |                     elif Backend.getIdentifiedDbms() in (DBMS.SQLITE, DBMS.MAXDB, DBMS.ACCESS, DBMS.FIREBIRD, DBMS.MCKOI, DBMS.EXTREMEDB, DBMS.RAIMA): | ||||||
|                         query = rootQuery.blind.count % tbl |                         query = rootQuery.blind.count % tbl | ||||||
|                     elif Backend.getIdentifiedDbms() in (DBMS.SYBASE, DBMS.MSSQL): |                     elif Backend.getIdentifiedDbms() in (DBMS.SYBASE, DBMS.MSSQL): | ||||||
|                         query = rootQuery.blind.count % ("%s.%s" % (conf.db, tbl)) |                         query = rootQuery.blind.count % ("%s.%s" % (conf.db, tbl)) if conf.db else tbl | ||||||
|                     elif Backend.isDbms(DBMS.INFORMIX): |                     elif Backend.isDbms(DBMS.INFORMIX): | ||||||
|                         query = rootQuery.blind.count % (conf.db, tbl) |                         query = rootQuery.blind.count % (conf.db, tbl) | ||||||
|                     else: |                     else: | ||||||
|  | @ -334,9 +334,9 @@ class Entries(object): | ||||||
|                         if Backend.getIdentifiedDbms() in (DBMS.ACCESS, DBMS.MCKOI, DBMS.RAIMA): |                         if Backend.getIdentifiedDbms() in (DBMS.ACCESS, DBMS.MCKOI, DBMS.RAIMA): | ||||||
|                             table = tbl |                             table = tbl | ||||||
|                         elif Backend.getIdentifiedDbms() in (DBMS.SYBASE, DBMS.MSSQL, DBMS.MAXDB): |                         elif Backend.getIdentifiedDbms() in (DBMS.SYBASE, DBMS.MSSQL, DBMS.MAXDB): | ||||||
|                             table = "%s.%s" % (conf.db, tbl) |                             table = "%s.%s" % (conf.db, tbl) if conf.db else tbl | ||||||
|                         elif Backend.isDbms(DBMS.INFORMIX): |                         elif Backend.isDbms(DBMS.INFORMIX): | ||||||
|                             table = "%s:%s" % (conf.db, tbl) |                             table = "%s:%s" % (conf.db, tbl) if conf.db else tbl | ||||||
| 
 | 
 | ||||||
|                         if Backend.isDbms(DBMS.MSSQL) and not conf.forcePivoting: |                         if Backend.isDbms(DBMS.MSSQL) and not conf.forcePivoting: | ||||||
|                             warnMsg = "in case of table dumping problems (e.g. column entry order) " |                             warnMsg = "in case of table dumping problems (e.g. column entry order) " | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user