Skip to content

Instantly share code, notes, and snippets.

@hxlxmj
Forked from m3m0o/hex-entity-encode.py
Created February 20, 2026 00:35
Show Gist options
  • Select an option

  • Save hxlxmj/d2a19e24da3e3d1b50258b903d158637 to your computer and use it in GitHub Desktop.

Select an option

Save hxlxmj/d2a19e24da3e3d1b50258b903d158637 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