Reputation: 99
In reverse engineering, it is common trick to search a string and find it's occurrence in code. For example, when you want to bypass a registration or something. You will search the string that shows up on the popup message box, and the condition branch to decide you are register or not is near that address of the reference to that particular string. I can do it in hopper. But I am wondering can I do that in lldb?
I have searched for a couple of hours. And I looked at strings
linux command, and image lookup. The most close one is memory find -s
, but I don't know what address to pass to the command.
By the way, memory find
seems to require the program to be run. Can I do it without setting a breakpoint?
Upvotes: 1
Views: 1176
Reputation: 99
For anyone that is looking. script import lldb.macosx.heap
and there is a command call cstr_refs CSTRING
, though I am not sure whether the const cstring literal will show up on Heap or not.
Upvotes: 1