Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 099e931

Browse files
committed
Minor fix
1 parent 31684db commit 099e931

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tamper/base64encode.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import base64
99

1010
from lib.core.enums import PRIORITY
11+
from lib.core.settings import UNICODE_ENCODING
1112

1213
__priority__ = PRIORITY.LOWEST
1314

@@ -22,4 +23,4 @@ def tamper(payload, **kwargs):
2223
'MScgQU5EIFNMRUVQKDUpIw=='
2324
"""
2425

25-
return base64.b64encode(payload) if payload else payload
26+
return base64.b64encode(payload.encode(UNICODE_ENCODING)) if payload else payload

0 commit comments

Comments
 (0)