minor improvement for --tamper (now standard tamper scripts can be used like --tamper=randomcase)

This commit is contained in:
Miroslav Stampar
2011-05-18 21:47:40 +00:00
parent 3048e9f710
commit 9832fc42d4
2 changed files with 5 additions and 1 deletions

View File

@@ -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