mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
23 lines
No EOL
552 B
Python
23 lines
No EOL
552 B
Python
from lib.core.settings import (
|
|
logger,
|
|
set_color
|
|
)
|
|
|
|
|
|
def tamper(payload, **kwargs):
|
|
warning = kwargs.get("warning", True)
|
|
if warning:
|
|
logger.warning(set_color(
|
|
"NULL encoding tamper scripts may increase the possibility of not finding vulnerabilities "
|
|
"in otherwise vulnerable sites", level=30
|
|
))
|
|
|
|
retval = ""
|
|
encoder = "%00"
|
|
for char in payload:
|
|
if char == " ":
|
|
char = encoder
|
|
retval += char
|
|
else:
|
|
retval += char
|
|
return retval |