Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenameGoTrimSuffix ¶
RenameGoTrimSuffix 删除文件名 .go 后缀,重命名为 .exe
func WriteStrings ¶
Types ¶
type CertThief ¶
type CertThief struct { SignDir string // 签名目录 SrcFile string // 未签名的源文件 DstFile string // 已签名的目标文件 SignedPE string // 签名后的输出文件 CertFile string // 证书文件 }
CertThief 结构体,用于签名操作
func (*CertThief) ReadCertTable ¶
ReadCertTable 从PE文件中读取证书表
func (*CertThief) SaveCertificate ¶
SaveCertificate 将证书表保存到指定文件
func (*CertThief) SaveSignedPE ¶
SaveSignedPE 保存带有证书表的PE文件
func (*CertThief) SignExecutable ¶
SignExecutable 使用目标文件的证书对源文件进行签名
func (*CertThief) SignWithStolenCert ¶
SignWithStolenCert 使用窃取的证书对源文件进行签名
type CompileOpts ¶
type CompileOpts struct { GoFileName string // Go 文件名称 ExeFileName string // Exe 文件名称 CompilePath string // 编译路径 HideConsole bool // 编译隐藏控制台 BuildMode string // 构建模式, 推荐值:pie // Garble 专用参数 GDebug bool // 开启Debug日志 GSeed bool // 随机 Base64 编码的种子 GLiterals bool // 对字符串和数字字面量进行混淆 GTiny bool // 最小化构建 }
func (CompileOpts) Compile ¶
func (c CompileOpts) Compile() error
func (CompileOpts) Strip ¶
func (c CompileOpts) Strip()
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func NewCompiler ¶
func NewCompiler(opts CompileOpts) *Compiler
Source Files
¶
Click to show internal directories.
Click to hide internal directories.