Skip to content

Add new tamper script which can replaces instances like 'IFNULL(A, B)...#2791

Merged
stamparm merged 1 commit intosqlmapproject:masterfrom
HackNDef:new-tamper-script
Nov 22, 2017
Merged

Add new tamper script which can replaces instances like 'IFNULL(A, B)...#2791
stamparm merged 1 commit intosqlmapproject:masterfrom
HackNDef:new-tamper-script

Conversation

@VitalySalnikov
Copy link
Copy Markdown
Contributor

Hello, I created very similar tamper script like already exists here https://github.com/sqlmapproject/sqlmap/blob/master/tamper/ifnull2ifisnull.py

In my case WAF blocked my payloads if there are exists IFNULL() and IF() functions, so I just little modified ifnull2ifisnull tamper script.

tamper('IFNULL(1, 2)')
'CASE WHEN ISNULL(1) THEN (2) ELSE (1) END'

I guess it could be useful for other too.

…' with 'CASE WHEN ISNULL(A) THEN (B) ELSE (A) END', it could be usefull for bypass some weak WAFs that filter the 'IFNULL' and 'IF' functions
@VitalySalnikov VitalySalnikov changed the title Add new tamper script witch can Replaces instances like 'IFNULL(A, B)… Add new tamper script which can Replaces instances like 'IFNULL(A, B)... Nov 21, 2017
@VitalySalnikov VitalySalnikov changed the title Add new tamper script which can Replaces instances like 'IFNULL(A, B)... Add new tamper script which can replaces instances like 'IFNULL(A, B)... Nov 21, 2017
@stamparm
Copy link
Copy Markdown
Member

I'll merge this one, but compared to original I don't see anything new. As a matter of fact, CASE WHEN is filtered / blacklisted more than IFNULL from my experience

@stamparm stamparm merged commit 1436333 into sqlmapproject:master Nov 22, 2017
stamparm added a commit that referenced this pull request Nov 22, 2017
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