Documentation ¶
Overview ¶
Package modules contains session modules.
Index ¶
- Variables
- func TLSConfigFromCA(ca *tls.Certificate) func(host string, ctx *goproxy.ProxyCtx) (*tls.Config, error)
- type APIResponse
- type ArpSpoofer
- type BLERecon
- type ByAddressSorter
- type ByBLERSSISorter
- type ByChannelSorter
- type ByEssidSorter
- type ByRSSISorter
- type ByRcvdSorter
- type BySeenSorter
- type BySentSorter
- type ByWiFiSeenSorter
- type CommandRequest
- type CookieTracker
- type DHCP6Spoofer
- type DNSSpoofer
- type Discovery
- type EventsStream
- func (s EventsStream) Author() string
- func (s *EventsStream) Configure() (err error)
- func (s EventsStream) Description() string
- func (s EventsStream) Name() string
- func (s *EventsStream) Show(limit int) error
- func (s *EventsStream) Start() error
- func (s *EventsStream) Stop() error
- func (s *EventsStream) View(e session.Event, refresh bool)
- type GPS
- type HTTPProxy
- type Host
- type HostTracker
- type HttpProxy
- type HttpProxyScript
- type HttpServer
- type HttpsProxy
- type IgnoreFilter
- type IgnoreList
- type JSHeader
- type JSRequest
- func (j *JSRequest) GetHeader(name, deflt string) string
- func (j *JSRequest) NewHash() string
- func (j *JSRequest) ParseForm() map[string]string
- func (j *JSRequest) ReadBody() string
- func (j *JSRequest) RemoveHeader(name string)
- func (j *JSRequest) SetHeader(name, value string)
- func (j *JSRequest) ToRequest() (req *http.Request)
- func (j *JSRequest) UpdateHash()
- func (j *JSRequest) WasModified() bool
- type JSResponse
- func (j *JSResponse) GetHeader(name, deflt string) string
- func (j *JSResponse) NewHash() string
- func (j *JSResponse) ReadBody() string
- func (j *JSResponse) RemoveHeader(name string)
- func (j *JSResponse) SetHeader(name, value string)
- func (j *JSResponse) ToResponse(req *http.Request) (resp *http.Response)
- func (j *JSResponse) UpdateHash()
- func (j *JSResponse) WasModified() bool
- type JSSessionRequest
- type JSSessionResponse
- type MacChanger
- type Prober
- type ProtoPair
- type ProtoPairList
- type ProxyScript
- type RestAPI
- type SSLStripper
- type SniffData
- type Sniffer
- type SnifferContext
- type SnifferEvent
- type SnifferStats
- type SynScanEvent
- type SynScanner
- type TcpProxy
- type TcpProxyScript
- type Ticker
- type UpdateModule
- type WOL
- type WiFiModule
- type WiFiProbe
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type APIResponse ¶
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 }
type ByAddressSorter ¶
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 ¶
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 ByChannelSorter ¶
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 ByEssidSorter ¶
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 ByRSSISorter ¶
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 ¶
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 ¶
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 ¶
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 ByWiFiSeenSorter ¶
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 CookieTracker ¶
func NewCookieTracker ¶
func NewCookieTracker() *CookieTracker
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 Domains []string Address net.IP 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
}
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 }
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 (*HTTPProxy) Configure ¶
func (*HTTPProxy) ConfigureTLS ¶
type Host ¶
type HostTracker ¶
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 HttpProxy ¶
type HttpProxy struct { session.SessionModule // contains filtered or unexported fields }
type HttpProxyScript ¶
type HttpProxyScript struct { *ProxyScript // contains filtered or unexported fields }
func LoadHttpProxyScript ¶
func LoadHttpProxyScript(path string, sess *session.Session) (err error, s *HttpProxyScript)
func LoadHttpProxyScriptSource ¶
func LoadHttpProxyScriptSource(path, source 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 ¶
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 JSResponse ¶
type JSResponse struct { Status int ContentType string Headers []JSHeader Body string // contains filtered or unexported fields }
func NewJSResponse ¶
func NewJSResponse(res *http.Response) *JSResponse
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 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 Prober ¶
type Prober struct { session.SessionModule // contains filtered or unexported fields }
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 ProxyScript ¶
type ProxyScript struct { sync.Mutex Path string Source string VM *otto.Otto // contains filtered or unexported fields }
type RestAPI ¶
type RestAPI struct { session.SessionModule // contains filtered or unexported fields }
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 ¶
sslstrip preprocessing, takes care of:
- patching / removing security related headers - handling stripped domains - making unknown session cookies expire
type Sniffer ¶
type Sniffer struct { session.SessionModule Stats *SnifferStats Ctx *SnifferContext // contains filtered or unexported fields }
func (*Sniffer) GetContext ¶
func (s *Sniffer) GetContext() (error, *SnifferContext)
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 Protocol string Source string Destination string Message string Data interface{} }
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
type SynScanEvent ¶
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 }
type TcpProxyScript ¶
type TcpProxyScript struct { *ProxyScript // contains filtered or unexported fields }
func LoadTcpProxyScript ¶
func LoadTcpProxyScript(path string, sess *session.Session) (err error, s *TcpProxyScript)
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 WOL ¶
type WOL struct {
session.SessionModule
}
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(by string) error
func (*WiFiModule) Start ¶
func (w *WiFiModule) Start() error
func (*WiFiModule) Stop ¶
func (w *WiFiModule) Stop() error
Source Files ¶
- api_rest.go
- api_rest_controller.go
- api_rest_ws.go
- arp_spoof.go
- base_proxy_script.go
- ble_options_linux.go
- ble_recon.go
- ble_recon_sort.go
- ble_recon_view.go
- dhcp6_spoof.go
- dns_spoof.go
- doc.go
- events_ignore_list.go
- events_stream.go
- events_view.go
- events_view_ble.go
- gps.go
- http_proxy.go
- http_proxy_base.go
- http_proxy_base_cookietracker.go
- http_proxy_base_filters.go
- http_proxy_base_hosttracker.go
- http_proxy_base_sslstriper.go
- http_proxy_cert_cache.go
- http_proxy_js_request.go
- http_proxy_js_response.go
- http_proxy_script.go
- http_server.go
- https_proxy.go
- mac_changer.go
- net_probe.go
- net_probe_udp.go
- net_recon.go
- net_recon_show.go
- net_recon_sort.go
- net_sniff.go
- net_sniff_context.go
- net_sniff_dns.go
- net_sniff_dot11.go
- net_sniff_event.go
- net_sniff_http.go
- net_sniff_krb5.go
- net_sniff_ntlm.go
- net_sniff_parsers.go
- net_sniff_sni.go
- net_sniff_stats.go
- net_sniff_views.go
- syn_scan.go
- syn_scan_event.go
- tcp_proxy.go
- tcp_proxy_script.go
- ticker.go
- update.go
- utils.go
- wifi.go
- wifi_ap.go
- wifi_deauth.go
- wifi_hopping.go
- wifi_recon.go
- wifi_recon_sort.go
- wifi_show.go
- wol.go
Click to show internal directories.
Click to hide internal directories.