max op length assumed
parent
ad6277c0ee
commit
38706feff6
|
@ -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…
Reference in New Issue