mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
minor improvement for --tamper (now standard tamper scripts can be used like --tamper=randomcase)
This commit is contained in:
@@ -721,7 +721,7 @@ def __setTamperingFunctions():
|
||||
resolve_priorities = False
|
||||
priorities = []
|
||||
|
||||
for tfile in conf.tamper.split(','):
|
||||
for tfile in re.split(r'[,|;]', conf.tamper):
|
||||
found = False
|
||||
|
||||
tfile = tfile.strip()
|
||||
@@ -729,6 +729,9 @@ def __setTamperingFunctions():
|
||||
if not tfile:
|
||||
continue
|
||||
|
||||
elif os.path.exists(os.path.join(paths.SQLMAP_TAMPER_PATH, tfile if tfile.endswith('.py') else "%s.py" % tfile)):
|
||||
tfile = os.path.join(paths.SQLMAP_TAMPER_PATH, tfile if tfile.endswith('.py') else "%s.py" % tfile)
|
||||
|
||||
elif not os.path.exists(tfile):
|
||||
errMsg = "tamper script '%s' does not exist" % tfile
|
||||
raise sqlmapFilePathException, errMsg
|
||||
|
||||
Reference in New Issue
Block a user