t3

package
v1.3.6-beta1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const T3_GENCONTEXT_HEX = "" /* 212-byte string literal not displayed */
View Source
const WeblogicJNDIPayload = `` /* 76470-byte string literal not displayed */

Variables

View Source
var Exports = map[string]interface{}{
	"ExecCommand":                   _execT3,
	"SendJavaObjectStreamBytes":     SendSreamBytes,
	"GenerateJavaObjectStreamBytes": GenExecPayload,
	"GenerateWeblogicJNDIPayload":   GenerateWeblogicJNDIPayload,
	"timeout":                       SetTimeout,
	"clearBackdoor":                 SetClearBackdoor,
	"debugHandler":                  SetDebugHandler,
}
View Source
var GenExecPayload = genPayload

Functions

func GenerateWeblogicJNDIPayload

func GenerateWeblogicJNDIPayload(addr string) []byte

func NewReader

func NewReader(b []byte) *reader

func SendSreamBytes

func SendSreamBytes(addr string, acedBytes interface{}, f ...OptionFun) error

Types

type InboundMsgAbbrev

type InboundMsgAbbrev struct {
	// contains filtered or unexported fields
}

type OptionFun

type OptionFun func(*T3Paylaod)

func SetAddr

func SetAddr(addr string) OptionFun

func SetClearBackdoor

func SetClearBackdoor(clear bool) OptionFun

func SetDebugHandler

func SetDebugHandler(handler func(string)) OptionFun

func SetTimeout

func SetTimeout(duration float64) OptionFun

type T3Header

type T3Header struct {
	// contains filtered or unexported fields
}

type T3Paylaod

type T3Paylaod struct {
	Ip   string
	Port int
	// contains filtered or unexported fields
}

func NewT3Payload

func NewT3Payload(o ...OptionFun) *T3Paylaod

func (*T3Paylaod) Exec

func (t *T3Paylaod) Exec(cmd string) (_ string, err error)

func (*T3Paylaod) Read

func (t *T3Paylaod) Read(conn net.Conn) ([]byte, error)

func (*T3Paylaod) SendPayload

func (t *T3Paylaod) SendPayload(payload []byte) error

type T3Request

type T3Request struct {
	Header T3Header
}

func ParseT3

func ParseT3(data []byte) *T3Request

Jump to

Keyboard shortcuts

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