autorop.call package
Submodules
autorop.call.Custom module
- class autorop.call.Custom.Custom(func_name, args=[], align=False)[source]
Bases:
autorop.toplevel.Pipe.Pipe- __init__(func_name, args=[], align=False)[source]
Call an arbitrary function using rop chain.
Call an arbitrary function using rop chain. This is basically a thin wrapper around using ROP in pwntools.
- Parameters
func_name (
str) – Symbol in executable which we can return to.args (
List[Any]) – Optional list of arguments to pass to function.align (
bool) – Whether the call should be stack aligned or not.
- Returns
Function which takes a
PwnState, doing the call, and returns reference to the newPwnState.
autorop.call.SystemBinSh module
- class autorop.call.SystemBinSh.SystemBinSh[source]
Bases:
autorop.toplevel.Pipe.Pipe- __call__(state)[source]
Call
system("/bin/sh")on the currentstate.target.- Parameters
state (
PwnState) –The current
PwnStatewith the following settarget: What we want to exploit._elf: pwntoolsELFofstate.binary_name.libc: Path totarget’s libc.libc_base: Base address oflibc.vuln_function: Name of vulnerable function in binary, which we can return to repeatedly.overwriter: Function which writes rop chain to the “right place”.
- Return type
- Returns
The given
PwnState.