reverse

package
v0.0.0-...-0f5f40a Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DNSLogCN   = "dnslog.cn"
	InteractSH = "interact.sh"
)

Variables

View Source
var (
	Type     string
	Instance Reverse
)

Functions

This section is empty.

Types

type DnsLogCn

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

func (*DnsLogCn) Close

func (d *DnsLogCn) Close()

func (*DnsLogCn) GetDNS

func (d *DnsLogCn) GetDNS() string

func (*DnsLogCn) GetLdap

func (d *DnsLogCn) GetLdap() string

func (*DnsLogCn) GetRmi

func (d *DnsLogCn) GetRmi() string

func (*DnsLogCn) GetUrl

func (d *DnsLogCn) GetUrl() string

func (*DnsLogCn) Wait

func (d *DnsLogCn) Wait(i int) bool

type DnsLogCnData

type DnsLogCnData struct {
}

type Interact

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

func NewInteract

func NewInteract(c *client.HttpClient, server string) (*Interact, error)

func (*Interact) Close

func (i *Interact) Close()

func (*Interact) GetDNS

func (i *Interact) GetDNS() string

func (*Interact) GetLdap

func (i *Interact) GetLdap() string

func (*Interact) GetRmi

func (i *Interact) GetRmi() string

func (*Interact) GetUrl

func (i *Interact) GetUrl() string

func (*Interact) Wait

func (i *Interact) Wait(w int) bool

type InteractData

type InteractData struct {
	Protocol      string `json:"protocol"`
	UniqueID      string `json:"unique-id"`
	FullID        string `json:"full-id"`
	RawReq        string `json:"raw-request"`
	RawResp       string `json:"raw-response"`
	RemoteAddress string `json:"remote-address"`
	Timestamp     string `json:"timestamp"`
}

type InteractResult

type InteractResult struct {
	Data   []string `json:"data"`
	Extra  string   `json:"extra"`
	AesKey string   `json:"aes_key"`
}

type RegisterRequest

type RegisterRequest struct {
	PublicKey     string `json:"public-key"`
	SecretKey     string `json:"secret-key"`
	CorrelationID string `json:"correlation-id"`
}

type Reverse

type Reverse interface {
	// GetUrl
	// HTTP 反连
	GetUrl() string
	// GetRmi
	// RMI 反连
	GetRmi() string
	// GetLdap
	// LDAP 反连
	GetLdap() string
	// GetDNS
	// DNS 反连
	GetDNS() string
	// Wait
	// 等待
	Wait(int) bool
	// Close
	// 关闭
	Close()
}

Reverse 通用反连接口 目前是 dnslog.cn 后续可以拓展

func NewReverse

func NewReverse(c *client.HttpClient) (Reverse, error)

Jump to

Keyboard shortcuts

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