Documentation
¶
Index ¶
- type HTTPRequest
- type HTTPResponse
- type SniffData
- type Sniffer
- func (mod Sniffer) Author() string
- func (mod *Sniffer) Configure() error
- func (mod Sniffer) Description() string
- func (mod *Sniffer) GetContext() (error, *SnifferContext)
- func (mod Sniffer) Name() string
- func (mod *Sniffer) Start() error
- func (mod *Sniffer) StartFuzzing() error
- func (mod *Sniffer) Stop() error
- func (mod *Sniffer) StopFuzzing() error
- type SnifferContext
- type SnifferEvent
- type SnifferStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPRequest ¶
type HTTPRequest struct {
Method string `json:"method"`
Proto string `json:"proto"`
Host string `json:"host"`
URL string `json:"url:"`
Headers http.Header `json:"headers"`
ContentType string `json:"content_type"`
Body []byte `json:"body"`
}
func (HTTPRequest) IsType ¶
func (r HTTPRequest) IsType(ctype string) bool
type HTTPResponse ¶
type HTTPResponse struct {
Protocol string `json:"protocol"`
Status string `json:"status"`
StatusCode int `json:"status_code"`
Headers http.Header `json:"headers"`
Body []byte `json:"body"`
ContentLength int64 `json:"content_length"`
ContentType string `json:"content_type"`
TransferEncoding []string `json:"transfer_encoding"`
}
func (HTTPResponse) IsType ¶
func (r HTTPResponse) IsType(ctype string) bool
type Sniffer ¶
type Sniffer struct {
session.SessionModule
Stats *SnifferStats
Ctx *SnifferContext
// contains filtered or unexported fields
}
func NewSniffer ¶
func (Sniffer) Description ¶
func (*Sniffer) GetContext ¶
func (mod *Sniffer) GetContext() (error, *SnifferContext)
func (*Sniffer) StartFuzzing ¶
func (*Sniffer) StopFuzzing ¶
type SnifferContext ¶
type SnifferContext struct {
Handle *pcap.Handle
Source string
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 SnifferEvent ¶
type SnifferEvent struct {
PacketTime time.Time `json:"time"`
Protocol string `json:"protocol"`
Source string `json:"from"`
Destination string `json:"to"`
Message string `json:"message"`
Data interface{} `json:"data"`
}
func NewSnifferEvent ¶
func (SnifferEvent) Push ¶
func (e SnifferEvent) Push()
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
func (*SnifferStats) Print ¶
func (s *SnifferStats) Print() error
Source Files
¶
- net_sniff.go
- net_sniff_context.go
- net_sniff_dns.go
- net_sniff_dot11.go
- net_sniff_event.go
- net_sniff_ftp.go
- net_sniff_fuzz.go
- net_sniff_http.go
- net_sniff_krb5.go
- net_sniff_mdns.go
- net_sniff_ntlm.go
- net_sniff_parsers.go
- net_sniff_sni.go
- net_sniff_stats.go
- net_sniff_tcp.go
- net_sniff_teamviewer.go
- net_sniff_udp.go
- net_sniff_upnp.go
- net_sniff_views.go
Click to show internal directories.
Click to hide internal directories.