Add files via upload

This commit is contained in:
Marise Hayashi 2020-08-02 18:08:12 +03:00 committed by GitHub
parent b719b9612f
commit 54f0c09de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

18
tamper/jsonescape.py Normal file
View 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