vpnbrute

package
v1.3.4-beta6 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PPTP_START_CONTROL_CONN_REQ = uint16(1)
	PPTP_START_CONTROL_CONN_REP = uint16(2)
	PPTP_OUTGOING_CALL_REQ      = uint16(7)
	PPTP_OUTGOING_CALL_REP      = uint16(8)
	PPTP_SER_LINK_INFO          = uint16(15)
)

Functions

func GetOutgoingCallReq

func GetOutgoingCallReq() map[string]any

func GetStartControlConnReq

func GetStartControlConnReq() map[string]any

func PPTPAuth

func PPTPAuth(ctx context.Context, target, username, password string) (error, bool)

func PaddingBytes

func PaddingBytes(data []byte, padding byte, size int) []byte

Types

type PPTPAuthItem

type PPTPAuthItem struct {
	Target string

	RAddrByte []byte
	LAddrByte []byte

	RMac []byte
	LMac []byte

	SNumber int
	// contains filtered or unexported fields
}

func GetDefaultPPTPAuth

func GetDefaultPPTPAuth() *PPTPAuthItem

func (*PPTPAuthItem) GetSetLinkInfo

func (pptp *PPTPAuthItem) GetSetLinkInfo() map[string]any

func (*PPTPAuthItem) PPTPNegotiate

func (pptp *PPTPAuthItem) PPTPNegotiate() (net.Conn, error)

func (*PPTPAuthItem) ProcessGre

func (pptp *PPTPAuthItem) ProcessGre(messageNode *base.Node, replyChan chan []byte) error

func (*PPTPAuthItem) Tunnel

func (pptp *PPTPAuthItem) Tunnel(ctx context.Context) (error, bool)

type PPTPConfig

type PPTPConfig struct {
	FramingCapabilities uint16
	BearerCapabilities  uint16
	MaxChannels         uint16
	FirmwareRevision    uint32
	Hostname            string
	Vendor              string

	CallId     uint16
	PeerCallId uint16

	CallSerialNumber  uint16
	MinimumBPS        uint32
	MaximumBPS        uint32
	BearerType        uint32
	FramingType       uint32
	RecvWindowSize    uint16
	ProcessingDelay   uint16
	PhoneNumberLength uint16
	Reserved          uint16
	PhoneNumber       string
	SubAddress        string

	SendAccm uint32
	RecvAccm uint32
}

func GetDefaultPPTPConfig

func GetDefaultPPTPConfig() *PPTPConfig

func (*PPTPConfig) GetOutgoingCallReq

func (c *PPTPConfig) GetOutgoingCallReq() map[string]any

func (*PPTPConfig) GetSetLinkInfo

func (c *PPTPConfig) GetSetLinkInfo() map[string]any

func (*PPTPConfig) GetStartControlConnReq

func (c *PPTPConfig) GetStartControlConnReq() map[string]any

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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