Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CGO build command for Windows DLL with 64-bit address ASLR and NX compatibility on
GOOS=windows CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 go build --buildmode=c-shared --ldflags='-s -w -X main.key="MYKEYISBESTKEY" -extldflags "-Wl,--nxcompat -Wl,--dynamicbase -Wl,--high-entropy-va"' -o payloads/pneuma.dll main.go;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment