godzilla

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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)

func SplitArgs

func SplitArgs(input string, maxParts int, removeAllEscapeSequences bool) []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

func (c CopyFile) SetDefaultAndCheckValue() error

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 FileAttr

type FileAttr string
const (
	FileBasicAttr FileAttr = "fileBasicAttr"
	FileTimeAttr  FileAttr = "fileTimeAttr"
)

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

func (g GetFiles) SetDefaultAndCheckValue() error

type IPlugins

type IPlugins interface {
	GetPluginName() (string, []byte, error)
	GetParams() (string, *Parameter)
}

type MoveFile

type MoveFile struct {
	SrcFileName  string `json:"srcFileName"`
	DestFileName string `json:"destFileName"`
}

func (MoveFile) SetDefaultAndCheckValue

func (m MoveFile) SetDefaultAndCheckValue() error

type NewDir

type NewDir struct {
	DirName string `json:"dirName"`
}

func (NewDir) SetDefaultAndCheckValue

func (n NewDir) SetDefaultAndCheckValue() error

type NewFile

type NewFile struct {
	FileName string `json:"fileName"`
}

func (NewFile) SetDefaultAndCheckValue

func (n NewFile) SetDefaultAndCheckValue() error

type Parameter

type Parameter struct {
	HashMap map[string]interface{}
	Size    int
}

func NewParameter

func NewParameter() *Parameter

func (*Parameter) AddBytes

func (p *Parameter) AddBytes(key string, value []byte)

func (*Parameter) AddString

func (p *Parameter) AddString(key, value string)

func (*Parameter) Serialize

func (p *Parameter) Serialize() []byte

type UploadFile

type UploadFile struct {
	FileName  string `json:"fileName"`
	FileValue []byte `json:"fileValue"`
}

func (UploadFile) SetDefaultAndCheckValue

func (u UploadFile) SetDefaultAndCheckValue() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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