encoder

package
v0.0.0-...-c65d5b7 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NULL_CHUNKSIZE = 5
	PAYLOADCHUNK   = 10
)

Variables

This section is empty.

Functions

func BinReader

func BinReader(binPath string) ([]byte, error)

BinReader 读取bin类型的Payload

func CReader

func CReader(cPath string) ([]byte, error)

CReader 读取C语言类型的Payload

func CStringsReader

func CStringsReader(cPath string) ([]byte, error)

func ReduceEntropy

func ReduceEntropy(payload []byte) ([]byte, int)

func ReverseEntropy

func ReverseEntropy(payload []byte, payloadSize int) ([]byte, int)

Types

type Payload

type Payload struct {
	PlainText string // 原始 Payload
	FileName  string // 加密后的shellcode文件名
	Path      string // 加密文件的保存路径
	Key       []byte
	IV        []byte
}

func (Payload) PokemonEncoder

func (p Payload) PokemonEncoder(sign interface{}) ([]string, error)

func (Payload) SetKeyIV

func (p Payload) SetKeyIV(sign interface{}) (string, error)

SetKeyIV 根据传入的加密函数签名进行反射调用获取返回值

func (Payload) WriteStrings

func (p Payload) WriteStrings(content string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳