github上有兩個可以對Golang生成的exe進行混淆
1、https://github.com/boy-hack/go-strip
使用方法:
go-strip -f binary.exe -a -output new.exe
new.exe即是混淆后的二進制文件
2、https://github.com/burrowers/garble
這個一開始以為是對代碼進行混淆,但是似乎也是對生成的二進制文件進行混淆
使用方法,在編譯時輸入:
set GO111MODULE=on
go get mvdan.cc/garble
garble -literals build 包名