pr0v3rbs / FirmAE

Towards Large-Scale Emulation of IoT Firmware for Dynamic Analysis
MIT License
603 stars 117 forks source link

gdbserver is not running #63

Closed nhtri2003gmail closed 1 year ago

nhtri2003gmail commented 1 year ago

Hi, I was trying to figure out that why I choose option 4 to debug a running program but then I found out that gdbserver binary worked wrong:

image

That means gdbserver not even run, it just simply exit. Of course I tried to run full command with gdb server like

gdbserver <host>:<port> --attach <pid>

But then I list running process, I cannot see gdbserver running. Other things work well as expected!

After I checked, gdbserver is an empty file:

image

Update: I found out that when executing download.sh, few binaries cannot download but because wget write the name to folder so executing download.sh again will not download binary. I have to delete empty file and run download.sh again, everything works well now!