I am using radare2 to reverse engineer a standard crackme executable. I have obtained the password, but now I need use the program to read & print a restricted file to which the executable has access.
I can see from the executable's main function through radare2 that there is a "login" section that asks for a password and this then proceeds to execute a system command that prints the restricted file.
However, it seems the program flow skips past this section and terminates the program.
Given an address or a string reference, how can I use radare2 to execute the program from a certain point so that I can avoid skipping it?
entry point 0x00000 | | desired section 0x000c8 "enter password: " v termination 0x000f9 "no entry"
entry point | |_-> desired section 0x000c8 "enter password: " -> 0x000ca "cat /root/file.txt" - | termination 0x000f9 <-___________________________________________________________|