vpnbrute

package
v1.3.3-rc3 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 Auth

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

func GetOutgoingCallReq

func GetOutgoingCallReq() map[string]any

func GetStartControlConnReq

func GetStartControlConnReq() map[string]any

func PaddingBytes

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

Types

type PPTPAuth

type PPTPAuth struct {
	Target string

	RAddrByte []byte
	LAddrByte []byte

	RMac []byte
	LMac []byte

	SNumber int
	// contains filtered or unexported fields
}

func GetDefaultPPTPAuth

func GetDefaultPPTPAuth() *PPTPAuth

func (*PPTPAuth) GetSetLinkInfo

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

func (*PPTPAuth) PPTPNegotiate

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

func (*PPTPAuth) ProcessGre

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

func (*PPTPAuth) Tunnel

func (pptp *PPTPAuth) 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