Documentation
¶
Index ¶
- func Decrypto(content, key []byte, pass string, cryption CrypticType, ...) ([]byte, error)
- func Encrypto(content, key []byte, pass string, cryption CrypticType, ...) ([]byte, error)
- func GenAssignShell(pass, key string, cryType CrypticType) string
- func GenRandShell(cryType CrypticType) (pass string, key string, shell string)
- func SplitArgs(input string, maxParts int, removeAllEscapeSequences bool) []string
- type BigFileDownload
- type BigFileUpload
- type CopyFile
- type CrypticType
- type DBManagerParams
- type DeleteFile
- type DownloadFile
- type ExecParams
- type FileAttr
- type FileRemoteDown
- type FixFileAttr
- type GetFileSize
- type GetFiles
- type IPlugins
- type MoveFile
- type NewDir
- type NewFile
- type Parameter
- type UploadFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypto ¶
func Decrypto(content, key []byte, pass string, cryption CrypticType, script shell.ScriptType) ([]byte, error)
func Encrypto ¶
func Encrypto(content, key []byte, pass string, cryption CrypticType, script shell.ScriptType) ([]byte, error)
func GenAssignShell ¶
func GenAssignShell(pass, key string, cryType CrypticType) string
func GenRandShell ¶
func GenRandShell(cryType CrypticType) (pass string, key string, shell string)
Types ¶
type BigFileDownload ¶
type BigFileDownload struct {
FileName string `json:"fileName"`
Position int `json:"position"`
ReadByteNum int `json:"readByteNum"`
}
func (BigFileDownload) SetDefaultAndCheckValue ¶
func (b BigFileDownload) SetDefaultAndCheckValue() error
type BigFileUpload ¶
type BigFileUpload struct {
FileName string `json:"fileName"`
FileContents []byte `json:"fileContents"`
Position int `json:"position"`
}
func (BigFileUpload) SetDefaultAndCheckValue ¶
func (b BigFileUpload) SetDefaultAndCheckValue() error
type CopyFile ¶
type CopyFile struct {
SrcFileName string `json:"srcFileName"`
DestFileName string `json:"destFileName"`
}
func (CopyFile) SetDefaultAndCheckValue ¶
type CrypticType ¶
type CrypticType string
const ( TimeOut = time.Second * 25 JAVA_AES_BASE64 CrypticType = "JAVA_AES_BASE64" JAVA_AES_RAW CrypticType = "JAVA_AES_RAW" CSHARP_AES_BASE64 CrypticType = "CSHARP_AES_BASE64" CSHARP_AES_RAW CrypticType = "CSHARP_AES_RAW" PHP_XOR_BASE64 CrypticType = "PHP_XOR_BASE64" PHP_XOR_RAW CrypticType = "PHP_XOR_RAW" ASP_XOR_BASE64 CrypticType = "ASP_XOR_BASE64" ASP_XOR_RAW CrypticType = "ASP_XOR_RAW" )
type DBManagerParams ¶
type DBManagerParams struct {
DBType string
DBHost string
DBPort int
DBUsername string
DBPassword string
ExecType string
ExecSql string
DBCharset string
CurrentDB string
}
func (DBManagerParams) SetDefaultAndCheckValue ¶
func (d DBManagerParams) SetDefaultAndCheckValue() error
type DeleteFile ¶
type DeleteFile struct {
FileName string `json:"fileName"`
}
func (DeleteFile) SetDefaultAndCheckValue ¶
func (d DeleteFile) SetDefaultAndCheckValue() error
type DownloadFile ¶
type DownloadFile struct {
FileName string `json:"fileName"`
}
func (DownloadFile) SetDefaultAndCheckValue ¶
func (d DownloadFile) SetDefaultAndCheckValue() error
type ExecParams ¶
type ExecParams struct {
Template string `json:"template"`
Command string `json:"command"`
CurrPath string `json:"currPath"`
RealCommand string `json:"realCommand"`
}
func (*ExecParams) SetDefaultAndCheckValue ¶
func (e *ExecParams) SetDefaultAndCheckValue() error
type FileRemoteDown ¶
type FileRemoteDown struct {
// eg. https://github.com/xxx/1.exe
Url string `json:"url"`
// 文件在目标服务器上保存的路径
SaveFile string `json:"saveFile"`
}
FileRemoteDown 指定一个 url 让目标下载
func (*FileRemoteDown) SetDefaultAndCheckValue ¶
func (f *FileRemoteDown) SetDefaultAndCheckValue() error
type FixFileAttr ¶
type FixFileAttr struct {
// 要修改的文件路径
FileName string `json:"fileName"`
// 修改时间戳还是权限
FileAttr FileAttr
// 如果选择修改时间戳,那么格式为 2006-01-02 15:04:05
// 如果选择修改权限,那么格式为 RWX
Attr string `json:"attr"`
}
FixFileAttr 修改文件时间戳、权限
func (*FixFileAttr) SetDefaultAndCheckValue ¶
func (s *FixFileAttr) SetDefaultAndCheckValue() error
type GetFileSize ¶
type GetFileSize struct {
FileName string `json:"fileName"`
}
func (*GetFileSize) SetDefaultAndCheckValue ¶
func (g *GetFileSize) SetDefaultAndCheckValue() error
type GetFiles ¶
type GetFiles struct {
DirName string `json:"dirName"`
}
func (GetFiles) SetDefaultAndCheckValue ¶
type MoveFile ¶
type MoveFile struct {
SrcFileName string `json:"srcFileName"`
DestFileName string `json:"destFileName"`
}
func (MoveFile) SetDefaultAndCheckValue ¶
type NewDir ¶
type NewDir struct {
DirName string `json:"dirName"`
}
func (NewDir) SetDefaultAndCheckValue ¶
type NewFile ¶
type NewFile struct {
FileName string `json:"fileName"`
}
func (NewFile) SetDefaultAndCheckValue ¶
type Parameter ¶
func NewParameter ¶
func NewParameter() *Parameter
type UploadFile ¶
func (UploadFile) SetDefaultAndCheckValue ¶
func (u UploadFile) SetDefaultAndCheckValue() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.