mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Patch for an Issue #564
This commit is contained in:
parent
178056968f
commit
6c80f2903b
|
@ -322,7 +322,7 @@ def checkSqlInjection(place, parameter, value):
|
||||||
|
|
||||||
# Threat the parameter original value according to the
|
# Threat the parameter original value according to the
|
||||||
# test's <where> tag
|
# test's <where> tag
|
||||||
if where == PAYLOAD.WHERE.ORIGINAL:
|
if where == PAYLOAD.WHERE.ORIGINAL or conf.prefix:
|
||||||
origValue = value
|
origValue = value
|
||||||
elif where == PAYLOAD.WHERE.NEGATIVE:
|
elif where == PAYLOAD.WHERE.NEGATIVE:
|
||||||
# Use different page template than the original
|
# Use different page template than the original
|
||||||
|
|
|
@ -108,6 +108,9 @@ class Agent(object):
|
||||||
origValue = origValue.split(CUSTOM_INJECTION_MARK_CHAR)[0]
|
origValue = origValue.split(CUSTOM_INJECTION_MARK_CHAR)[0]
|
||||||
origValue = origValue[origValue.index(',') + 1:]
|
origValue = origValue[origValue.index(',') + 1:]
|
||||||
|
|
||||||
|
if conf.prefix:
|
||||||
|
value = origValue
|
||||||
|
|
||||||
if value is None:
|
if value is None:
|
||||||
if where == PAYLOAD.WHERE.ORIGINAL:
|
if where == PAYLOAD.WHERE.ORIGINAL:
|
||||||
value = origValue
|
value = origValue
|
||||||
|
|
Loading…
Reference in New Issue
Block a user