Minor update

This commit is contained in:
Miroslav Stampar 2016-02-27 15:41:15 +01:00
parent 76b1aca0c7
commit f190327da3

View File

@ -19,8 +19,8 @@ def tamper(payload, **kwargs):
""" """
Slash escape quotes (' and ") Slash escape quotes (' and ")
>>> tamper("1' AND SLEEP(5)#") >>> tamper('1" AND SLEEP(5)#')
'1\' AND SLEEP(5)#' '1\\\\" AND SLEEP(5)#'
""" """
return payload.replace("'", "\\'").replace('"', '\\"') return payload.replace("'", "\\'").replace('"', '\\"')