Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
the-soloist committed Nov 23, 2023
1 parent 4064f42 commit d3fb137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/libcdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ def search_by_symbol_offsets(symbols, select_index=None, unstrip=True, return_as
>>> libc.sym.system == 0x52290
True
>>> context.local_libcdb = "/path/to/libc-database"
>>> filename = search_by_symbol_offsets({'puts': 0x420, 'printf': 0xc90}, select_index=1, online=False)
>>> filename = search_by_symbol_offsets({'puts': 0x420, 'printf': 0xc90}, select_index=1, offline=True)
>>> ELF(filename)
ELF('/path/to/libc-database/db/libc6_2.31-0ubuntu9.12_amd64.so')
>>> matched_libcs = search_by_symbol_offsets({'__libc_start_main_ret': '7f89ad926550'}, return_as_list=True)
Expand Down

0 comments on commit d3fb137

Please sign in to comment.