mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-01 00:17:25 +03:00 
			
		
		
		
	Cosmetics
This commit is contained in:
		
							parent
							
								
									a02dd6b55b
								
							
						
					
					
						commit
						698f30e65e
					
				|  | @ -216,6 +216,7 @@ class Agent: | |||
|         if "[INFERENCE]" in payload: | ||||
|             if kb.dbms is not None: | ||||
|                 inference = queries[kb.dbms].inference | ||||
| 
 | ||||
|                 if "dbms_version" in inference: | ||||
|                     if isDBMSVersionAtLeast(inference.dbms_version): | ||||
|                         inferenceQuery = inference.query | ||||
|  | @ -223,10 +224,13 @@ class Agent: | |||
|                         inferenceQuery = inference.query2 | ||||
|                 else: | ||||
|                     inferenceQuery = inference.query | ||||
| 
 | ||||
|                 payload = payload.replace("[INFERENCE]", inferenceQuery) | ||||
| 
 | ||||
|             elif kb.misc.testedDbms is not None: | ||||
|                 inferenceQuery = queries[kb.misc.testedDbms].inference.query | ||||
|                 payload = payload.replace("[INFERENCE]", inferenceQuery) | ||||
| 
 | ||||
|             else: | ||||
|                 errMsg = "invalid usage of inference payload without " | ||||
|                 errMsg += "knowledge of underlying DBMS" | ||||
|  |  | |||
|  | @ -153,6 +153,7 @@ class Web: | |||
|         for count in xrange(len(choices)): | ||||
|             ext = choices[count] | ||||
|             message += "[%d] %s%s\n" % (count + 1, ext.upper(), (" (default)" if default == ext else "")) | ||||
| 
 | ||||
|             if default == ext: | ||||
|                 default = count + 1 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user