Jump to content

LLDB Custom script


m4skm4n

21 posts in this topic

Recommended Posts

Updated

Download link: **UPDATED ADDED MORE COMMANDS

Hidden Content

React or reply to this topic to see the hidden content & download link. 👀

 

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 (.lldbinit) 

	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

ZupZrAR.png

 

If there are any errors, pls let me know. 

Credits: M4skM4n

  • Replies 20
  • Created
  • Last Reply
Posted

so,

i created a file .lldbinit

and paste the following text in it:

settings set target.load-cwd-lldbinit true

command script import custom.py

 

run lldb -n binname

and it doesn't load the custom script

:|

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines