Skip to content
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

Fix for false positives with r2pipe #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix for false positives with r2pipe #6

wants to merge 1 commit into from

Conversation

Zuyoutoki
Copy link

Fix issue where radare2 did not send output to 'fuzz_radare' when running
Fix false positives due to first line of 'fuzz_gdb' being different for each file no matter what
Combine both tail commands into one to make the output more readable

Commands to run to install r2pipe module needed for the fix :

$ python -m pip install --upgrade pip
$ python -m pip install r2pipe

When I followed your tutorial, I realized that fuzz.py gave me way too many false positive. I investigated and found that it was because gdb always printed a line with 'Loading symbols from [path/to/file]'. The new command runs gdb in batch mode and execute commands via -ex parameter and the problem is gone.

Another thing that gave me false positive was the content of fuzz_radare. It was always empty so every time it compared it with orig_radare, it says that it was different. To fix it, I installed the r2pipe module and adapted the code to make it work. Online forums recommended that module to run radare2 commands in python scripts.

Everything now works correctly and there are a lot less false positive.

Versions info

Linux : 4.15.0-32-generic x86_64 GNU/Linux
GDB : GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Radare2 : radare2 2.9.0-git 19158 @ linux-x86-64 git 2.8.0-118-gb054783

…ning

Fix false positive due to first line of 'fuzz_gdb' being different for each file no matter what
Combined both `tail` commands into one to make the output more readable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant