using checksec we can found out that the default build doesn't have RELRO/CANARY/PIE,
checksec --file=v2ray-plugin_linux_amd64
RELRO STACK CANARY NX PIE SELFRANDO RPATH RUNPATH Symbols FORTIFYFortified Fortifiable FILE
No RELRO No canary found NX enabled No PIE No Selfrando No RPATH No RUNPATH No Symbols No 00 v2ray-plugin_linux_amd64
there is a qucik way to fix it, just pass the following flags to go build[^1]:
RELRO STACK CANARY NX PIE SELFRANDO RPATH RUNPATH Symbols FORTIFYFortified Fortifiable FILE
Full RELRO Canary found NX enabled PIE enabled No Selfrando No RPATH No RUNPATH 18108) Symbols Yes 22 v2ray-plugin
using checksec we can found out that the default build doesn't have RELRO/CANARY/PIE,
there is a qucik way to fix it, just pass the following flags to go build[^1]:
and then we'll get:
FYI: [1] https://wiki.archlinux.org/index.php/Security_package_guidelines#Golang