autorop.libc package

Submodules

autorop.libc.Auto module

class autorop.libc.Auto.Auto[source]

Bases: autorop.toplevel.Pipe.Pipe

__call__(state)[source]

Perform the libc acquisition using state.libc_getter.

Parameters

state (PwnState) –

The current PwnState with at least the following set

  • libc_getter: What to use to get libc. This might have its own requirements for attributes set in state.

Return type

PwnState

Returns

Mutated PwnState, with updates from libc_getter.

__init__()[source]

Acquire libc using configured service.

We can programmatically find and download libc based on function address leaks (two or more preferred). This pipe will set state.libc, including setting state.libc.address for ready-to-use address calculation.

autorop.libc.Database module

class autorop.libc.Database.Database[source]

Bases: autorop.toplevel.Pipe.Pipe

__call__(state)[source]

Acquire libc version using local installation of libc-database

Parameters

state (PwnState) –

The current PwnState with the following set

  • leaks: Leaked symbols of libc.

  • libc_database_path: Path to libc-database installation.

Return type

PwnState

Returns

Mutated PwnState, with the following updated

  • libc: Path to target’s libc.

  • libc_base: Base address of libc.

__init__()[source]

Acquire libc version using local installation of libc-database

We can programmatically find libc based on function address leaks (two or more preferred). This pipe will set state.libc, including setting state.libc.address for ready-to-use address calculation.

autorop.libc.Rip module

class autorop.libc.Rip.Rip[source]

Bases: autorop.toplevel.Pipe.Pipe

__call__(state)[source]

Acquire libc version using https://libc.rip.

We can programmatically find and download libc based on function address leaks (two or more preferred). This function sets state.libc, including setting state.libc.address for ready-to-use address calculation.

Parameters

state (PwnState) –

The current PwnState with the following set

  • leaks: Leaked symbols of libc.

Return type

PwnState

Returns

Mutated PwnState, with the following updated

  • libc: Path to target’s libc, according to https://libc.rip.

  • libc_base: Base address of libc.

__init__()[source]

Acquire libc version using https://libc.rip.

We can programmatically find and download libc based on function address leaks (two or more preferred). This pipe will set state.libc, including setting state.libc.address for ready-to-use address calculation.

Module contents