kAFL icon indicating copy to clipboard operation
kAFL copied to clipboard

pipe target output to hcat show nothing

Open LeoneChen opened this issue 2 years ago • 2 comments

Hello! In order to show some information in work_dir, hprintf in source code can always output string, however, if I use ./target 2>&1 | vmcall hcat in shell script e.g. agent.sh, usually I can't get anything, but sometimes it show someting

LeoneChen avatar Feb 21 '23 12:02 LeoneChen

Did you find any specific bugs?

This is usually an issue with buffering in the pipe or ./target writing to other destinations like kernel log and not directly to console.

The most reliable option is to use hprintf() directly in your agent.

il-steffen avatar Feb 27 '23 12:02 il-steffen

Sorry, I can't figure out it, it may be my own problem in using it, I will use hprintf() directly. If I figure out it someday, I will note it here. Thanks for your help!

LeoneChen avatar Feb 27 '23 14:02 LeoneChen