0

I am trying to remote debug a certain binary which gets user-specified command line arguments, which can be non-printable of course.
My goal is the ability to debug with IDA the process with the command line argument "\x11\x22\x33\x44" which can be done with gdb easily.
The problem is that the "Parameters" field in IDA allows only ASCII characters to be inserted into the process' command line arguments

IDA

I looked thoroughly and found these questions but running:

$ ./linux_server unlink < file

or any other combination does not seem to feed the binary file with my input.
Also, running StartDebugger in the IDA command line did not help (How does this function know which remote debugger to run?)

  • A quick workaround for this issue would be for you to start the binary on the terminal with those command line arguments (or feed the input through a file.). After that attach the remote debugger to the process. You would need to patch the entry point so that the execution can be resumed after attaching the debugger. You could use: \xeb\xfe and patch the bytes at entry point after attaching the debugger. – Neon Flash Apr 27 at 14:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.