-
Notifications
You must be signed in to change notification settings - Fork 80
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
need some info regarding some #define #11
Comments
Hello, @zmn28hgbn59kcmlpio8unfh7fdre523esd28q9a! Thank you for your questions; they are quite relevant. I’ll address them in the same order.
The
This feature is currently in the conceptual stage and might even be removed. The original idea was to assign an N-flag within control flow obfuscation and validate it during execution. If any condition was skipped, the program would crash. The implementation, however, remains undecided.
If you don’t plan to disable any obfuscation features, it’s cleaner to omit the To avoid this confusion, I opted for two clear options: disable the feature or enable a stronger mode. The default medium level doesn’t require explicit settings or declarations. It’s worth noting that the example code provided in the documentation intentionally includes all settings to demonstrate the full range of configurations available. However, in real-world use, the code can be significantly simplified by omitting unused options or relying on defaults. For future consistency, if additional switches are introduced, you can always expand or adapt the |
thank you for your detailed answer, i like the feature_lvl [0..2], but i agree that it can confuse some users. i have 1 more question: https://github.com/DosX-dev/obfus.h/blob/main/include/obfus.h#L88 why did you use this combination, why not straight to #if FAKE_SIGNS != 0? this could also open 1 more question for future use, like: so far this is the only inconsistency i found in macro switches. thank you again, and you may close this issue after explaining the statement above. |
Really. This code can and should be simplified. Thank you! |
it is obvious whats the usage of "ANTI_DEBUG", but what about "NOP_FLOOD"?
another thing is with "__CRASH", would you recommend it over abort, exit, or exitprocess? or it is for future use as it is currently not used at all.
what about "ANTITAMPER", how is it going to prevent tampering with code?
last thing, do you recommend:
#define NO_CFLOW 0
#define NO_ANTIDEBUG 0
or
completely remove NO_*?
cu 8000 rrently it is same whether it is defined as 0 or completely removed, but the question is really for future consistency if for example other switches in the future may accept other values.
thank you.
The text was updated successfully, but these errors were encountered: