behinder

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENCRYPT_TYPE_AES = iota
	ENCRYPT_TYPE_XOR
)

Variables

This section is empty.

Functions

func Decrypto

func Decrypto(raw, key []byte, types shell.ScriptType, notEncrypt string, encryptType, prefixLen, suffixLen int) ([]byte, error)

func Encrypto

func Encrypto(bs, key []byte, encryptType int, types shell.ScriptType) ([]byte, error)

func GenAssignShell

func GenAssignShell(pass string, scriptType shell.ScriptType) string

func GenRandShell

func GenRandShell(scriptType shell.ScriptType) (pass string, shell string)

func GetParamedAsp

func GetParamedAsp(clsName string, params map[string]string) ([]byte, error)

func GetParamedAssembly

func GetParamedAssembly(clsName string, params map[string]string) ([]byte, error)

func GetPayload

func GetPayload(key []byte, className string, params map[string]string, types shell.ScriptType, encryptType int) ([]byte, error)

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

func (l *ListFiles) SetDefaultAndCheckValue() error

type OnlyJavaParams

type OnlyJavaParams struct {
	ForcePrint bool `json:"forcePrint,string"`
	NotEncrypt bool `json:"notEncrypt,string"`
}

type PayloadName

type PayloadName string
const (
	EchoGo PayloadName = "EchoGo"
)

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

func (s ShowFile) SetDefaultAndCheckValue() error

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

Jump to

Keyboard shortcuts

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