mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Implementing support for --file-read on Oracle (Issue #26)
This commit is contained in:
parent
b3cdec547b
commit
c00a642569
5 changed files with 55 additions and 11 deletions
|
|
@ -265,7 +265,7 @@ class Agent(object):
|
|||
|
||||
return query
|
||||
|
||||
def suffixQuery(self, expression, comment=None, suffix=None, where=None):
|
||||
def suffixQuery(self, expression, comment=None, suffix=None, where=None, trimEmpty=True):
|
||||
"""
|
||||
This method appends the DBMS comment to the
|
||||
SQL injection request
|
||||
|
|
@ -303,7 +303,7 @@ class Agent(object):
|
|||
|
||||
expression += suffix.replace('\\', BOUNDARY_BACKSLASH_MARKER)
|
||||
|
||||
return re.sub(r";\W*;", ";", expression)
|
||||
return re.sub(r";\W*;", ";", expression) if trimEmpty else expression
|
||||
|
||||
def cleanupPayload(self, payload, origValue=None):
|
||||
if payload is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue