Browse Source

max op length assumed

master
JoYo 3 years ago
parent
commit
38706feff6
  1. 4
      sins/mutation.py

4
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:

Loading…
Cancel
Save