-
Notifications
You must be signed in to change notification settings - Fork 51
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
scanf/printf - detect small strings like "%s" #173
Comments
Hmm maybe a regression. I'll check later |
fixed scanf with commit 9b27dfd
|
Hum, I still have |
same result both. |
@Maijin |
those %XX should be handled by either r2dec or radare2, I think in radare2 it will be hard because of this default option, but r2dec could automatically have some routines to detect %XX strings no? |
yes i could, but i would like to let the user to choose what to do. |
Hum how would that be useful for a user to not show scanf/printf format strings 🤔 |
hmmm... i could add that logic, but not so sure how to handle it. for example how about native android logger? should i support that too? it might be complex.. |
Can always start small and enhance later, worth giving it a shot imho because those are very prevalent. |
okok. |
I agree with @wargio, this is a r2 configuration that should be tweaked per user preference. |
But changing this introduce tons of false positives on radare2 and inherently r2dec side though. |
what i mean is also on other decompilers you have the user to choose to try to convert an address to string, etc.. |
Sure but those scanf/printf cases work out of the boxes in all other decompilers :p |
Actually not sure if regression or if it always happened but notice the scanf when doing aaa / pdd in crackme0x00.exe (r2r/bins/pe/ioli)
Instead should be:
The text was updated successfully, but these errors were encountered: