Skip to content

Instantly share code, notes, and snippets.

@m3m0o
Created October 6, 2025 12:59
Show Gist options
  • Select an option

  • Save m3m0o/3e53e551e5b975808275c2047f91a010 to your computer and use it in GitHub Desktop.

Select an option

Save m3m0o/3e53e551e5b975808275c2047f91a010 to your computer and use it in GitHub Desktop.
SQLMap Tamper to Convert Payloads Characters to Hex Entities
#!/usr/bin/env python3
from lib.core.enums import PRIORITY
__priority__ = PRIORITY.NORMAL
def dependencies():
pass
def tamper(payload, **kwargs):
if payload:
payload = ''.join([f'&#x{ord(char):x};' for char in payload])
return payload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment