Documentation
¶
Index ¶
- Variables
- func DecryptForCSharp(code []byte, key []byte) ([]byte, error)
- func DecryptForJava(code []byte, key []byte) ([]byte, error)
- func DecryptForPhp(code []byte, key []byte) ([]byte, error)
- func EncryptForCSharp(code []byte, key []byte) ([]byte, error)
- func EncryptForJava(code []byte, key []byte) ([]byte, error)
- func EncryptForPhp(code []byte, key []byte) ([]byte, error)
- func GetHexYakPayload(filename string) (string, error)
- func RandomClassName() string
- func Xor(code []byte, key []byte) []byte
- type FileBaseInfo
- type Payload
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 DecryptForJava ¶
DecryptForJava TODO 解密前判断下长度,不然可能会 panic
func GetHexYakPayload ¶ added in v1.3.3
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 全部放在一起会造成数据包太大
Click to show internal directories.
Click to hide internal directories.