Search the Community
Showing results for tags 'lldb tutorial'.
Found 1 result
LLDB Custom Script
maskman007 posted a topic in ToolsDownload link for the script: UPDATES**** [hide] https://www.dropbox.com/s/6xlvaasyw3xbztm/custom.py?dl=0 [/hide] Steps: Make a file .lldbinit in your home directory (.lldbinit is the first thing that lldb reads when it loads) do cd ~ to go to your home directory if you run as root then home dir = /var/root if you run without root home dir = /var/mobile Add the following to the file settings set target.load-cwd-lldbinit true command script import custom.py Place custom.py in /var/mobile (working directory) start lldb Commands: ASLR : get aslr slide set-bp -f 0xaddress : force breakpoint ***NEW set-bp 0xaddress : set breakpoint (ASLR added) write 0xaddress 0xvalue : write to memory, same as => memory write -s 4 0xaddress 0xvalue (address frorm lldb) write -f 0xaddress 0xvalue : write directly to IDA offset ***NEW convert -f 0xhexvalue : convert hex to 32 bit float value ***NEW convert -h floatValue : convert float to hex value ***NEW list-add -a 0xaddress functionName : save the address for future reference ***NEW list-add -r 0xaddress : remove address from the list ***NEW list-add -s : show all the saved addresses ***NEWe usage : for help! ***NEW get-adr 0xaddress : [get address - aslr], to find the IDA Address If there are any errors or problems then contact me asap. Also, comment down features you would like in to be added in the script