Documentation
¶
Index ¶
- Constants
- func Decrypto(raw, key []byte, types shell.ScriptType, notEncrypt string, ...) ([]byte, error)
- func Encrypto(bs, key []byte, encryptType int, types shell.ScriptType) ([]byte, error)
- func GenAssignShell(pass string, scriptType shell.ScriptType) string
- func GenRandShell(scriptType shell.ScriptType) (pass string, shell string)
- func GetParamedAsp(clsName string, params map[string]string) ([]byte, error)
- func GetParamedAssembly(clsName string, params map[string]string) ([]byte, error)
- func GetPayload(key []byte, className string, params map[string]string, types shell.ScriptType, ...) ([]byte, error)
- type AppendFile
- type BasicInfoParams
- type CreateDirectory
- type CreateFile
- type DBManagerParams
- type DeleteFile
- type DownloadFile
- type ExecParams
- type GetTimeStamp
- type ListFiles
- type OnlyJavaParams
- type PayloadName
- type PingParams
- type RenameFile
- type ShowFile
- type UpdateTimeStamp
- type UploadFile
Constants ¶
View Source
const ( ENCRYPT_TYPE_AES = iota ENCRYPT_TYPE_XOR )
Variables ¶
This section is empty.
Functions ¶
func GenAssignShell ¶
func GenAssignShell(pass string, scriptType shell.ScriptType) string
func GenRandShell ¶
func GenRandShell(scriptType shell.ScriptType) (pass string, shell string)
func GetParamedAssembly ¶
Types ¶
type AppendFile ¶
type AppendFile struct {
OnlyJavaParams
Path string `json:"path"`
Content []byte `json:"content"`
}
func (AppendFile) SetDefaultAndCheckValue ¶
func (a AppendFile) SetDefaultAndCheckValue() error
type BasicInfoParams ¶
type BasicInfoParams struct {
OnlyJavaParams
WhatEver string `json:"whatever"`
}
func (*BasicInfoParams) SetDefaultAndCheckValue ¶
func (b *BasicInfoParams) SetDefaultAndCheckValue() error
type CreateDirectory ¶
type CreateDirectory struct {
OnlyJavaParams
Path string `json:"path"`
}
func (CreateDirectory) SetDefaultAndCheckValue ¶
func (c CreateDirectory) SetDefaultAndCheckValue() error
type CreateFile ¶
type CreateFile struct {
OnlyJavaParams
Path string `json:"path"`
}
func (CreateFile) SetDefaultAndCheckValue ¶
func (c CreateFile) SetDefaultAndCheckValue() error
type DBManagerParams ¶
type DBManagerParams struct {
OnlyJavaParams
Type string `json:"type"`
Host string `json:"host"`
Port int `json:"port,string"`
User string `json:"user"`
Pass string `json:"pass"`
Database string `json:"database"`
Sql string `json:"sql"`
}
func (DBManagerParams) SetDefaultAndCheckValue ¶
func (d DBManagerParams) SetDefaultAndCheckValue() error
type DeleteFile ¶
type DeleteFile struct {
OnlyJavaParams
Path string `json:"path"`
}
func (DeleteFile) SetDefaultAndCheckValue ¶
func (d DeleteFile) SetDefaultAndCheckValue() error
type DownloadFile ¶
type DownloadFile struct {
OnlyJavaParams
Path string `json:"path"`
}
func (DownloadFile) SetDefaultAndCheckValue ¶
func (d DownloadFile) SetDefaultAndCheckValue() error
type ExecParams ¶
type ExecParams struct {
OnlyJavaParams
Cmd string `json:"cmd"`
Path string `json:"path"`
}
func (*ExecParams) SetDefaultAndCheckValue ¶
func (e *ExecParams) SetDefaultAndCheckValue() error
type GetTimeStamp ¶
type GetTimeStamp struct {
OnlyJavaParams
Path string `json:"path"`
}
func (GetTimeStamp) SetDefaultAndCheckValue ¶
func (g GetTimeStamp) SetDefaultAndCheckValue() error
type ListFiles ¶
type ListFiles struct {
OnlyJavaParams
Path string `json:"path"`
}
func (*ListFiles) SetDefaultAndCheckValue ¶
type OnlyJavaParams ¶
type PingParams ¶
type PingParams struct {
OnlyJavaParams
Content string `json:"content"`
}
func (*PingParams) SetDefaultAndCheckValue ¶
func (p *PingParams) SetDefaultAndCheckValue() error
type RenameFile ¶
type RenameFile struct {
OnlyJavaParams
Path string `json:"path"`
NewPath string `json:"newPath"`
}
func (RenameFile) SetDefaultAndCheckValue ¶
func (r RenameFile) SetDefaultAndCheckValue() error
type ShowFile ¶
type ShowFile struct {
OnlyJavaParams
Path string `json:"path"`
Charset string `json:"charset"`
}
func (ShowFile) SetDefaultAndCheckValue ¶
type UpdateTimeStamp ¶
type UpdateTimeStamp struct {
OnlyJavaParams
Path string `json:"path"`
CreateTimeStamp string `json:"createTimeStamp"`
AccessTimeStamp string `json:"accessTimeStamp"`
ModifyTimeStamp string `json:"modifyTimeStamp"`
}
func (UpdateTimeStamp) SetDefaultAndCheckValue ¶
func (u UpdateTimeStamp) SetDefaultAndCheckValue() error
type UploadFile ¶
type UploadFile struct {
OnlyJavaParams
Path string `json:"path"`
Content []byte `json:"content"`
IsChunk bool `json:"isChunk"`
}
func (UploadFile) SetDefaultAndCheckValue ¶
func (u UploadFile) SetDefaultAndCheckValue() error
Click to show internal directories.
Click to hide internal directories.