-
-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interactive debugging with the target process in libafl_qemu #2796
Comments
Yes all options from regular qemu can be used, such as ./libafl_qemu_launcher -i ./in <other params> -- -g 1234 ./target and then inside qemu, do target remote :1234 |
Thank you for your response @domenukk . I successfully executed the aforementioned commands, and I can now use GDB to attach to a process. However, I still have some questions and would like to seek your further assistance.
Finally, Let me summarize my questions:
I apologize for asking so many unprofessional questions. I tried to read the source code of |
I would advice you to not connect to an instance that does any fuzzing. See this example:
|
Thank you @domenukk for your help. After setting the fuzzer to During the debugging process, I also encountered some strange issues, but I think I’ve mostly figured them out now. Therefore, I’d like to summarize them here for future users who, like me, might have no prior experience. However, the transfer of control follows certain patterns. From my observations, when the fuzzer calls In summary, when debugging the target program, we need to consider the transfer of control to avoid being caught off guard by strange phenomena. Finally, I observed another interesting phenomenon. When a breakpoint set in the fuzzer (e.g., |
Today, I delved deeper into the The fuzzer ultimately calls the
I also noticed that the
The above content isn’t actually complicated, but as a beginner, I found it difficult to infer the behavior of each component just from their names, and I often got confused. I hope these simple summaries can help future beginners, as libafl is truly a fantastic project. |
PRs that add documentation are always welcome :P |
Dear Developers, hello! I have recently been using the usermode of libafl_qemu to fuzz a VPN program, and the emulation and hooking features have been incredibly helpful in this process. Thank you for your work.
However, I currently have a need to perform interactive debugging with the target process within libafl_qemu. Specifically, I would like to remotely connect to the target process using
gdb-multiarch
, similar to how it can be done with regular qemu-user or the qiling-framework. I am wondering if this is something that can be achieved within libafl_qemu. Thank you~The text was updated successfully, but these errors were encountered: