From 92b92a62450c03d2b00d5939a0e2dfa755f9f8bf Mon Sep 17 00:00:00 2001 From: Thanasis Tserpelis Date: Sun, 14 Nov 2021 13:16:23 +0200 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 32a04d4..f094f2c 100644 --- a/README.md +++ b/README.md @@ -147,7 +147,7 @@ and dumps the shellcode after executing some patches. This project grabs from a specific location the binary so I made a fork that receives the path of the binary as an argument [here](https://github.com/trickster0/rust-windows-shellcode-custom). - Even if you remove all debug symbols, rust can still keep references to your home directory in the binary. The only way I've found to remove this is to pass the following flag: `--remap-path-prefix {your home directory}={some random identifier}`. You can use bash variables to get your home directory and generate a random placeholder: `--remap-path-prefix "$HOME"="$RANDOM"`. (By [Yamakadi](https://github.com/yamakadi)) - Although for the above there is another way to remove info about the home directory by adding at the top of Cargo.toml -`cargo-features = ["strip"]` . +`cargo-features = ["strip"]` . -- Since Rust by default leaves a lot of things as strings in the binary, I mostly use this [cargo.toml](../master/cargo.toml) to avoid them and also reduce size ## Other projects I have have made in Rust