render

package
v0.0.0-...-5ed39a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CryptoPath = "crypto"
)

Variables

This section is empty.

Functions

func ConvertToString

func ConvertToString(i interface{}) string

ConvertToString 将接口{}转换为字符串

func GetBinFiles

func GetBinFiles(binDir string) ([]string, error)

func GetExportedFuncsFromFolder

func GetExportedFuncsFromFolder(folderPath string, functionType FunctionType) ([]string, error)

GetExportedFuncsFromFolder 获取指定文件夹中所有Go文件,并提取每个文件中的导出函数

func GetTmplFiles

func GetTmplFiles(tmplDir string) ([]string, error)

func IsSlice

func IsSlice(i interface{}) bool

IsSlice 检查变量是否为切片类型

func RegisterTmplFuncs

func RegisterTmplFuncs() template.FuncMap

RegisterTmplFuncs 注册自定义函数

func SelectDecrypt

func SelectDecrypt() (string, error)

SelectDecrypt 随机选择解密函数

func SelectEncrypt

func SelectEncrypt() (string, error)

SelectEncrypt demo

func SliceType

func SliceType(i interface{}) []string

SliceType 获取切片元素的类型

func SwapFuncs

func SwapFuncs(funcName string) string

SwapFuncs 匹配加解密函数

func TmplRender

func TmplRender(opts TmplOpts) error

Types

type Args

type Args struct {
	Import  string // 导入库
	ArgsKey string // 参数加载设置的密钥
}

type Compressor

type Compressor struct {
	Import    string // 导入库
	Algorithm string // 压缩算法
	Ratio     int    // lzw 压缩率, 一般为8
}

type Data

type Data struct {
	CipherText    string      // 保存加密文本的变量名
	PlainText     string      // 保存解密文本的变量名
	DecryptMethod string      // 解密方法
	Pokemon       interface{} // Pokemon Shellcode
	Loader        interface{} // loader
	SandBox       interface{} // 反沙箱模块
	Local         interface{} // 本地加载模块
	Remote        interface{} // 远程加载模块
	Args          interface{} // 参数加载模块
	Compressor    interface{} // 压缩算法模块
	Apart         interface{} // 分离加载模块
	Dynamic       interface{} // 动态数据
}

type Dynamic

type Dynamic struct {
	Import        string // 导入库
	DynamicUrl    string // 动态获取 Key
	DynamicMethod string // 动态函数
	KeyName       string // Key 变量名
	DynamicKey    string // 动态获取 Key
	KeyStart      int    // Key 动态区间
	KeyEnd        int    // Key 动态区间
	IVName        string // IV 变量名
	DynamicIV     string // 动态获取 IV
	IVStart       int    // IV 动态区间
	IVEnd         int    // IV 动态区间
}

type FunctionType

type FunctionType int
const (
	Encrypt FunctionType = iota
	Decrypt
)

type Loader

type Loader struct {
	Method string // loader
	Hide   string // 隐藏方法
}

type Local

type Local struct {
	KeyName  string      // Key 变量名
	KeyValue string      // Key 值
	IvName   string      // Iv  变量名
	IvValue  string      // Iv  值
	Payload  interface{} // 加密 shellcode
}

type Remote

type Remote struct {
	Import     string // 导入库
	Url        string // 远程加载Url
	Method     string // 请求方法
	UCFileCode string // UsersCloud加载的参数
	UCMethod   string // 读取UsersCloud的Payload
}

type SandBox

type SandBox struct {
	Import  string   // 导入库
	Methods []string // 反沙箱方法, 批量渲染
}

type TmplOpts

type TmplOpts struct {
	TmplFile     string      // 模板文件路径
	OutputDir    string      // 输出目录路径
	OutputGoName string      // 输出的 Go 文件名
	Data         interface{} // 基础模板渲染数据
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL