nevermoe / debugger_scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

debugger_scripts

Simple but convenient debugger scripts for Android and iOS debugging.

Installation

Installation scripts are in lldb_utilities.py and gdb_utilities.py. Please efer to the python file.

Features

gdb

  1. display a range memory in xxd format

    xxd {addr} {size}
    
  2. search the whole memory

    This command is just like the find command in gdb: https://sourceware.org/gdb/onlinedocs/gdb/Searching-Memory.html, except that it searches in the whole valid memory mappings.

    e.g.:

    full_search /b 0xff,0xff,0xff,0xfc
    
  3. stop when library is loaded

    stop_at_load {libname}
    

    This is useful when you do an early trace that most libraries are not loaded yet. It's similar to the feature provided by IDA.

  4. stop when file is opened

    stop_at_open {filename}
    

    After the file is opened, the fd will be printed for further using.

  5. stop when file is read

    stop_at_read {fd}
    

    The fd is obtained from stop_at_open in the 4th feature.

lldb

  1. display image mapping
    imlist {image_name}
    
    A very simple feature that only display the relavant image(s) by grep after calling image list

About


Languages

Language:Python 100.0%