My malware developpement exercices / experiments primarly in Rust, cross-compiled from Linux
To build the project on Linux, follow these instructions. You have to install MSVC.
$ rustup target add x86_64-pc-windows-msvc
# add target for each build
$ cargo build --target x86_64-pc-windows-msvc ...
Note
My Nix Flake is private for this repository, if want to use one you can create it and :
$ git add --intent-to-add flake.nix
$ git update-index --assume-unchanged flake.nix
$ cargo build --features payloadplacement
Note
We can compile our resources.rc
file and do not use crate embed-resource
. To do so, we need x86_64-w64-mingw32-windres
, this can be installed on Nix within a shell :
$ nix-shell -p pkgsCross.mingwW64.stdenv.cc
We can then use it :
$ x86_64-w64-mingw32-windres -i resources.rc -O coff -o resources.res