Documentation ¶
Index ¶
- Variables
- func DescriptionQuery(options *Options, id string) ([]*communication.DescriptionEntry, error)
- func InteractionQuery(options *Options, id string) (*communication.PollResponse, error)
- func SessionQuery(options *Options, from, to, desc string) ([]*communication.SessionEntry, error)
- func SetDesc(options *Options, payload string) error
- func SplitChunks(str string, chunkSize int) []string
- type Client
- type InteractionCallback
- type Options
Constants ¶
This section is empty.
Variables ¶
var DefaultOptions = &Options{ ServerURL: "oast.pro,oast.live,oast.site,oast.online,oast.fun,oast.me", CorrelationIdLength: settings.CorrelationIdLengthDefault, CorrelationIdNonceLength: settings.CorrelationIdNonceLengthDefault, }
DefaultOptions is the default options for the interact client
Functions ¶
func DescriptionQuery ¶
func DescriptionQuery(options *Options, id string) ([]*communication.DescriptionEntry, error)
DescriptionQuery statelessly gets list of descriptions from server, does not require prior call to New
func InteractionQuery ¶ added in v1.0.7
func InteractionQuery(options *Options, id string) (*communication.PollResponse, error)
InteractionQuery statelessly gets list of interactions from server, does not require prior call to New
func SessionQuery ¶
func SessionQuery(options *Options, from, to, desc string) ([]*communication.SessionEntry, error)
SessionQuery statelessly gets list of descriptions from server, does not require prior call to New
func SplitChunks ¶
Types ¶
type Client ¶
type Client struct { CorrelationIdNonceLength int // contains filtered or unexported fields }
Client is a client for communicating with interactsh server instance.
func (*Client) Close ¶
Close closes the collaborator client and deregisters from the collaborator server if not explicitly asked by the user.
func (*Client) SaveSessionTo ¶
func (*Client) StartPolling ¶
func (c *Client) StartPolling(duration time.Duration, callback InteractionCallback)
StartPolling starts polling the server each duration and returns any events that may have been captured by the collaborator server.
func (*Client) StopPolling ¶
func (c *Client) StopPolling()
StopPolling stops the polling to the interactsh server.
type InteractionCallback ¶
type InteractionCallback func(interaction *communication.Interaction)
InteractionCallback is a callback function for a reported interaction
type Options ¶
type Options struct { // ServerURL is the URL for the interactsh server. ServerURL string // Token if the server requires authentication Token string // DisableHTTPFallback determines if failed requests over https should not be retried over http DisableHTTPFallback bool // CorrelationIdLength of the preamble CorrelationIdLength int // CorrelationIdNonceLengthLength of the nonce CorrelationIdNonceLength int // HTTPClient use a custom http client HTTPClient *retryablehttp.Client // SessionInfo to resume an existing session SessionInfo *options.SessionInfo // Description of the session for future reference Description string }
Options contains configuration options for interactsh client