mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	from now on proper union column count should be displayed in injection info output
This commit is contained in:
		
							parent
							
								
									13eb20cea1
								
							
						
					
					
						commit
						f7562da754
					
				| 
						 | 
				
			
			@ -123,8 +123,14 @@ def __formatInjection(inj):
 | 
			
		|||
    data += "Parameter: %s\n" % inj.parameter
 | 
			
		||||
 | 
			
		||||
    for stype, sdata in inj.data.items():
 | 
			
		||||
        title = sdata.title
 | 
			
		||||
        if stype == PAYLOAD.TECHNIQUE.UNION:
 | 
			
		||||
            count = re.sub(r"\(.+\)", "", sdata.payload).count(",") + 1
 | 
			
		||||
            title = re.sub(r"\d+ to \d+", str(count), title)
 | 
			
		||||
            if count == 1:
 | 
			
		||||
                title = title.replace("columns", "column")
 | 
			
		||||
        data += "    Type: %s\n" % PAYLOAD.SQLINJECTION[stype]
 | 
			
		||||
        data += "    Title: %s\n" % sdata.title
 | 
			
		||||
        data += "    Title: %s\n" % title
 | 
			
		||||
        data += "    Payload: %s\n\n" % sdata.payload
 | 
			
		||||
 | 
			
		||||
    return data
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user