-
Notifications
You must be signed in to change notification settings - Fork 3
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: env variable decoding and added error messages #5
Fix: env variable decoding and added error messages #5
Conversation
…e `build_env_cipher_block()` function
* `Need to set {} env variable` * `Can't get bytes from {} env variable, secret key needs to be a hex string with 64 symbols length.`
…ld_obfuscation_mod()` function
Hey again @mrauhu, Thanks for working on this! I'd like to have a look at the differences between the I'm not a big fan of the Thanks again! 🦀 |
Thank you for the context. |
Hey @mrauhu, I checked the implementation of Thanks again! |
…release build to avoid (as much as possible) any indications of how to de-obfuscate the binary after it's built
Hello @orph3usLyre, About the changes, that you requested:
And pushed a small update that will help developers to understand what to do when they debug code, but hide it for a release build. In your opinion this is suitable? Thank you. |
Hey @mrauhu, I really like the idea of using the I also hadn't realized that the Just a final question then, is there any particular reason for the extra empty Cheers! |
The only way it can be in the release build, if a developer will to change default release profile settings in [profile.release]
debug-assertions = true Or set it for https://doc.rust-lang.org/cargo/reference/profiles.html#debug-assertions
@orph3usLyre thank you for noticing, removed it. |
Hello @orph3usLyre.
Fix for an error:
muddy-waters/muddy_macros/src/internal.rs
Line 120 in 5f73dc1
As far as I know, it's Windows related problem, because the
OsStrExt
trait on Windows https://doc.rust-lang.org/std/os/windows/ffi/trait.OsStrExt.html is missingas_bytes()
function.Related: #2 and #3.
Changes
var.as_encoded_bytes()
instead ofvar.as_bytes()
in thebuild_env_cipher_block()
function.build_env_cipher_block()
function.build_obfuscation_mod()
function.Best wishes,
Sergey.