Skip to content

Create equal2nullsafequals.py #5931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HackingRepo
Copy link

DBMS Support for MySQL NULL-safe Equality Operator <=>

DBMS Supports <=> Operator? Notes
MySQL Yes Native NULL-safe equality operator
MariaDB Yes Compatible with MySQL syntax
PostgreSQL No Does not support <=>; use IS NOT DISTINCT FROM for NULL-safe equality
SQLite No No equivalent operator; use IS NULL or IS NOT NULL for NULL checks
Microsoft SQL Server No No <=>; use ISNULL() or CASE expressions for NULL-safe comparison
Oracle No No <=>; use NVL or CASE expressions for NULL-safe comparison

Use Cases

Sometime weak waf/Filters filter (=) Using (<=>) instead bypass WAF/Filters filter equal sign

>>> tamper("OR 1=1 #")
'OR 1<=>1 #'
"""
if not payload:
Copy link
Contributor

@tanaydin tanaydin Jul 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can simplify like

    if payload:
        return re.sub(r'(?<![><!])=(?!=)', '<=>', payload)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants