modules

package
v2.13.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2019 License: GPL-3.0 Imports: 66 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package modules contains session modules.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyExpression = errors.New("expression can not be empty")
)

Functions

func TLSConfigFromCA

func TLSConfigFromCA(ca *tls.Certificate) func(host string, ctx *goproxy.ProxyCtx) (*tls.Config, error)

Types

type APIResponse

type APIResponse struct {
	Success bool   `json:"success"`
	Message string `json:"msg"`
}

type AnyProxy

type AnyProxy struct {
	session.SessionModule
	Redirection *firewall.Redirection
}

func NewAnyProxy

func NewAnyProxy(s *session.Session) *AnyProxy

func (*AnyProxy) Author

func (p *AnyProxy) Author() string

func (*AnyProxy) Configure

func (p *AnyProxy) Configure() error

func (*AnyProxy) Description

func (p *AnyProxy) Description() string

func (*AnyProxy) Name

func (p *AnyProxy) Name() string

func (*AnyProxy) Start

func (p *AnyProxy) Start() error

func (*AnyProxy) Stop

func (p *AnyProxy) Stop() error

type ArpSpoofer

type ArpSpoofer struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewArpSpoofer

func NewArpSpoofer(s *session.Session) *ArpSpoofer

func (ArpSpoofer) Author

func (p ArpSpoofer) Author() string

func (*ArpSpoofer) Configure

func (p *ArpSpoofer) Configure() error

func (ArpSpoofer) Description

func (p ArpSpoofer) Description() string

func (ArpSpoofer) Name

func (p ArpSpoofer) Name() string

func (*ArpSpoofer) Start

func (p *ArpSpoofer) Start() error

func (*ArpSpoofer) Stop

func (p *ArpSpoofer) Stop() error

type BLERecon

type BLERecon struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewBLERecon

func NewBLERecon(s *session.Session) *BLERecon

func (BLERecon) Author

func (d BLERecon) Author() string

func (*BLERecon) Configure

func (d *BLERecon) Configure() (err error)

func (BLERecon) Description

func (d BLERecon) Description() string

func (BLERecon) Name

func (d BLERecon) Name() string

func (*BLERecon) Show

func (d *BLERecon) Show() error

func (*BLERecon) Start

func (d *BLERecon) Start() error

func (*BLERecon) Stop

func (d *BLERecon) Stop() error

type ByAddressSorter

type ByAddressSorter []*network.Endpoint

func (ByAddressSorter) Len

func (a ByAddressSorter) Len() int

func (ByAddressSorter) Less

func (a ByAddressSorter) Less(i, j int) bool

func (ByAddressSorter) Swap

func (a ByAddressSorter) Swap(i, j int)

type ByBLERSSISorter

type ByBLERSSISorter []*network.BLEDevice

func (ByBLERSSISorter) Len

func (a ByBLERSSISorter) Len() int

func (ByBLERSSISorter) Less

func (a ByBLERSSISorter) Less(i, j int) bool

func (ByBLERSSISorter) Swap

func (a ByBLERSSISorter) Swap(i, j int)

type ByBssidSorter

type ByBssidSorter []*network.Station

func (ByBssidSorter) Len

func (a ByBssidSorter) Len() int

func (ByBssidSorter) Less

func (a ByBssidSorter) Less(i, j int) bool

func (ByBssidSorter) Swap

func (a ByBssidSorter) Swap(i, j int)

type ByChannelSorter

type ByChannelSorter []*network.Station

func (ByChannelSorter) Len

func (a ByChannelSorter) Len() int

func (ByChannelSorter) Less

func (a ByChannelSorter) Less(i, j int) bool

func (ByChannelSorter) Swap

func (a ByChannelSorter) Swap(i, j int)

type ByClientsSorter

type ByClientsSorter []*network.Station

func (ByClientsSorter) Len

func (a ByClientsSorter) Len() int

func (ByClientsSorter) Less

func (a ByClientsSorter) Less(i, j int) bool

func (ByClientsSorter) Swap

func (a ByClientsSorter) Swap(i, j int)

type ByEncryptionSorter

type ByEncryptionSorter []*network.Station

func (ByEncryptionSorter) Len

func (a ByEncryptionSorter) Len() int

func (ByEncryptionSorter) Less

func (a ByEncryptionSorter) Less(i, j int) bool

func (ByEncryptionSorter) Swap

func (a ByEncryptionSorter) Swap(i, j int)

type ByEssidSorter

type ByEssidSorter []*network.Station

func (ByEssidSorter) Len

func (a ByEssidSorter) Len() int

func (ByEssidSorter) Less

func (a ByEssidSorter) Less(i, j int) bool

func (ByEssidSorter) Swap

func (a ByEssidSorter) Swap(i, j int)

type ByIpSorter

type ByIpSorter []*network.Endpoint

func (ByIpSorter) Len

func (a ByIpSorter) Len() int

func (ByIpSorter) Less

func (a ByIpSorter) Less(i, j int) bool

func (ByIpSorter) Swap

func (a ByIpSorter) Swap(i, j int)

type ByMacSorter

type ByMacSorter []*network.Endpoint

func (ByMacSorter) Len

func (a ByMacSorter) Len() int

func (ByMacSorter) Less

func (a ByMacSorter) Less(i, j int) bool

func (ByMacSorter) Swap

func (a ByMacSorter) Swap(i, j int)

type ByRSSISorter

type ByRSSISorter []*network.Station

func (ByRSSISorter) Len

func (a ByRSSISorter) Len() int

func (ByRSSISorter) Less

func (a ByRSSISorter) Less(i, j int) bool

func (ByRSSISorter) Swap

func (a ByRSSISorter) Swap(i, j int)

type ByRcvdSorter

type ByRcvdSorter []*network.Endpoint

func (ByRcvdSorter) Len

func (a ByRcvdSorter) Len() int

func (ByRcvdSorter) Less

func (a ByRcvdSorter) Less(i, j int) bool

func (ByRcvdSorter) Swap

func (a ByRcvdSorter) Swap(i, j int)

type BySeenSorter

type BySeenSorter []*network.Endpoint

func (BySeenSorter) Len

func (a BySeenSorter) Len() int

func (BySeenSorter) Less

func (a BySeenSorter) Less(i, j int) bool

func (BySeenSorter) Swap

func (a BySeenSorter) Swap(i, j int)

type BySentSorter

type BySentSorter []*network.Endpoint

func (BySentSorter) Len

func (a BySentSorter) Len() int

func (BySentSorter) Less

func (a BySentSorter) Less(i, j int) bool

func (BySentSorter) Swap

func (a BySentSorter) Swap(i, j int)

type ByWiFiRcvdSorter

type ByWiFiRcvdSorter []*network.Station

func (ByWiFiRcvdSorter) Len

func (a ByWiFiRcvdSorter) Len() int

func (ByWiFiRcvdSorter) Less

func (a ByWiFiRcvdSorter) Less(i, j int) bool

func (ByWiFiRcvdSorter) Swap

func (a ByWiFiRcvdSorter) Swap(i, j int)

type ByWiFiSeenSorter

type ByWiFiSeenSorter []*network.Station

func (ByWiFiSeenSorter) Len

func (a ByWiFiSeenSorter) Len() int

func (ByWiFiSeenSorter) Less

func (a ByWiFiSeenSorter) Less(i, j int) bool

func (ByWiFiSeenSorter) Swap

func (a ByWiFiSeenSorter) Swap(i, j int)

type ByWiFiSentSorter

type ByWiFiSentSorter []*network.Station

func (ByWiFiSentSorter) Len

func (a ByWiFiSentSorter) Len() int

func (ByWiFiSentSorter) Less

func (a ByWiFiSentSorter) Less(i, j int) bool

func (ByWiFiSentSorter) Swap

func (a ByWiFiSentSorter) Swap(i, j int)

type CapletsModule

type CapletsModule struct {
	session.SessionModule
}

func NewCapletsModule

func NewCapletsModule(s *session.Session) *CapletsModule

func (*CapletsModule) Author

func (c *CapletsModule) Author() string

func (*CapletsModule) Configure

func (c *CapletsModule) Configure() error

func (*CapletsModule) Description

func (c *CapletsModule) Description() string

func (*CapletsModule) Name

func (c *CapletsModule) Name() string

func (*CapletsModule) Paths

func (c *CapletsModule) Paths() error

func (*CapletsModule) Show

func (c *CapletsModule) Show() error

func (*CapletsModule) Start

func (c *CapletsModule) Start() error

func (*CapletsModule) Stop

func (c *CapletsModule) Stop() error

func (*CapletsModule) Update

func (c *CapletsModule) Update() error

type CommandRequest

type CommandRequest struct {
	Command string `json:"cmd"`
}

type CookieTracker

type CookieTracker struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewCookieTracker

func NewCookieTracker() *CookieTracker

func (*CookieTracker) Expire

func (t *CookieTracker) Expire(req *http.Request) *http.Response

func (*CookieTracker) IsClean

func (t *CookieTracker) IsClean(req *http.Request) bool

func (*CookieTracker) Track

func (t *CookieTracker) Track(req *http.Request)

type DHCP6Spoofer

type DHCP6Spoofer struct {
	session.SessionModule
	Handle     *pcap.Handle
	DUID       *dhcp6opts.DUIDLLT
	DUIDRaw    []byte
	Domains    []string
	RawDomains []byte
	// contains filtered or unexported fields
}

func NewDHCP6Spoofer

func NewDHCP6Spoofer(s *session.Session) *DHCP6Spoofer

func (DHCP6Spoofer) Author

func (s DHCP6Spoofer) Author() string

func (*DHCP6Spoofer) Configure

func (s *DHCP6Spoofer) Configure() error

func (DHCP6Spoofer) Description

func (s DHCP6Spoofer) Description() string

func (DHCP6Spoofer) Name

func (s DHCP6Spoofer) Name() string

func (*DHCP6Spoofer) Start

func (s *DHCP6Spoofer) Start() error

func (*DHCP6Spoofer) Stop

func (s *DHCP6Spoofer) Stop() error

type DNSSpoofer

type DNSSpoofer struct {
	session.SessionModule
	Handle *pcap.Handle
	Hosts  Hosts
	All    bool
	// contains filtered or unexported fields
}

func NewDNSSpoofer

func NewDNSSpoofer(s *session.Session) *DNSSpoofer

func (DNSSpoofer) Author

func (s DNSSpoofer) Author() string

func (*DNSSpoofer) Configure

func (s *DNSSpoofer) Configure() error

func (DNSSpoofer) Description

func (s DNSSpoofer) Description() string

func (DNSSpoofer) Name

func (s DNSSpoofer) Name() string

func (*DNSSpoofer) Start

func (s *DNSSpoofer) Start() error

func (*DNSSpoofer) Stop

func (s *DNSSpoofer) Stop() error

type Discovery

type Discovery struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewDiscovery

func NewDiscovery(s *session.Session) *Discovery

func (Discovery) Author

func (d Discovery) Author() string

func (*Discovery) Configure

func (d *Discovery) Configure() error

func (Discovery) Description

func (d Discovery) Description() string

func (Discovery) Name

func (d Discovery) Name() string

func (*Discovery) Show

func (d *Discovery) Show(arg string) (err error)

func (*Discovery) Start

func (d *Discovery) Start() error

func (*Discovery) Stop

func (d *Discovery) Stop() error

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) Configure

func (s *EventsStream) Configure() (err error)

func (EventsStream) Description

func (s EventsStream) Description() string

func (EventsStream) Name

func (s EventsStream) Name() string

func (*EventsStream) Show

func (s *EventsStream) Show(limit int) error

func (*EventsStream) Start

func (s *EventsStream) Start() error

func (*EventsStream) Stop

func (s *EventsStream) Stop() error

func (*EventsStream) View

func (s *EventsStream) View(e session.Event, refresh bool)

type GPS

type GPS struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewGPS

func NewGPS(s *session.Session) *GPS

func (*GPS) Author

func (gps *GPS) Author() string

func (*GPS) Configure

func (gps *GPS) Configure() (err error)

func (*GPS) Description

func (gps *GPS) Description() string

func (*GPS) Name

func (gps *GPS) Name() string

func (*GPS) Show

func (gps *GPS) Show() error

func (*GPS) Start

func (gps *GPS) Start() error

func (*GPS) Stop

func (gps *GPS) Stop() error

type HTTPProxy

type HTTPProxy struct {
	Name        string
	Address     string
	Server      *http.Server
	Redirection *firewall.Redirection
	Proxy       *goproxy.ProxyHttpServer
	Script      *HttpProxyScript
	CertFile    string
	KeyFile     string
	// contains filtered or unexported fields
}

func NewHTTPProxy

func NewHTTPProxy(s *session.Session) *HTTPProxy

func (*HTTPProxy) Configure

func (p *HTTPProxy) Configure(address string, proxyPort int, httpPort int, scriptPath string, jsToInject string, stripSSL bool) error

func (*HTTPProxy) ConfigureTLS

func (p *HTTPProxy) ConfigureTLS(address string, proxyPort int, httpPort int, scriptPath string, certFile string, keyFile string, jsToInject string, stripSSL bool) (err error)

func (*HTTPProxy) Start

func (p *HTTPProxy) Start()

func (*HTTPProxy) Stop

func (p *HTTPProxy) Stop() error

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 Host

type Host struct {
	Hostname string
	Address  net.IP
	Resolved sync.WaitGroup
}

func NewHost

func NewHost(name string) *Host

type HostEntry

type HostEntry struct {
	Host    string
	Suffix  string
	Expr    glob.Glob
	Address net.IP
}

func HostsFromFile

func HostsFromFile(filename string) (err error, entries []HostEntry)

func NewHostEntry

func NewHostEntry(host string, address net.IP) HostEntry

func (HostEntry) Matches

func (e HostEntry) Matches(host string) bool

type HostTracker

type HostTracker struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewHostTracker

func NewHostTracker() *HostTracker

func (*HostTracker) Track

func (t *HostTracker) Track(host, stripped string)

func (*HostTracker) Unstrip

func (t *HostTracker) Unstrip(stripped string) *Host

type Hosts

type Hosts []HostEntry

func (Hosts) Resolve

func (h Hosts) Resolve(host string) net.IP

type HttpProxy

type HttpProxy struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewHttpProxy

func NewHttpProxy(s *session.Session) *HttpProxy

func (*HttpProxy) Author

func (p *HttpProxy) Author() string

func (*HttpProxy) Configure

func (p *HttpProxy) Configure() error

func (*HttpProxy) Description

func (p *HttpProxy) Description() string

func (*HttpProxy) Name

func (p *HttpProxy) Name() string

func (*HttpProxy) Start

func (p *HttpProxy) Start() error

func (*HttpProxy) Stop

func (p *HttpProxy) Stop() error

type HttpProxyScript

type HttpProxyScript struct {
	*plugin.Plugin
	// contains filtered or unexported fields
}

func LoadHttpProxyScript

func LoadHttpProxyScript(path string, sess *session.Session) (err error, s *HttpProxyScript)

func (*HttpProxyScript) OnCommand

func (s *HttpProxyScript) OnCommand(cmd string) bool

func (*HttpProxyScript) OnRequest

func (s *HttpProxyScript) OnRequest(original *http.Request) (jsreq *JSRequest, jsres *JSResponse)

func (*HttpProxyScript) OnResponse

func (s *HttpProxyScript) OnResponse(res *http.Response) (jsreq *JSRequest, jsres *JSResponse)

type HttpServer

type HttpServer struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewHttpServer

func NewHttpServer(s *session.Session) *HttpServer

func (*HttpServer) Author

func (httpd *HttpServer) Author() string

func (*HttpServer) Configure

func (httpd *HttpServer) Configure() error

func (*HttpServer) Description

func (httpd *HttpServer) Description() string

func (*HttpServer) Name

func (httpd *HttpServer) Name() string

func (*HttpServer) Start

func (httpd *HttpServer) Start() error

func (*HttpServer) Stop

func (httpd *HttpServer) Stop() error

type HttpsProxy

type HttpsProxy struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewHttpsProxy

func NewHttpsProxy(s *session.Session) *HttpsProxy

func (*HttpsProxy) Author

func (p *HttpsProxy) Author() string

func (*HttpsProxy) Configure

func (p *HttpsProxy) Configure() error

func (*HttpsProxy) Description

func (p *HttpsProxy) Description() string

func (*HttpsProxy) Name

func (p *HttpsProxy) Name() string

func (*HttpsProxy) Start

func (p *HttpsProxy) Start() error

func (*HttpsProxy) Stop

func (p *HttpsProxy) Stop() error

type IgnoreFilter

type IgnoreFilter string

func (IgnoreFilter) Matches

func (f IgnoreFilter) Matches(s string) bool

type IgnoreList

type IgnoreList struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewIgnoreList

func NewIgnoreList() *IgnoreList

func (*IgnoreList) Add

func (l *IgnoreList) Add(expr string) (err error)

func (*IgnoreList) Empty

func (l *IgnoreList) Empty() bool

func (*IgnoreList) Filters

func (l *IgnoreList) Filters() []IgnoreFilter

func (*IgnoreList) Ignored

func (l *IgnoreList) Ignored(e session.Event) bool

func (*IgnoreList) Remove

func (l *IgnoreList) Remove(expr string) (err error)

type JSRequest

type JSRequest struct {
	Client      string
	Method      string
	Version     string
	Scheme      string
	Path        string
	Query       string
	Hostname    string
	ContentType string
	Headers     string
	Body        string
	// contains filtered or unexported fields
}

func NewJSRequest

func NewJSRequest(req *http.Request) *JSRequest

func (*JSRequest) GetHeader

func (j *JSRequest) GetHeader(name, deflt string) string

func (*JSRequest) NewHash

func (j *JSRequest) NewHash() string

func (*JSRequest) ParseForm

func (j *JSRequest) ParseForm() map[string]string

func (*JSRequest) ReadBody

func (j *JSRequest) ReadBody() string

func (*JSRequest) RemoveHeader

func (j *JSRequest) RemoveHeader(name string)

func (*JSRequest) SetHeader

func (j *JSRequest) SetHeader(name, value string)

func (*JSRequest) ToRequest

func (j *JSRequest) ToRequest() (req *http.Request)

func (*JSRequest) UpdateHash

func (j *JSRequest) UpdateHash()

func (*JSRequest) WasModified

func (j *JSRequest) WasModified() bool

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) ClearBody

func (j *JSResponse) ClearBody()

func (*JSResponse) GetHeader

func (j *JSResponse) GetHeader(name, deflt string) string

func (*JSResponse) NewHash

func (j *JSResponse) NewHash() string

func (*JSResponse) ReadBody

func (j *JSResponse) ReadBody() string

func (*JSResponse) RemoveHeader

func (j *JSResponse) RemoveHeader(name string)

func (*JSResponse) SetHeader

func (j *JSResponse) SetHeader(name, value string)

func (*JSResponse) ToResponse

func (j *JSResponse) ToResponse(req *http.Request) (resp *http.Response)

func (*JSResponse) UpdateHash

func (j *JSResponse) UpdateHash()

func (*JSResponse) WasModified

func (j *JSResponse) WasModified() bool

type JSSessionRequest

type JSSessionRequest struct {
	Command string `json:"cmd"`
}

type JSSessionResponse

type JSSessionResponse struct {
	Error string `json:"error"`
}

type MacChanger

type MacChanger struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewMacChanger

func NewMacChanger(s *session.Session) *MacChanger

func (*MacChanger) Author

func (mc *MacChanger) Author() string

func (*MacChanger) Configure

func (mc *MacChanger) Configure() (err error)

func (*MacChanger) Description

func (mc *MacChanger) Description() string

func (*MacChanger) Name

func (mc *MacChanger) Name() string

func (*MacChanger) Start

func (mc *MacChanger) Start() error

func (*MacChanger) Stop

func (mc *MacChanger) Stop() error

type MySQLServer

type MySQLServer struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewMySQLServer

func NewMySQLServer(s *session.Session) *MySQLServer

func (*MySQLServer) Author

func (mysql *MySQLServer) Author() string

func (*MySQLServer) Configure

func (mysql *MySQLServer) Configure() error

func (*MySQLServer) Description

func (mysql *MySQLServer) Description() string

func (*MySQLServer) Name

func (mysql *MySQLServer) Name() string

func (*MySQLServer) Start

func (mysql *MySQLServer) Start() error

func (*MySQLServer) Stop

func (mysql *MySQLServer) Stop() error

type PacketProxy

type PacketProxy struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewPacketProxy

func NewPacketProxy(s *session.Session) *PacketProxy

func (PacketProxy) Author

func (pp PacketProxy) Author() string

func (*PacketProxy) Configure

func (pp *PacketProxy) Configure() (err error)

func (PacketProxy) Description

func (pp PacketProxy) Description() string

func (PacketProxy) Name

func (pp PacketProxy) Name() string

func (*PacketProxy) Start

func (pp *PacketProxy) Start() error

func (*PacketProxy) Stop

func (pp *PacketProxy) Stop() error

type Prober

type Prober struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewProber

func NewProber(s *session.Session) *Prober

func (Prober) Author

func (p Prober) Author() string

func (*Prober) Configure

func (p *Prober) Configure() error

func (Prober) Description

func (p Prober) Description() string

func (Prober) Name

func (p Prober) Name() string

func (*Prober) Start

func (p *Prober) Start() error

func (*Prober) Stop

func (p *Prober) Stop() error

type Probes

type Probes struct {
	NBNS bool
	MDNS bool
	UPNP bool
	WSD  bool
}

type ProtoPair

type ProtoPair struct {
	Protocol string
	Hits     uint64
}

type ProtoPairList

type ProtoPairList []ProtoPair

func (ProtoPairList) Len

func (p ProtoPairList) Len() int

func (ProtoPairList) Less

func (p ProtoPairList) Less(i, j int) bool

func (ProtoPairList) Swap

func (p ProtoPairList) Swap(i, j int)

type RestAPI

type RestAPI struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewRestAPI

func NewRestAPI(s *session.Session) *RestAPI

func (*RestAPI) Author

func (api *RestAPI) Author() string

func (*RestAPI) Configure

func (api *RestAPI) Configure() error

func (*RestAPI) Description

func (api *RestAPI) Description() string

func (*RestAPI) Name

func (api *RestAPI) Name() string

func (*RestAPI) Start

func (api *RestAPI) Start() error

func (*RestAPI) Stop

func (api *RestAPI) Stop() error

type SSLStripper

type SSLStripper struct {
	// contains filtered or unexported fields
}

func NewSSLStripper

func NewSSLStripper(s *session.Session, enabled bool) *SSLStripper

func (*SSLStripper) Enable

func (s *SSLStripper) Enable(enabled bool)

func (*SSLStripper) Enabled

func (s *SSLStripper) Enabled() bool

func (*SSLStripper) Preprocess

func (s *SSLStripper) Preprocess(req *http.Request, ctx *goproxy.ProxyCtx) (redir *http.Response)

sslstrip preprocessing, takes care of:

- handling stripped domains - making unknown session cookies expire

func (*SSLStripper) Process

func (s *SSLStripper) Process(res *http.Response, ctx *goproxy.ProxyCtx)

type SniffData

type SniffData map[string]interface{}

type Sniffer

type Sniffer struct {
	session.SessionModule
	Stats *SnifferStats
	Ctx   *SnifferContext
	// contains filtered or unexported fields
}

func NewSniffer

func NewSniffer(s *session.Session) *Sniffer

func (Sniffer) Author

func (s Sniffer) Author() string

func (*Sniffer) Configure

func (s *Sniffer) Configure() error

func (Sniffer) Description

func (s Sniffer) Description() string

func (*Sniffer) GetContext

func (s *Sniffer) GetContext() (error, *SnifferContext)

func (Sniffer) Name

func (s Sniffer) Name() string

func (*Sniffer) Start

func (s *Sniffer) Start() error

func (*Sniffer) StartFuzzing

func (s *Sniffer) StartFuzzing() error

func (*Sniffer) Stop

func (s *Sniffer) Stop() error

func (*Sniffer) StopFuzzing

func (s *Sniffer) StopFuzzing() error

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 NewSnifferEvent(t time.Time, proto string, src string, dst string, data interface{}, format string, args ...interface{}) SnifferEvent

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

type SynScanEvent

type SynScanEvent struct {
	Address string
	Host    *network.Endpoint
	Port    int
}

func NewSynScanEvent

func NewSynScanEvent(address string, h *network.Endpoint, port int) SynScanEvent

func (SynScanEvent) Push

func (e SynScanEvent) Push()

type SynScanner

type SynScanner struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewSynScanner

func NewSynScanner(s *session.Session) *SynScanner

func (*SynScanner) Author

func (s *SynScanner) Author() string

func (*SynScanner) Configure

func (s *SynScanner) Configure() error

func (*SynScanner) Description

func (s *SynScanner) Description() string

func (*SynScanner) Name

func (s *SynScanner) Name() string

func (*SynScanner) Start

func (s *SynScanner) Start() error

func (*SynScanner) Stop

func (s *SynScanner) Stop() error

type TcpProxy

type TcpProxy struct {
	session.SessionModule
	Redirection *firewall.Redirection
	// contains filtered or unexported fields
}

func NewTcpProxy

func NewTcpProxy(s *session.Session) *TcpProxy

func (*TcpProxy) Author

func (p *TcpProxy) Author() string

func (*TcpProxy) Configure

func (p *TcpProxy) Configure() error

func (*TcpProxy) Description

func (p *TcpProxy) Description() string

func (*TcpProxy) Name

func (p *TcpProxy) Name() string

func (*TcpProxy) Start

func (p *TcpProxy) Start() error

func (*TcpProxy) Stop

func (p *TcpProxy) Stop() error

type TcpProxyScript

type TcpProxyScript struct {
	*plugin.Plugin
	// contains filtered or unexported fields
}

func LoadTcpProxyScript

func LoadTcpProxyScript(path string, sess *session.Session) (err error, s *TcpProxyScript)

func (*TcpProxyScript) OnData

func (s *TcpProxyScript) OnData(from, to net.Addr, data []byte) []byte

type Ticker

type Ticker struct {
	session.SessionModule
	Period   time.Duration
	Commands []string
}

func NewTicker

func NewTicker(s *session.Session) *Ticker

func (*Ticker) Author

func (t *Ticker) Author() string

func (*Ticker) Configure

func (t *Ticker) Configure() error

func (*Ticker) Description

func (t *Ticker) Description() string

func (*Ticker) Name

func (t *Ticker) Name() string

func (*Ticker) Start

func (t *Ticker) Start() error

func (*Ticker) Stop

func (t *Ticker) Stop() error

type UpdateModule

type UpdateModule struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewUpdateModule

func NewUpdateModule(s *session.Session) *UpdateModule

func (*UpdateModule) Author

func (u *UpdateModule) Author() string

func (*UpdateModule) Configure

func (u *UpdateModule) Configure() error

func (*UpdateModule) Description

func (u *UpdateModule) Description() string

func (*UpdateModule) Name

func (u *UpdateModule) Name() string

func (*UpdateModule) Start

func (u *UpdateModule) Start() error

func (*UpdateModule) Stop

func (u *UpdateModule) Stop() error

type ViewSelector

type ViewSelector struct {
	Filter string

	Expression *regexp.Regexp

	SortField  string
	Sort       string
	SortSymbol string

	Limit int
	// contains filtered or unexported fields
}

func ViewSelectorFor

func ViewSelectorFor(m *session.SessionModule, prefix string, sortFields []string, defExpression string) *ViewSelector

func (*ViewSelector) Update

func (s *ViewSelector) Update() (err error)

type WOL

type WOL struct {
	session.SessionModule
}

func NewWOL

func NewWOL(s *session.Session) *WOL

func (*WOL) Author

func (w *WOL) Author() string

func (*WOL) Configure

func (w *WOL) Configure() error

func (*WOL) Description

func (w *WOL) Description() string

func (*WOL) Name

func (w *WOL) Name() string

func (*WOL) Start

func (w *WOL) Start() error

func (*WOL) Stop

func (w *WOL) Stop() error

type WiFiModule

type WiFiModule struct {
	session.SessionModule
	// contains filtered or unexported fields
}

func NewWiFiModule

func NewWiFiModule(s *session.Session) *WiFiModule

func (WiFiModule) Author

func (w WiFiModule) Author() string

func (*WiFiModule) Configure

func (w *WiFiModule) Configure() error

func (WiFiModule) Description

func (w WiFiModule) Description() string

func (WiFiModule) Name

func (w WiFiModule) Name() string

func (*WiFiModule) Show

func (w *WiFiModule) Show() (err error)

func (*WiFiModule) ShowWPS

func (w *WiFiModule) ShowWPS(bssid string) (err error)

func (*WiFiModule) Start

func (w *WiFiModule) Start() error

func (*WiFiModule) Stop

func (w *WiFiModule) Stop() error

type WiFiProbe

type WiFiProbe struct {
	FromAddr   net.HardwareAddr
	FromVendor string
	FromAlias  string
	SSID       string
	RSSI       int8
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL