Zeus-Scanner/lib/tamper_scripts/hex_encode.py

16 lines
374 B
Python

from lib.core.settings import (
logger,
set_color
)
def tamper(payload, warning=True, **kwargs):
if warning:
logger.warning(set_color(
"hex tamper scripts may increase the risk of false positives...", level=30
))
retval = hex(hash(payload))
if "-" in str(retval):
return retval[1:-1]
else:
return retval