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

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

1 Answer 1

1

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 and acknowledge you have read our privacy policy.

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