SIGN IN SIGN UP
sqlmapproject / sqlmap UNCLAIMED

Automatic SQL injection and database takeover tool

0 0 5 Python
2019-05-08 12:47:52 +02:00
#!/usr/bin/env python
"""
2023-01-02 23:24:59 +01:00
Copyright (c) 2006-2023 sqlmap developers (https://sqlmap.org/)
2017-10-11 14:50:46 +02:00
See the file 'LICENSE' for copying permission
"""
from lib.core.enums import PRIORITY
2018-02-08 16:49:16 +01:00
__priority__ = PRIORITY.NORMAL
def dependencies():
pass
def tamper(payload, **kwargs):
"""
2018-07-31 01:17:11 +02:00
Slash escape single and double quotes (e.g. ' -> \')
2016-02-27 15:41:15 +01:00
>>> tamper('1" AND SLEEP(5)#')
'1\\\\" AND SLEEP(5)#'
"""
return payload.replace("'", "\\'").replace('"', '\\"')