2

How can i do several input via rarun2, if my program requares two input? enter image description here

I try this:

enter image description here

5
  • 1
    have you tried with stdin set as a file or pty? Sep 2 '19 at 19:18
  • This does not work
    – lilolol
    Sep 3 '19 at 3:28
  • 1
    add the source code for your program that reads this data Sep 3 '19 at 8:29
  • I cant change program, i have only elf file. I need to do several input via rarun2.
    – lilolol
    Sep 4 '19 at 1:32
  • 1
    So just attach this binary so I can provide you with the details that will work with it. Sep 4 '19 at 6:03
0

To type two inputs of

aaa

as expected in your first example, write

#!/usr/bin/rarun2
stdin="aaa\naaa\n"

in a file script.rr2. Then do radare2 -r script.rr2 -d [your program to debug].

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.