mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 18:07:46 +03:00 
			
		
		
		
	Bug fix (--prefix should not fix the origValue in REPLACEMENT payloads)
This commit is contained in:
		
							parent
							
								
									b07685a386
								
							
						
					
					
						commit
						08aae2b7c5
					
				| 
						 | 
					@ -125,7 +125,7 @@ class Agent(object):
 | 
				
			||||||
                    origValue = origValue.split(' ')[-1].split(':')[-1]
 | 
					                    origValue = origValue.split(' ')[-1].split(':')[-1]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if value is None:
 | 
					        if value is None:
 | 
				
			||||||
            if where == PAYLOAD.WHERE.ORIGINAL or conf.prefix:
 | 
					            if where == PAYLOAD.WHERE.ORIGINAL:
 | 
				
			||||||
                value = origValue
 | 
					                value = origValue
 | 
				
			||||||
            elif where == PAYLOAD.WHERE.NEGATIVE:
 | 
					            elif where == PAYLOAD.WHERE.NEGATIVE:
 | 
				
			||||||
                if conf.invalidLogical:
 | 
					                if conf.invalidLogical:
 | 
				
			||||||
| 
						 | 
					@ -228,7 +228,7 @@ class Agent(object):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # If we are replacing (<where>) the parameter original value with
 | 
					        # If we are replacing (<where>) the parameter original value with
 | 
				
			||||||
        # our payload do not prepend with the prefix
 | 
					        # our payload do not prepend with the prefix
 | 
				
			||||||
        if where == PAYLOAD.WHERE.REPLACE and not conf.prefix:
 | 
					        if where == PAYLOAD.WHERE.REPLACE:
 | 
				
			||||||
            query = ""
 | 
					            query = ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # If the technique is stacked queries (<stype>) do not put a space
 | 
					        # If the technique is stacked queries (<stype>) do not put a space
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user