I've been trying to debug a binary file in radare2 but it throws me this error.
$ r2 -d bin Killing child process 1688 due to an error Killing child process 1689 due to an error [w] Cannot open 'dbg://./bin' for writing.
So I ran it without the -d parameter but I'm unable to execute the program by
dc as the error below is shown
[0x00000610]> dc Cannot continue, run ood?
I tried running
ood but following prompt is received
[0x00000610]> ood Killing child process 1711 due to an error Killing child process 1712 due to an error r_core_file_reopen: Cannot reopen file: dbg:///home/kali/Downloads/bin with perms 0x7, attempting to open read-only.
Is this the problem with the binary or am I doing something wrong? Some help is appreciated.
binfile? did you set it as an executable
chmod +x bin?