Documentation
¶
Index ¶
- Variables
- func CreateRequest(verb string, url string, payload string, followRedirect bool) (*http.Client, *http.Request, bool)
- func CreateRequestParams(params map[string]string) string
- func CreateRequestParamsEncoded(params map[string]string) string
- func DoRawHTTPRequest(rhost string, rport int, uri string, verb string) bool
- func DoRequest(client *http.Client, req *http.Request) (*http.Response, string, bool)
- func GenerateURL(rhost string, rport int, ssl bool, uri string) string
- func HTTPSendAndRecv(verb string, url string, payload string) (*http.Response, string, bool)
- func HTTPSendAndRecvNoRedirect(verb string, url string, payload string) (*http.Response, string, bool)
- func HTTPSendAndRecvURLEncoded(verb string, url string, params map[string]string) (*http.Response, string, bool)
- func HTTPSendAndRecvURLEncodedAndHeaders(verb string, url string, params map[string]string, headers map[string]string) (*http.Response, string, bool)
- func HTTPSendAndRecvURLEncodedParams(verb string, url string, params map[string]string) (*http.Response, string, bool)
- func HTTPSendAndRecvURLEncodedParamsAndHeaders(verb string, url string, params map[string]string, headers map[string]string) (*http.Response, string, bool)
- func HTTPSendAndRecvWithHeaders(verb string, url string, payload string, headers map[string]string) (*http.Response, string, bool)
- func HTTPSendAndRecvWithHeadersNoRedirect(verb string, url string, payload string, headers map[string]string) (*http.Response, string, bool)
- func MultipartAddField(writer *multipart.Writer, name string, value string) bool
- func MultipartAddFile(writer *multipart.Writer, name, filename, ctype, value string) bool
- func MultipartCreateForm() (*strings.Builder, *multipart.Writer)
- func ParseM2Message(data []byte, msg *M2Message) bool
- func ReceiveM2(conn *net.TCPConn, msg *M2Message) bool
- func SendM2(conn *net.TCPConn, msg *M2Message) bool
- func SetRequestHeaders(req *http.Request, headers map[string]string)
- func TCPConnect(host string, port int) (*net.TCPConn, bool)
- func TCPReadAmount(conn *net.TCPConn, amount int) ([]byte, bool)
- func TCPWrite(conn *net.TCPConn, data []byte) bool
- func UDPConnect(host string, port int) (*net.UDPConn, bool)
- func UDPReadAmount(conn *net.UDPConn, amount int) ([]byte, bool)
- func UDPWrite(conn *net.UDPConn, data []byte) bool
- type M2Message
- func (msg M2Message) AddBool(varname uint32, data bool)
- func (msg M2Message) AddString(varname uint32, data []byte)
- func (msg M2Message) AddU32(varname uint32, data uint32)
- func (msg M2Message) AddU32Array(varname uint32, data []uint32)
- func (msg M2Message) GetSessionID() uint32
- func (msg M2Message) Serialize() []byte
- func (msg M2Message) SetCommand(command uint32)
- func (msg M2Message) SetReplyExpected(expected bool)
- func (msg M2Message) SetRequestID(id uint32)
- func (msg M2Message) SetSessionID(id uint32)
- func (msg M2Message) SetTo(to uint32, handler uint32)
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalUA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" +
"(KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.33"
Functions ¶
func CreateRequest ¶
func CreateRequestParams ¶
converts a map of strings into a single string in application/x-www-urlencoded format (but does not encode the params!)
func CreateRequestParamsEncoded ¶
CreateRequestParamsEncoded is the encoded version of CreateRequestParams.
func DoRawHTTPRequest ¶
Go doesn't always like sending our exploit URI so use this raw version. SSL not implemented.
func HTTPSendAndRecv ¶
func HTTPSendAndRecvWithHeadersNoRedirect ¶
func HTTPSendAndRecvWithHeadersNoRedirect(verb string, url string, payload string, headers map[string]string, ) (*http.Response, string, bool)
this naming scheme is a little out of control.
func MultipartAddField ¶
func MultipartAddFile ¶ added in v1.0.5
func MultipartCreateForm ¶ added in v1.0.6
func ParseM2Message ¶
this switch is cursed. it needs to be broke into manageable functions.
func UDPReadAmount ¶ added in v1.0.2
Types ¶
type M2Message ¶
type M2Message struct { Bools map[uint32]bool U32s map[uint32]uint32 Strings map[uint32][]byte Raw map[uint32][]byte ArrayU32 map[uint32][]uint32 ArrayM2 map[uint32][]*M2Message }
func NewM2Message ¶
func NewM2Message() *M2Message
func (M2Message) AddU32Array ¶
func (M2Message) GetSessionID ¶
func (M2Message) SetCommand ¶
func (M2Message) SetReplyExpected ¶
func (M2Message) SetRequestID ¶
func (M2Message) SetSessionID ¶
Click to show internal directories.
Click to hide internal directories.