modules

package
v0.0.0-...-626b81c Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2018 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

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 NewDiscovery(s *session.Session) *Discovery

func (Discovery) Author

func (d Discovery) Author() string

func (Discovery) Description

func (d Discovery) Description() string

func (Discovery) Name

func (d Discovery) Name() string

func (Discovery) OnSessionEnded

func (d Discovery) OnSessionEnded(s *session.Session)

func (*Discovery) Show

func (d *Discovery) Show() 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) 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 NewHttpProxy(s *session.Session) *HttpProxy

func (*HttpProxy) Author

func (p *HttpProxy) Author() string

func (*HttpProxy) Description

func (p *HttpProxy) Description() string

func (*HttpProxy) Name

func (p *HttpProxy) Name() string

func (*HttpProxy) OnSessionEnded

func (p *HttpProxy) OnSessionEnded(s *session.Session)

func (*HttpProxy) OnSessionStarted

func (p *HttpProxy) OnSessionStarted(s *session.Session)

func (*HttpProxy) Start

func (p *HttpProxy) Start() error

func (*HttpProxy) Stop

func (p *HttpProxy) Stop() error

type JSHeader

type JSHeader struct {
	Name  string
	Value string
}

type JSRequest

type JSRequest struct {
	Method   string
	Version  string
	Path     string
	Hostname string
	Headers  []JSHeader
	Body     string
	// contains filtered or unexported fields
}

func NewJSRequest

func NewJSRequest(req *http.Request) JSRequest

func (*JSRequest) ReadBody

func (j *JSRequest) ReadBody() string

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 NewProber

func NewProber(s *session.Session) *Prober

func (Prober) Author

func (p Prober) Author() string

func (Prober) Description

func (p Prober) Description() string

func (Prober) Name

func (p Prober) Name() string

func (Prober) OnSessionEnded

func (p Prober) OnSessionEnded(s *session.Session)

func (*Prober) Start

func (p *Prober) Start() error

func (*Prober) Stop

func (p *Prober) Stop() error

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 NewRestAPI(s *session.Session) *RestAPI

func (RestAPI) Authenticated

func (api RestAPI) Authenticated(w http.ResponseWriter, r *http.Request) bool

func (*RestAPI) Author

func (api *RestAPI) Author() string

func (*RestAPI) Description

func (api *RestAPI) Description() string

func (*RestAPI) Name

func (api *RestAPI) Name() string

func (*RestAPI) OnSessionEnded

func (api *RestAPI) OnSessionEnded(s *session.Session)

func (*RestAPI) OnSessionStarted

func (api *RestAPI) OnSessionStarted(s *session.Session)

func (*RestAPI) Start

func (api *RestAPI) Start() error

func (*RestAPI) Stop

func (api *RestAPI) Stop() error

type Sniffer

type Sniffer struct {
	session.SessionModule
	Stats *SnifferStats
	Ctx   *SnifferContext
}

func NewSniffer

func NewSniffer(s *session.Session) *Sniffer

func (Sniffer) Author

func (s Sniffer) Author() string

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

func (sn Sniffer) OnSessionEnded(s *session.Session)

func (*Sniffer) PrintStats

func (s *Sniffer) PrintStats() error

func (*Sniffer) Start

func (s *Sniffer) Start() error

func (*Sniffer) Stop

func (s *Sniffer) Stop() error

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

Jump to

Keyboard shortcuts

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