payloads

package
v1.3.5-beta6 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CLASS_NAMES = []string{}/* 413 elements not displayed */
View Source
var CshrapPayload []byte
View Source
var EncryptPayload = map[string]map[string]string{}

EncryptPayload 加密payload

View Source
var HexPayload = map[string]map[Payload]string{}
View Source
var Payloads embed.FS
View Source
var YakEncrypt embed.FS
View Source
var YakPayloads embed.FS

Functions

func DecryptForCSharp

func DecryptForCSharp(code []byte, key []byte) ([]byte, error)

func DecryptForJava

func DecryptForJava(code []byte, key []byte) ([]byte, error)

DecryptForJava TODO 解密前判断下长度,不然可能会 panic

func DecryptForPhp

func DecryptForPhp(code []byte, key []byte) ([]byte, error)

func EncryptForCSharp

func EncryptForCSharp(code []byte, key []byte) ([]byte, error)

func EncryptForJava

func EncryptForJava(code []byte, key []byte) ([]byte, error)

func EncryptForPhp

func EncryptForPhp(code []byte, key []byte) ([]byte, error)

func GetHexYakPayload added in v1.3.3

func GetHexYakPayload(filename string) (string, error)

func RandomClassName

func RandomClassName() string

RandomClassName 随机类名

func Xor

func Xor(code []byte, key []byte) []byte

Types

type FileBaseInfo added in v1.3.3

type FileBaseInfo struct {
	Filename   string `json:"filename"`
	Time       string `json:"time"`
	Size       string `json:"size"`
	Type       string `json:"type"`
	Permission string `json:"current_user_permissions"`
}

func (*FileBaseInfo) GetSize added in v1.3.3

func (f *FileBaseInfo) GetSize() int

func (*FileBaseInfo) GetTime added in v1.3.3

func (f *FileBaseInfo) GetTime() int64

func (*FileBaseInfo) HasChildNodes added in v1.3.3

func (f *FileBaseInfo) HasChildNodes() bool

type Payload

type Payload string
var (
	AllPayload          Payload = "AllPayloadGo"
	EchoGo              Payload = "EchoGo"
	BasicInfoGo         Payload = "BasicInfoGo"
	CmdGo               Payload = "CmdGo"
	RealCMDGo           Payload = "RealCMDGo" //不太一样 后续实现
	FileOperationGo     Payload = "FileOperationGo"
	CreateFile          Payload = "CreateFile"
	UploadFile          Payload = "UploadFile"
	CopyFileOrDir       Payload = "CopyFileOrDir"
	DeleteFileOrDir     Payload = "DeleteFileOrDir"
	DirInfo             Payload = "DirInfo"
	DownloadFile        Payload = "DownloadFile"
	Mkdir               Payload = "Mk_dir"
	ReadFile            Payload = "Read_File"
	ReNameFile          Payload = "RenameFile"
	WgetFile            Payload = "WgetFile"
	ZipEncode           Payload = "ZipEncode"
	ChmodFilePremission Payload = "ChmodFilePremission"
	ChmodTime           Payload = "ChmodTime"
	DbOperation         Payload = "DbOperation"
	CheckHash           Payload = "CheckHash"
	EvilCode            Payload = "EvilCode"
)

目前将fileOperation payload 全部放在一起会造成数据包太大

func (Payload) String added in v1.3.3

func (p Payload) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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