Content-Length: 296932 | pFad | http://github.com/sqlmapproject/sqlmap/pull/6088

ad feat(tamper): add space2tab tamper script for WAF bypass via tab substitution by Char0n1507 · Pull Request #6088 · sqlmapproject/sqlmap · GitHub
Skip to content

feat(tamper): add space2tab tamper script for WAF bypass via tab substitution - #6088

Open
Char0n1507 wants to merge 1 commit into
sqlmapproject:masterfrom
Char0n1507:add/space2tab-tamper
Open

feat(tamper): add space2tab tamper script for WAF bypass via tab substitution#6088
Char0n1507 wants to merge 1 commit into
sqlmapproject:masterfrom
Char0n1507:add/space2tab-tamper

Conversation

@Char0n1507

Copy link
Copy Markdown

Summary

Adds a new tamper script space2tab.py that replaces space characters
with tab characters (\t / %09).

Use Case

Some WAFs block %20 (URL-encoded space) but allow %09 (URL-encoded tab),
which is valid whitespace in MySQL, MSSQL, PostgreSQL, Oracle and SQLite.

Behaviour

  • Spaces outside string literals are replaced with \t
  • Spaces inside single/double quoted strings are preserved
  • None/empty payloads are returned as-is

Tests

tamper('SELECT id FROM users') -> 'SELECT\tid\tFROM\tusers'
tamper('1 AND 1=1') -> '1\tAND\t1=1'
tamper("WHERE name='John Doe'") -> "WHERE\tname='John Doe'"
tamper(None) -> None

…titution

Adds a new tamper script that replaces space characters with tab
characters (tab / %09). Useful against WAFs that block %20 (URL-encoded
space) but allow %09 (URL-encoded tab), which is valid SQL whitespace
across MySQL, MSSQL, PostgreSQL, Oracle, and SQLite.
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.

1 participant









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/sqlmapproject/sqlmap/pull/6088

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy