Module Contents

class pex.nop.opty2.Opty2

Bases: object

Subclass of pex.nop module.

This subclass of pex.nop module is intended for providing an implementation of Opty2 NOP sled generator.

generate_sled(length: int, save_registers: list = [], badchars: bytes = b'') bytes

Generate Opty2 NOP sled.

  • length (int) – length of a generated NOP sled

  • save_registers (list) – list of registers to save

  • badchars (bytes) – chars to avoid while generating NOP sled

Return bytes:

generated Opty2 NOP sled


RuntimeError – with trailing error message