mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
created three new tamper scripts and added warnings to other ones
This commit is contained in:
parent
67a1738278
commit
c618647eeb
5 changed files with 40 additions and 2 deletions
|
|
@ -1,5 +1,15 @@
|
|||
import base64
|
||||
|
||||
from lib.settings import (
|
||||
logger,
|
||||
set_color
|
||||
)
|
||||
|
||||
def tamper(payload, **kwargs):
|
||||
|
||||
def tamper(payload, warning=True, **kwargs):
|
||||
if warning:
|
||||
logger.warning(set_color(
|
||||
"base64 tamper scripts may increase the possibility of not finding vulnerabilities "
|
||||
"in otherwise vulnerable sites...", level=30
|
||||
))
|
||||
return base64.b64encode(payload)
|
||||
|
|
@ -1,4 +1,14 @@
|
|||
def tamper(payload, **kwargs):
|
||||
from lib.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]
|
||||
|
|
|
|||
2
lib/attacks/tamper_scripts/lowercase_encode.py
Normal file
2
lib/attacks/tamper_scripts/lowercase_encode.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
def tamper(payload, **kwargs):
|
||||
return str(payload).lower()
|
||||
14
lib/attacks/tamper_scripts/randomcase_encode.py
Normal file
14
lib/attacks/tamper_scripts/randomcase_encode.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import random
|
||||
|
||||
|
||||
def tamper(payload, **kwargs):
|
||||
retval = ""
|
||||
nums = [0, 1]
|
||||
|
||||
for char in payload:
|
||||
random_int = random.choice(nums)
|
||||
if random_int == 1:
|
||||
retval += char.upper()
|
||||
else:
|
||||
retval += char
|
||||
return retval
|
||||
2
lib/attacks/tamper_scripts/uppercase_encode.py
Normal file
2
lib/attacks/tamper_scripts/uppercase_encode.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
def tamper(payload, **kwargs):
|
||||
return str(payload).upper()
|
||||
Loading…
Reference in a new issue