mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 16:07:55 +03:00 
			
		
		
		
	Fixes #3841
This commit is contained in:
		
							parent
							
								
									b5063fc25a
								
							
						
					
					
						commit
						a42a7c88bd
					
				|  | @ -676,28 +676,28 @@ class Dump(object): | ||||||
|             else: |             else: | ||||||
|                 colConsiderStr = " '%s' was" % unsafeSQLIdentificatorNaming(column) |                 colConsiderStr = " '%s' was" % unsafeSQLIdentificatorNaming(column) | ||||||
| 
 | 
 | ||||||
|             msg = "column%s found in the " % colConsiderStr |             found = {} | ||||||
|             msg += "following databases:" |  | ||||||
|             self._write(msg) |  | ||||||
| 
 |  | ||||||
|             _ = {} |  | ||||||
| 
 |  | ||||||
|             for db, tblData in dbs.items(): |             for db, tblData in dbs.items(): | ||||||
|                 for tbl, colData in tblData.items(): |                 for tbl, colData in tblData.items(): | ||||||
|                     for col, dataType in colData.items(): |                     for col, dataType in colData.items(): | ||||||
|                         if column.lower() in col.lower(): |                         if column.lower() in col.lower(): | ||||||
|                             if db in _: |                             if db in found: | ||||||
|                                 if tbl in _[db]: |                                 if tbl in found[db]: | ||||||
|                                     _[db][tbl][col] = dataType |                                     found[db][tbl][col] = dataType | ||||||
|                                 else: |                                 else: | ||||||
|                                     _[db][tbl] = {col: dataType} |                                     found[db][tbl] = {col: dataType} | ||||||
|                             else: |                             else: | ||||||
|                                 _[db] = {} |                                 found[db] = {} | ||||||
|                                 _[db][tbl] = {col: dataType} |                                 found[db][tbl] = {col: dataType} | ||||||
| 
 | 
 | ||||||
|                             continue |                             continue | ||||||
| 
 | 
 | ||||||
|             self.dbTableColumns(_) |             if found: | ||||||
|  |                 msg = "column%s found in the " % colConsiderStr | ||||||
|  |                 msg += "following databases:" | ||||||
|  |                 self._write(msg) | ||||||
|  | 
 | ||||||
|  |                 self.dbTableColumns(found) | ||||||
| 
 | 
 | ||||||
|     def sqlQuery(self, query, queryRes): |     def sqlQuery(self, query, queryRes): | ||||||
|         self.string(query, queryRes, content_type=CONTENT_TYPE.SQL_QUERY) |         self.string(query, queryRes, content_type=CONTENT_TYPE.SQL_QUERY) | ||||||
|  |  | ||||||
|  | @ -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.3.8.1" | VERSION = "1.3.8.2" | ||||||
| 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) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user