Skip to content

Sigreturn

SIGRETURN_CORE_REGISTER: Dict[str, Set[str]] = {'x86-64': {*amd64.gpr, amd64.frame, amd64.stack, amd64.pc}, 'i386': {*i386.gpr, i386.frame, i386.stack, i386.pc}, 'aarch64': {*aarch64.gpr, 'sp', 'pc'}, 'arm': {*arm.gpr, 'fp', 'ip', 'sp', 'lr', 'pc'}} module-attribute

SIGRETURN_FRAME_LAYOUTS: Dict[str, List[Tuple[int, str]]] = {'x86-64': sorted([(-8, '&pretcode')] + list(pwnlib.rop.srop.registers['amd64'].items())), 'i386': sorted(pwnlib.rop.srop.registers['i386'].items()), 'aarch64': sorted(pwnlib.rop.srop.registers['aarch64'].items()), 'arm': sorted(pwnlib.rop.srop.registers['arm'].items())} module-attribute

parser = argparse.ArgumentParser(description='Display the SigreturnFrame at the specific address') module-attribute

print_value(string, address, print_address)

sigreturn(address=None, display_all=False, print_address=False)