mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-27 08:30:10 +03:00
Add files via upload
This commit is contained in:
parent
b719b9612f
commit
54f0c09de1
18
tamper/jsonescape.py
Normal file
18
tamper/jsonescape.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from lib.core.enums import PRIORITY
|
||||
__priority__ = PRIORITY.NORMAL
|
||||
|
||||
def dependencies():
|
||||
pass
|
||||
|
||||
def tamper(payload, **kwargs):
|
||||
line = payload.encode("hex")
|
||||
n = 2
|
||||
groups = [line[i:i+n] for i in range(0, len(line), n)]
|
||||
full = ''
|
||||
for x in groups:
|
||||
full = full + "\u00" + x
|
||||
retVal = full
|
||||
return retVal
|
Loading…
Reference in New Issue
Block a user