Documentation ¶
Index ¶
- type ArpSpoofer
- type Discovery
- type EventsStream
- type HttpProxy
- type JSHeader
- type JSRequest
- type JSResponse
- type JSSessionRequest
- type JSSessionResponse
- type Prober
- type ProxyScript
- type RestAPI
- func (api RestAPI) Authenticated(w http.ResponseWriter, r *http.Request) bool
- func (api *RestAPI) Author() string
- func (api *RestAPI) Description() string
- func (api *RestAPI) Name() string
- func (api *RestAPI) OnSessionEnded(s *session.Session)
- func (api *RestAPI) OnSessionStarted(s *session.Session)
- func (api *RestAPI) Start() error
- func (api *RestAPI) Stop() error
- type Sniffer
- func (s Sniffer) Author() string
- func (s Sniffer) Description() string
- func (s *Sniffer) GetContext() (error, *SnifferContext)
- func (s Sniffer) Name() string
- func (sn Sniffer) OnSessionEnded(s *session.Session)
- func (s *Sniffer) PrintStats() error
- func (s *Sniffer) Start() error
- func (s *Sniffer) Stop() error
- type SnifferContext
- type SnifferStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArpSpoofer ¶
type ArpSpoofer struct { session.SessionModule Done chan bool }
func NewArpSpoofer ¶
func NewArpSpoofer(s *session.Session) *ArpSpoofer
func (ArpSpoofer) Author ¶
func (p ArpSpoofer) Author() string
func (ArpSpoofer) Description ¶
func (p ArpSpoofer) Description() string
func (ArpSpoofer) Name ¶
func (p ArpSpoofer) Name() string
func (*ArpSpoofer) OnSessionEnded ¶
func (p *ArpSpoofer) OnSessionEnded(s *session.Session)
func (*ArpSpoofer) OnSessionStarted ¶
func (p *ArpSpoofer) OnSessionStarted(s *session.Session)
func (*ArpSpoofer) Start ¶
func (p *ArpSpoofer) Start() error
func (*ArpSpoofer) Stop ¶
func (p *ArpSpoofer) Stop() error
type Discovery ¶
type Discovery struct { session.SessionModule // contains filtered or unexported fields }
func NewDiscovery ¶
func (Discovery) Description ¶
func (Discovery) OnSessionEnded ¶
type EventsStream ¶
type EventsStream struct { session.SessionModule // contains filtered or unexported fields }
func NewEventsStream ¶
func NewEventsStream(s *session.Session) *EventsStream
func (EventsStream) Author ¶
func (s EventsStream) Author() string
func (EventsStream) Description ¶
func (s EventsStream) Description() string
func (EventsStream) Name ¶
func (s EventsStream) Name() string
func (*EventsStream) OnSessionEnded ¶
func (s *EventsStream) OnSessionEnded(sess *session.Session)
func (*EventsStream) Start ¶
func (s *EventsStream) Start() error
func (*EventsStream) Stop ¶
func (s *EventsStream) Stop() error
type HttpProxy ¶
type HttpProxy struct { session.SessionModule // contains filtered or unexported fields }
func NewHttpProxy ¶
func (*HttpProxy) Description ¶
func (*HttpProxy) OnSessionEnded ¶
func (*HttpProxy) OnSessionStarted ¶
type JSRequest ¶
type JSRequest struct { Method string Version string Path string Hostname string Headers []JSHeader Body string // contains filtered or unexported fields }
func NewJSRequest ¶
type JSResponse ¶
type JSResponse struct { Status int ContentType string Headers string Body string // contains filtered or unexported fields }
func NewJSResponse ¶
func NewJSResponse(res *http.Response) *JSResponse
func (*JSResponse) ReadBody ¶
func (j *JSResponse) ReadBody() string
func (*JSResponse) ToResponse ¶
func (j *JSResponse) ToResponse(req *http.Request) (resp *http.Response)
func (*JSResponse) Updated ¶
func (j *JSResponse) Updated()
type JSSessionRequest ¶
type JSSessionRequest struct {
Command string `json:"cmd"`
}
type JSSessionResponse ¶
type JSSessionResponse struct {
Error string `json:"error"`
}
type Prober ¶
type Prober struct {
session.SessionModule
}
func (Prober) Description ¶
func (Prober) OnSessionEnded ¶
type ProxyScript ¶
type ProxyScript struct { Path string Source string VM *otto.Otto // contains filtered or unexported fields }
func LoadProxyScript ¶
func LoadProxyScript(path string, sess *session.Session) (err error, s *ProxyScript)
func (*ProxyScript) OnRequest ¶
func (s *ProxyScript) OnRequest(req *http.Request) *JSResponse
func (*ProxyScript) OnResponse ¶
func (s *ProxyScript) OnResponse(res *http.Response) *JSResponse
type RestAPI ¶
type RestAPI struct { session.SessionModule // contains filtered or unexported fields }
func NewRestAPI ¶
func (RestAPI) Authenticated ¶
func (*RestAPI) Description ¶
func (*RestAPI) OnSessionEnded ¶
func (*RestAPI) OnSessionStarted ¶
type Sniffer ¶
type Sniffer struct { session.SessionModule Stats *SnifferStats Ctx *SnifferContext }
func NewSniffer ¶
func (Sniffer) Description ¶
func (*Sniffer) GetContext ¶
func (s *Sniffer) GetContext() (error, *SnifferContext)
func (Sniffer) OnSessionEnded ¶
func (*Sniffer) PrintStats ¶
type SnifferContext ¶
type SnifferContext struct { Handle *pcap.Handle DumpLocal bool Verbose bool Filter string Expression string Compiled *regexp.Regexp Output string OutputFile *os.File OutputWriter *pcapgo.Writer }
func NewSnifferContext ¶
func NewSnifferContext() *SnifferContext
func (*SnifferContext) Close ¶
func (c *SnifferContext) Close()
func (*SnifferContext) Log ¶
func (c *SnifferContext) Log(sess *session.Session)
type SnifferStats ¶
type SnifferStats struct { NumLocal uint64 NumMatched uint64 NumDumped uint64 NumWrote uint64 Started time.Time FirstPacket time.Time LastPacket time.Time }
func NewSnifferStats ¶
func NewSnifferStats() *SnifferStats
Click to show internal directories.
Click to hide internal directories.