mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 01:47:37 +03:00 
			
		
		
		
	minor update
This commit is contained in:
		
							parent
							
								
									93d7d6c355
								
							
						
					
					
						commit
						85a4ef6593
					
				| 
						 | 
					@ -731,6 +731,8 @@ class Connect:
 | 
				
			||||||
        if not response and removeReflection:
 | 
					        if not response and removeReflection:
 | 
				
			||||||
            page = removeReflectiveValues(page, payload)
 | 
					            page = removeReflectiveValues(page, payload)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        kb.permissionFlag = re.search(r"permission denied", page or "", re.I) is not None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if content or response:
 | 
					        if content or response:
 | 
				
			||||||
            return page, headers
 | 
					            return page, headers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1768,20 +1768,20 @@ class Enumeration:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        entriesCount = len(columnEntries)
 | 
					                        entriesCount = len(columnEntries)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if len(kb.data.dumpedTable) > 0:
 | 
					                if len(kb.data.dumpedTable) == 0 or (entriesCount == 0 and kb.permissionFlag):
 | 
				
			||||||
 | 
					                    warnMsg = "unable to retrieve the entries of "
 | 
				
			||||||
 | 
					                    if conf.col:
 | 
				
			||||||
 | 
					                        warnMsg += "columns '%s' " % colString
 | 
				
			||||||
 | 
					                    warnMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl)
 | 
				
			||||||
 | 
					                    warnMsg += "on database '%s'%s" % (unsafeSQLIdentificatorNaming(conf.db), " (permission denied)" if kb.permissionFlag else "")
 | 
				
			||||||
 | 
					                    logger.warn(warnMsg)
 | 
				
			||||||
 | 
					                else:
 | 
				
			||||||
                    kb.data.dumpedTable["__infos__"] = { "count": entriesCount,
 | 
					                    kb.data.dumpedTable["__infos__"] = { "count": entriesCount,
 | 
				
			||||||
                                                         "table": safeSQLIdentificatorNaming(tbl, True),
 | 
					                                                         "table": safeSQLIdentificatorNaming(tbl, True),
 | 
				
			||||||
                                                         "db":    safeSQLIdentificatorNaming(conf.db) }
 | 
					                                                         "db":    safeSQLIdentificatorNaming(conf.db) }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    attackDumpedTable()
 | 
					                    attackDumpedTable()
 | 
				
			||||||
                    conf.dumper.dbTableValues(kb.data.dumpedTable)
 | 
					                    conf.dumper.dbTableValues(kb.data.dumpedTable)
 | 
				
			||||||
                else:
 | 
					 | 
				
			||||||
                    warnMsg = "unable to retrieve the entries of "
 | 
					 | 
				
			||||||
                    if conf.col:
 | 
					 | 
				
			||||||
                        warnMsg += "columns '%s' " % colString
 | 
					 | 
				
			||||||
                    warnMsg += "for table '%s' " % unsafeSQLIdentificatorNaming(tbl)
 | 
					 | 
				
			||||||
                    warnMsg += "on database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
 | 
					 | 
				
			||||||
                    logger.warn(warnMsg)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            except sqlmapConnectionException, e:
 | 
					            except sqlmapConnectionException, e:
 | 
				
			||||||
                errMsg = "connection exception detected in dumping phase: "
 | 
					                errMsg = "connection exception detected in dumping phase: "
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user