From 38706feff61c807983e00e284484faf1f4cf9fc5 Mon Sep 17 00:00:00 2001 From: JoYo <> Date: Sun, 24 Feb 2019 06:38:33 +0000 Subject: [PATCH] max op length assumed --- sins/mutation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sins/mutation.py b/sins/mutation.py index 22cf192..625ec5b 100644 --- a/sins/mutation.py +++ b/sins/mutation.py @@ -60,7 +60,9 @@ def growth(*, shellcode: bytes, length: int) -> bytes: opcodes = disasm(shellcode) - if len(shellcode) > len(opcodes) * 8: + max_op_len = 15 + + if len(shellcode) > len(opcodes) * max_op_len: return bytes(shellcode) for mnemonic, op_str in opcodes: