File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -902,6 +902,7 @@ def setPaths():
902902 # sqlmap paths
903903 paths .SQLMAP_EXTRAS_PATH = os .path .join (paths .SQLMAP_ROOT_PATH , "extra" )
904904 paths .SQLMAP_SHELL_PATH = os .path .join (paths .SQLMAP_ROOT_PATH , "shell" )
905+ paths .SQLMAP_TAMPER_PATH = os .path .join (paths .SQLMAP_ROOT_PATH , "tamper" )
905906 paths .SQLMAP_TXT_PATH = os .path .join (paths .SQLMAP_ROOT_PATH , "txt" )
906907 paths .SQLMAP_UDF_PATH = os .path .join (paths .SQLMAP_ROOT_PATH , "udf" )
907908 paths .SQLMAP_XML_PATH = os .path .join (paths .SQLMAP_ROOT_PATH , "xml" )
Original file line number Diff line number Diff line change @@ -721,14 +721,17 @@ def __setTamperingFunctions():
721721 resolve_priorities = False
722722 priorities = []
723723
724- for tfile in conf . tamper . split (',' ):
724+ for tfile in re . split (r'[,|;]' , conf . tamper ):
725725 found = False
726726
727727 tfile = tfile .strip ()
728728
729729 if not tfile :
730730 continue
731731
732+ elif os .path .exists (os .path .join (paths .SQLMAP_TAMPER_PATH , tfile if tfile .endswith ('.py' ) else "%s.py" % tfile )):
733+ tfile = os .path .join (paths .SQLMAP_TAMPER_PATH , tfile if tfile .endswith ('.py' ) else "%s.py" % tfile )
734+
732735 elif not os .path .exists (tfile ):
733736 errMsg = "tamper script '%s' does not exist" % tfile
734737 raise sqlmapFilePathException , errMsg
You can’t perform that action at this time.
0 commit comments