Closed scrapbird closed 7 years ago
Old r2, use the latest version to make tests -> http://bin.rada.re/radare2-w32-1.4.0-git.zip
@Maijin I'm using version 1.3.0, I'll update when I get home and let you know if the same thing is happening. Was a fix for this included in the recent release?
@Maijin I retried with the version you linked, same results. Works fine if I'm typing the commands myself, with r2pipe over http it fails with the above.
Cc @skuater
On 29 Mar 2017, at 11:48, Brenton Morris notifications@github.com wrote:
@Maijin I retried with the version you linked, same results. Works fine if I'm typing the commands myself, with r2pipe over http it fails with the above.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
The problem become with command "doo", when file is reopened the handle become lost. Then the command "aaa" made a analisys using esil and change the debug backend to esil, to do their stuff, then switch to native debugger, and made a "dpa", and here come the problem, how we come from a "doo" and this command loose the handle into core->file->desc->fd, and dpa made the attach using it we get the error to attach.
All the problem come from when debug process is spawned and IOW32dbg is created, at creation the fd param always is -1.
PR #7247 must solved the problem.
@radare plz, check all is ok and close issue
Hey @skuater thanks for looking into this for me. I literally just got to work but can check it for you tonight and let you know.
If I try to debug with the python r2pipe API using http as transport I get the following errors:
If I execute the exact same commands inside the virtual machine it works, over r2pipe it won't.
I had to turn off the scr.html option as everything returned over http was in html and breaking any json parsing in r2.cmdj and messing with the output of r2.cmd.
Is there something I'm missing? Why will debugging not work over http? I've tried many different combinations of command args, starting the server by passing -qc=H and -qc=h, starting the server once r2 is loaded and get the same results.
I also tried with rap but that wasn't working either. Is there any way to remotely control r2 that works? I want to automatically unpack malware samples in a virtual machine but hate using windows so would rather run an r2pipe script in my linux environment.
Cheers