mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 19:55:47 +03:00
added conf.unescape global variable to control whether or not the injected statements should be unescaped
This commit is contained in:
parent
f645ac6040
commit
a27f50ed1d
|
@ -1548,8 +1548,10 @@ def getSQLSnippet(dbms, sfile, **variables):
|
|||
Returns content of SQL snippet located inside 'procs/' directory
|
||||
"""
|
||||
|
||||
if os.path.exists(sfile):
|
||||
if sfile.endswith('.sql') and os.path.exists(sfile):
|
||||
filename = sfile
|
||||
elif not sfile.endswith('.sql') and os.path.exists("%s.sql" % sfile):
|
||||
filename = "%s.sql" % sfile
|
||||
else:
|
||||
filename = os.path.join(paths.SQLMAP_PROCS_PATH, DBMS_DIRECTORY_DICT[dbms], sfile if sfile.endswith('.sql') else "%s.sql" % sfile)
|
||||
checkFile(filename)
|
||||
|
|
|
@ -1402,6 +1402,7 @@ def __setConfAttributes():
|
|||
conf.tests = []
|
||||
conf.trafficFP = None
|
||||
conf.wFileType = None
|
||||
conf.unescape = True
|
||||
|
||||
def __setKnowledgeBaseAttributes(flushAll=True):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user