casthex2char: fix unit test

This commit is contained in:
Alexandre ZANNI 2021-04-06 20:01:44 +02:00 committed by GitHub
parent 4f6a04c621
commit 7c709150a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ def tamper(payload, **kwargs):
Notes:
* Useful in cases when web application block single quotes or use addslashes()
>>> tamper("SELECT CAST(X'4142' AS TEXT)")
"SELECT CAST(CHAR(65) AS TEXT) || CAST(CHAR(66) AS TEXT)"
"SELECT CAST(CHAR(65) AS TEXT)||CAST(CHAR(66) AS TEXT)"
"""
retVal = payload