Documentation ¶
Index ¶
- Variables
- func SetNonceQueryArgChars(queryArgs string)
- type HTTPDriver
- type HTTPOptions
- type Jar
- type SliverHTTPClient
- func (s *SliverHTTPClient) CloseSession() error
- func (s *SliverHTTPClient) DoPoll(req *http.Request) (*http.Response, []byte, error)
- func (s *SliverHTTPClient) NonceQueryArgument(uri *url.URL, value uint64) *url.URL
- func (s *SliverHTTPClient) OTPQueryArgument(uri *url.URL, value string) *url.URL
- func (s *SliverHTTPClient) ReadEnvelope() (*pb.Envelope, error)
- func (s *SliverHTTPClient) SessionInit() error
- func (s *SliverHTTPClient) WriteEnvelope(envelope *pb.Envelope) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func SetNonceQueryArgChars ¶
func SetNonceQueryArgChars(queryArgs string)
{{if .Config.Debug}} -- UNIT TESTS ONLY
Types ¶
type HTTPDriver ¶
HTTPDriver - The interface to send/recv HTTP data
func GetHTTPDriver ¶
func GetHTTPDriver(origin string, secure bool, opts *HTTPOptions) (HTTPDriver, error)
GetHTTPDriver - Get an instance of the specified HTTP driver
func GoHTTPDriver ¶
func GoHTTPDriver(origin string, secure bool, opts *HTTPOptions) (HTTPDriver, error)
GoHTTPDriver - Pure Go HTTP driver
type HTTPOptions ¶
type HTTPOptions struct { Driver string NetTimeout time.Duration TlsTimeout time.Duration PollTimeout time.Duration MaxErrors int ForceHTTP bool NoFallback bool DisableUpgradeHeader bool HostHeader string ProxyConfig string ProxyUsername string ProxyPassword string AskProxyCreds bool }
HTTPOptions - c2 specific configuration options
func ParseHTTPOptions ¶
func ParseHTTPOptions(c2URI *url.URL) *HTTPOptions
ParseHTTPOptions - Parse c2 specific configuration options
type Jar ¶
type Jar struct {
// contains filtered or unexported fields
}
Jar - CookieJar implementation that ignores domains/origins
type SliverHTTPClient ¶
type SliverHTTPClient struct { Origin string PathPrefix string ProxyURL string SessionCtx *cryptography.CipherContext SessionID string Closed bool Options *HTTPOptions // contains filtered or unexported fields }
SliverHTTPClient - Helper struct to keep everything together
func HTTPStartSession ¶
func HTTPStartSession(address string, pathPrefix string, opts *HTTPOptions) (*SliverHTTPClient, error)
HTTPStartSession - Attempts to start a session with a given address
func (*SliverHTTPClient) CloseSession ¶
func (s *SliverHTTPClient) CloseSession() error
func (*SliverHTTPClient) NonceQueryArgument ¶
NonceQueryArgument - Adds a nonce query argument to the URL
func (*SliverHTTPClient) OTPQueryArgument ¶
OTPQueryArgument - Adds an OTP query argument to the URL
func (*SliverHTTPClient) ReadEnvelope ¶
func (s *SliverHTTPClient) ReadEnvelope() (*pb.Envelope, error)
ReadEnvelope - Perform an HTTP GET request
func (*SliverHTTPClient) SessionInit ¶
func (s *SliverHTTPClient) SessionInit() error
SessionInit - Initialize the session
func (*SliverHTTPClient) WriteEnvelope ¶
func (s *SliverHTTPClient) WriteEnvelope(envelope *pb.Envelope) error
WriteEnvelope - Perform an HTTP POST request
Directories ¶
Path | Synopsis |
---|---|
drivers
|
|
win/wininet
Code generated by tools/defines.go; DO NOT EDIT.
|
Code generated by tools/defines.go; DO NOT EDIT. |