bettercap: github.com/bettercap/bettercap/modules Index | Files

package modules

import "github.com/bettercap/bettercap/modules"

Package modules contains session modules.

Index

Package Files

any_proxy.go api_rest.go api_rest_controller.go api_rest_ws.go arp_spoof.go ble_options_linux.go ble_recon.go ble_recon_events.go ble_recon_sort.go ble_recon_view.go caplets.go dhcp6_spoof.go dns_spoof.go dns_spoof_hosts.go doc.go events_ignore_list.go events_stream.go events_view.go events_view_ble.go events_view_http.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 mysql_server.go net_probe.go net_probe_mdns.go net_probe_nbns.go net_probe_upnp.go net_probe_wsd.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_mdns.go net_sniff_ntlm.go net_sniff_parsers.go net_sniff_sni.go net_sniff_stats.go net_sniff_upnp.go net_sniff_views.go packet_proxy_linux_amd64.go script_builtins.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

Variables

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

func TLSConfigFromCA Uses

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

type APIResponse Uses

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

type AnyProxy Uses

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

func NewAnyProxy Uses

func NewAnyProxy(s *session.Session) *AnyProxy

func (*AnyProxy) Author Uses

func (p *AnyProxy) Author() string

func (*AnyProxy) Configure Uses

func (p *AnyProxy) Configure() error

func (*AnyProxy) Description Uses

func (p *AnyProxy) Description() string

func (*AnyProxy) Name Uses

func (p *AnyProxy) Name() string

func (*AnyProxy) Start Uses

func (p *AnyProxy) Start() error

func (*AnyProxy) Stop Uses

func (p *AnyProxy) Stop() error

type ArpSpoofer Uses

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

func NewArpSpoofer Uses

func NewArpSpoofer(s *session.Session) *ArpSpoofer

func (ArpSpoofer) Author Uses

func (p ArpSpoofer) Author() string

func (*ArpSpoofer) Configure Uses

func (p *ArpSpoofer) Configure() error

func (ArpSpoofer) Description Uses

func (p ArpSpoofer) Description() string

func (ArpSpoofer) Name Uses

func (p ArpSpoofer) Name() string

func (*ArpSpoofer) Start Uses

func (p *ArpSpoofer) Start() error

func (*ArpSpoofer) Stop Uses

func (p *ArpSpoofer) Stop() error

type BLERecon Uses

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

func NewBLERecon Uses

func NewBLERecon(s *session.Session) *BLERecon

func (BLERecon) Author Uses

func (d BLERecon) Author() string

func (*BLERecon) Configure Uses

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

func (BLERecon) Description Uses

func (d BLERecon) Description() string

func (BLERecon) Name Uses

func (d BLERecon) Name() string

func (*BLERecon) Show Uses

func (d *BLERecon) Show() error

func (*BLERecon) Start Uses

func (d *BLERecon) Start() error

func (*BLERecon) Stop Uses

func (d *BLERecon) Stop() error

type ByAddressSorter Uses

type ByAddressSorter []*network.Endpoint

func (ByAddressSorter) Len Uses

func (a ByAddressSorter) Len() int

func (ByAddressSorter) Less Uses

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

func (ByAddressSorter) Swap Uses

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

type ByBLERSSISorter Uses

type ByBLERSSISorter []*network.BLEDevice

func (ByBLERSSISorter) Len Uses

func (a ByBLERSSISorter) Len() int

func (ByBLERSSISorter) Less Uses

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

func (ByBLERSSISorter) Swap Uses

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

type ByChannelSorter Uses

type ByChannelSorter []*network.Station

func (ByChannelSorter) Len Uses

func (a ByChannelSorter) Len() int

func (ByChannelSorter) Less Uses

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

func (ByChannelSorter) Swap Uses

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

type ByEssidSorter Uses

type ByEssidSorter []*network.Station

func (ByEssidSorter) Len Uses

func (a ByEssidSorter) Len() int

func (ByEssidSorter) Less Uses

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

func (ByEssidSorter) Swap Uses

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

type ByRSSISorter Uses

type ByRSSISorter []*network.Station

func (ByRSSISorter) Len Uses

func (a ByRSSISorter) Len() int

func (ByRSSISorter) Less Uses

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

func (ByRSSISorter) Swap Uses

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

type ByRcvdSorter Uses

type ByRcvdSorter []*network.Endpoint

func (ByRcvdSorter) Len Uses

func (a ByRcvdSorter) Len() int

func (ByRcvdSorter) Less Uses

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

func (ByRcvdSorter) Swap Uses

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

type BySeenSorter Uses

type BySeenSorter []*network.Endpoint

func (BySeenSorter) Len Uses

func (a BySeenSorter) Len() int

func (BySeenSorter) Less Uses

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

func (BySeenSorter) Swap Uses

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

type BySentSorter Uses

type BySentSorter []*network.Endpoint

func (BySentSorter) Len Uses

func (a BySentSorter) Len() int

func (BySentSorter) Less Uses

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

func (BySentSorter) Swap Uses

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

type ByWiFiSeenSorter Uses

type ByWiFiSeenSorter []*network.Station

func (ByWiFiSeenSorter) Len Uses

func (a ByWiFiSeenSorter) Len() int

func (ByWiFiSeenSorter) Less Uses

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

func (ByWiFiSeenSorter) Swap Uses

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

type CapletsModule Uses

type CapletsModule struct {
    session.SessionModule
}

func NewCapletsModule Uses

func NewCapletsModule(s *session.Session) *CapletsModule

func (*CapletsModule) Author Uses

func (c *CapletsModule) Author() string

func (*CapletsModule) Configure Uses

func (c *CapletsModule) Configure() error

func (*CapletsModule) Description Uses

func (c *CapletsModule) Description() string

func (*CapletsModule) Name Uses

func (c *CapletsModule) Name() string

func (*CapletsModule) Paths Uses

func (c *CapletsModule) Paths() error

func (*CapletsModule) Show Uses

func (c *CapletsModule) Show() error

func (*CapletsModule) Start Uses

func (c *CapletsModule) Start() error

func (*CapletsModule) Stop Uses

func (c *CapletsModule) Stop() error

func (*CapletsModule) Update Uses

func (c *CapletsModule) Update() error

type CommandRequest Uses

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

type CookieTracker Uses

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

func NewCookieTracker Uses

func NewCookieTracker() *CookieTracker

func (*CookieTracker) Expire Uses

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

func (*CookieTracker) IsClean Uses

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

func (*CookieTracker) Track Uses

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

type DHCP6Spoofer Uses

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

func NewDHCP6Spoofer Uses

func NewDHCP6Spoofer(s *session.Session) *DHCP6Spoofer

func (DHCP6Spoofer) Author Uses

func (s DHCP6Spoofer) Author() string

func (*DHCP6Spoofer) Configure Uses

func (s *DHCP6Spoofer) Configure() error

func (DHCP6Spoofer) Description Uses

func (s DHCP6Spoofer) Description() string

func (DHCP6Spoofer) Name Uses

func (s DHCP6Spoofer) Name() string

func (*DHCP6Spoofer) Start Uses

func (s *DHCP6Spoofer) Start() error

func (*DHCP6Spoofer) Stop Uses

func (s *DHCP6Spoofer) Stop() error

type DNSSpoofer Uses

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

func NewDNSSpoofer Uses

func NewDNSSpoofer(s *session.Session) *DNSSpoofer

func (DNSSpoofer) Author Uses

func (s DNSSpoofer) Author() string

func (*DNSSpoofer) Configure Uses

func (s *DNSSpoofer) Configure() error

func (DNSSpoofer) Description Uses

func (s DNSSpoofer) Description() string

func (DNSSpoofer) Name Uses

func (s DNSSpoofer) Name() string

func (*DNSSpoofer) Start Uses

func (s *DNSSpoofer) Start() error

func (*DNSSpoofer) Stop Uses

func (s *DNSSpoofer) Stop() error

type Discovery Uses

type Discovery struct {
    session.SessionModule
}

func NewDiscovery Uses

func NewDiscovery(s *session.Session) *Discovery

func (Discovery) Author Uses

func (d Discovery) Author() string

func (*Discovery) Configure Uses

func (d *Discovery) Configure() error

func (Discovery) Description Uses

func (d Discovery) Description() string

func (Discovery) Name Uses

func (d Discovery) Name() string

func (*Discovery) Show Uses

func (d *Discovery) Show(by string, expr string) (err error)

func (*Discovery) Start Uses

func (d *Discovery) Start() error

func (*Discovery) Stop Uses

func (d *Discovery) Stop() error

type EventsStream Uses

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

func NewEventsStream Uses

func NewEventsStream(s *session.Session) *EventsStream

func (EventsStream) Author Uses

func (s EventsStream) Author() string

func (*EventsStream) Configure Uses

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

func (EventsStream) Description Uses

func (s EventsStream) Description() string

func (EventsStream) Name Uses

func (s EventsStream) Name() string

func (*EventsStream) Show Uses

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

func (*EventsStream) Start Uses

func (s *EventsStream) Start() error

func (*EventsStream) Stop Uses

func (s *EventsStream) Stop() error

func (*EventsStream) View Uses

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

type GPS Uses

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

func NewGPS Uses

func NewGPS(s *session.Session) *GPS

func (*GPS) Author Uses

func (gps *GPS) Author() string

func (*GPS) Configure Uses

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

func (*GPS) Description Uses

func (gps *GPS) Description() string

func (*GPS) Name Uses

func (gps *GPS) Name() string

func (*GPS) Show Uses

func (gps *GPS) Show() error

func (*GPS) Start Uses

func (gps *GPS) Start() error

func (*GPS) Stop Uses

func (gps *GPS) Stop() error

type HTTPProxy Uses

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 Uses

func NewHTTPProxy(s *session.Session) *HTTPProxy

func (*HTTPProxy) Configure Uses

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

func (*HTTPProxy) ConfigureTLS Uses

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 Uses

func (p *HTTPProxy) Start()

func (*HTTPProxy) Stop Uses

func (p *HTTPProxy) Stop() error

type HTTPRequest Uses

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 Uses

func (r HTTPRequest) IsType(ctype string) bool

type HTTPResponse Uses

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 Uses

func (r HTTPResponse) IsType(ctype string) bool

type Host Uses

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

func NewHost Uses

func NewHost(name string) *Host

type HostEntry Uses

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

func HostsFromFile Uses

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

func NewHostEntry Uses

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

func (HostEntry) Matches Uses

func (e HostEntry) Matches(host string) bool

type HostTracker Uses

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

func NewHostTracker Uses

func NewHostTracker() *HostTracker

func (*HostTracker) Track Uses

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

func (*HostTracker) Unstrip Uses

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

type Hosts Uses

type Hosts []HostEntry

func (Hosts) Resolve Uses

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

type HttpProxy Uses

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

func NewHttpProxy Uses

func NewHttpProxy(s *session.Session) *HttpProxy

func (*HttpProxy) Author Uses

func (p *HttpProxy) Author() string

func (*HttpProxy) Configure Uses

func (p *HttpProxy) Configure() error

func (*HttpProxy) Description Uses

func (p *HttpProxy) Description() string

func (*HttpProxy) Name Uses

func (p *HttpProxy) Name() string

func (*HttpProxy) Start Uses

func (p *HttpProxy) Start() error

func (*HttpProxy) Stop Uses

func (p *HttpProxy) Stop() error

type HttpProxyScript Uses

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

func LoadHttpProxyScript Uses

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

func (*HttpProxyScript) OnCommand Uses

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

func (*HttpProxyScript) OnRequest Uses

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

func (*HttpProxyScript) OnResponse Uses

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

type HttpServer Uses

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

func NewHttpServer Uses

func NewHttpServer(s *session.Session) *HttpServer

func (*HttpServer) Author Uses

func (httpd *HttpServer) Author() string

func (*HttpServer) Configure Uses

func (httpd *HttpServer) Configure() error

func (*HttpServer) Description Uses

func (httpd *HttpServer) Description() string

func (*HttpServer) Name Uses

func (httpd *HttpServer) Name() string

func (*HttpServer) Start Uses

func (httpd *HttpServer) Start() error

func (*HttpServer) Stop Uses

func (httpd *HttpServer) Stop() error

type HttpsProxy Uses

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

func NewHttpsProxy Uses

func NewHttpsProxy(s *session.Session) *HttpsProxy

func (*HttpsProxy) Author Uses

func (p *HttpsProxy) Author() string

func (*HttpsProxy) Configure Uses

func (p *HttpsProxy) Configure() error

func (*HttpsProxy) Description Uses

func (p *HttpsProxy) Description() string

func (*HttpsProxy) Name Uses

func (p *HttpsProxy) Name() string

func (*HttpsProxy) Start Uses

func (p *HttpsProxy) Start() error

func (*HttpsProxy) Stop Uses

func (p *HttpsProxy) Stop() error

type IgnoreFilter Uses

type IgnoreFilter string

func (IgnoreFilter) Matches Uses

func (f IgnoreFilter) Matches(s string) bool

type IgnoreList Uses

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

func NewIgnoreList Uses

func NewIgnoreList() *IgnoreList

func (*IgnoreList) Add Uses

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

func (*IgnoreList) Empty Uses

func (l *IgnoreList) Empty() bool

func (*IgnoreList) Filters Uses

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

func (*IgnoreList) Ignored Uses

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

func (*IgnoreList) Remove Uses

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

type JSRequest Uses

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 Uses

func NewJSRequest(req *http.Request) *JSRequest

func (*JSRequest) GetHeader Uses

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

func (*JSRequest) NewHash Uses

func (j *JSRequest) NewHash() string

func (*JSRequest) ParseForm Uses

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

func (*JSRequest) ReadBody Uses

func (j *JSRequest) ReadBody() string

func (*JSRequest) RemoveHeader Uses

func (j *JSRequest) RemoveHeader(name string)

func (*JSRequest) SetHeader Uses

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

func (*JSRequest) ToRequest Uses

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

func (*JSRequest) UpdateHash Uses

func (j *JSRequest) UpdateHash()

func (*JSRequest) WasModified Uses

func (j *JSRequest) WasModified() bool

type JSResponse Uses

type JSResponse struct {
    Status      int
    ContentType string
    Headers     string
    Body        string
    // contains filtered or unexported fields
}

func NewJSResponse Uses

func NewJSResponse(res *http.Response) *JSResponse

func (*JSResponse) ClearBody Uses

func (j *JSResponse) ClearBody()

func (*JSResponse) GetHeader Uses

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

func (*JSResponse) NewHash Uses

func (j *JSResponse) NewHash() string

func (*JSResponse) ReadBody Uses

func (j *JSResponse) ReadBody() string

func (*JSResponse) RemoveHeader Uses

func (j *JSResponse) RemoveHeader(name string)

func (*JSResponse) SetHeader Uses

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

func (*JSResponse) ToResponse Uses

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

func (*JSResponse) UpdateHash Uses

func (j *JSResponse) UpdateHash()

func (*JSResponse) WasModified Uses

func (j *JSResponse) WasModified() bool

type JSSessionRequest Uses

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

type JSSessionResponse Uses

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

type MacChanger Uses

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

func NewMacChanger Uses

func NewMacChanger(s *session.Session) *MacChanger

func (*MacChanger) Author Uses

func (mc *MacChanger) Author() string

func (*MacChanger) Configure Uses

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

func (*MacChanger) Description Uses

func (mc *MacChanger) Description() string

func (*MacChanger) Name Uses

func (mc *MacChanger) Name() string

func (*MacChanger) Start Uses

func (mc *MacChanger) Start() error

func (*MacChanger) Stop Uses

func (mc *MacChanger) Stop() error

type MySQLServer Uses

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

func NewMySQLServer Uses

func NewMySQLServer(s *session.Session) *MySQLServer

func (*MySQLServer) Author Uses

func (mysql *MySQLServer) Author() string

func (*MySQLServer) Configure Uses

func (mysql *MySQLServer) Configure() error

func (*MySQLServer) Description Uses

func (mysql *MySQLServer) Description() string

func (*MySQLServer) Name Uses

func (mysql *MySQLServer) Name() string

func (*MySQLServer) Start Uses

func (mysql *MySQLServer) Start() error

func (*MySQLServer) Stop Uses

func (mysql *MySQLServer) Stop() error

type PacketProxy Uses

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

func NewPacketProxy Uses

func NewPacketProxy(s *session.Session) *PacketProxy

func (PacketProxy) Author Uses

func (pp PacketProxy) Author() string

func (*PacketProxy) Configure Uses

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

func (PacketProxy) Description Uses

func (pp PacketProxy) Description() string

func (PacketProxy) Name Uses

func (pp PacketProxy) Name() string

func (*PacketProxy) Start Uses

func (pp *PacketProxy) Start() error

func (*PacketProxy) Stop Uses

func (pp *PacketProxy) Stop() error

type Prober Uses

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

func NewProber Uses

func NewProber(s *session.Session) *Prober

func (Prober) Author Uses

func (p Prober) Author() string

func (*Prober) Configure Uses

func (p *Prober) Configure() error

func (Prober) Description Uses

func (p Prober) Description() string

func (Prober) Name Uses

func (p Prober) Name() string

func (*Prober) Start Uses

func (p *Prober) Start() error

func (*Prober) Stop Uses

func (p *Prober) Stop() error

type Probes Uses

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

type ProtoPair Uses

type ProtoPair struct {
    Protocol string
    Hits     uint64
}

type ProtoPairList Uses

type ProtoPairList []ProtoPair

func (ProtoPairList) Len Uses

func (p ProtoPairList) Len() int

func (ProtoPairList) Less Uses

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

func (ProtoPairList) Swap Uses

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

type RestAPI Uses

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

func NewRestAPI Uses

func NewRestAPI(s *session.Session) *RestAPI

func (*RestAPI) Author Uses

func (api *RestAPI) Author() string

func (*RestAPI) Configure Uses

func (api *RestAPI) Configure() error

func (*RestAPI) Description Uses

func (api *RestAPI) Description() string

func (*RestAPI) Name Uses

func (api *RestAPI) Name() string

func (*RestAPI) Start Uses

func (api *RestAPI) Start() error

func (*RestAPI) Stop Uses

func (api *RestAPI) Stop() error

type SSLStripper Uses

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

func NewSSLStripper Uses

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

func (*SSLStripper) Enable Uses

func (s *SSLStripper) Enable(enabled bool)

func (*SSLStripper) Enabled Uses

func (s *SSLStripper) Enabled() bool

func (*SSLStripper) Preprocess Uses

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 Uses

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

type SniffData Uses

type SniffData map[string]interface{}

type Sniffer Uses

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

func NewSniffer Uses

func NewSniffer(s *session.Session) *Sniffer

func (Sniffer) Author Uses

func (s Sniffer) Author() string

func (*Sniffer) Configure Uses

func (s *Sniffer) Configure() error

func (Sniffer) Description Uses

func (s Sniffer) Description() string

func (*Sniffer) GetContext Uses

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

func (Sniffer) Name Uses

func (s Sniffer) Name() string

func (*Sniffer) Start Uses

func (s *Sniffer) Start() error

func (*Sniffer) Stop Uses

func (s *Sniffer) Stop() error

type SnifferContext Uses

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 Uses

func NewSnifferContext() *SnifferContext

func (*SnifferContext) Close Uses

func (c *SnifferContext) Close()

func (*SnifferContext) Log Uses

func (c *SnifferContext) Log(sess *session.Session)

type SnifferEvent Uses

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 Uses

func NewSnifferEvent(t time.Time, proto string, src string, dst string, data interface{}, format string, args ...interface{}) SnifferEvent

func (SnifferEvent) Push Uses

func (e SnifferEvent) Push()

type SnifferStats Uses

type SnifferStats struct {
    NumLocal    uint64
    NumMatched  uint64
    NumDumped   uint64
    NumWrote    uint64
    Started     time.Time
    FirstPacket time.Time
    LastPacket  time.Time
}

func NewSnifferStats Uses

func NewSnifferStats() *SnifferStats

func (*SnifferStats) Print Uses

func (s *SnifferStats) Print() error

type SynScanEvent Uses

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

func NewSynScanEvent Uses

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

func (SynScanEvent) Push Uses

func (e SynScanEvent) Push()

type SynScanner Uses

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

func NewSynScanner Uses

func NewSynScanner(s *session.Session) *SynScanner

func (*SynScanner) Author Uses

func (s *SynScanner) Author() string

func (*SynScanner) Configure Uses

func (s *SynScanner) Configure() error

func (*SynScanner) Description Uses

func (s *SynScanner) Description() string

func (*SynScanner) Name Uses

func (s *SynScanner) Name() string

func (*SynScanner) Start Uses

func (s *SynScanner) Start() error

func (*SynScanner) Stop Uses

func (s *SynScanner) Stop() error

type TcpProxy Uses

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

func NewTcpProxy Uses

func NewTcpProxy(s *session.Session) *TcpProxy

func (*TcpProxy) Author Uses

func (p *TcpProxy) Author() string

func (*TcpProxy) Configure Uses

func (p *TcpProxy) Configure() error

func (*TcpProxy) Description Uses

func (p *TcpProxy) Description() string

func (*TcpProxy) Name Uses

func (p *TcpProxy) Name() string

func (*TcpProxy) Start Uses

func (p *TcpProxy) Start() error

func (*TcpProxy) Stop Uses

func (p *TcpProxy) Stop() error

type TcpProxyScript Uses

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

func LoadTcpProxyScript Uses

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

func (*TcpProxyScript) OnData Uses

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

type Ticker Uses

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

func NewTicker Uses

func NewTicker(s *session.Session) *Ticker

func (*Ticker) Author Uses

func (t *Ticker) Author() string

func (*Ticker) Configure Uses

func (t *Ticker) Configure() error

func (*Ticker) Description Uses

func (t *Ticker) Description() string

func (*Ticker) Name Uses

func (t *Ticker) Name() string

func (*Ticker) Start Uses

func (t *Ticker) Start() error

func (*Ticker) Stop Uses

func (t *Ticker) Stop() error

type UpdateModule Uses

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

func NewUpdateModule Uses

func NewUpdateModule(s *session.Session) *UpdateModule

func (*UpdateModule) Author Uses

func (u *UpdateModule) Author() string

func (*UpdateModule) Configure Uses

func (u *UpdateModule) Configure() error

func (*UpdateModule) Description Uses

func (u *UpdateModule) Description() string

func (*UpdateModule) Name Uses

func (u *UpdateModule) Name() string

func (*UpdateModule) Start Uses

func (u *UpdateModule) Start() error

func (*UpdateModule) Stop Uses

func (u *UpdateModule) Stop() error

type WOL Uses

type WOL struct {
    session.SessionModule
}

func NewWOL Uses

func NewWOL(s *session.Session) *WOL

func (*WOL) Author Uses

func (w *WOL) Author() string

func (*WOL) Configure Uses

func (w *WOL) Configure() error

func (*WOL) Description Uses

func (w *WOL) Description() string

func (*WOL) Name Uses

func (w *WOL) Name() string

func (*WOL) Start Uses

func (w *WOL) Start() error

func (*WOL) Stop Uses

func (w *WOL) Stop() error

type WiFiModule Uses

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

func NewWiFiModule Uses

func NewWiFiModule(s *session.Session) *WiFiModule

func (WiFiModule) Author Uses

func (w WiFiModule) Author() string

func (*WiFiModule) Configure Uses

func (w *WiFiModule) Configure() error

func (WiFiModule) Description Uses

func (w WiFiModule) Description() string

func (WiFiModule) Name Uses

func (w WiFiModule) Name() string

func (*WiFiModule) Show Uses

func (w *WiFiModule) Show(by string) error

func (*WiFiModule) Start Uses

func (w *WiFiModule) Start() error

func (*WiFiModule) Stop Uses

func (w *WiFiModule) Stop() error

type WiFiProbe Uses

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

Package modules imports 64 packages (graph) and is imported by 4 packages. Updated 2018-11-05. Refresh now. Tools for package owners.