Documentation ¶
Index ¶
- Constants
- type Certificate
- type DatasetSummary
- type Event
- func (event *Event) AddSource(source string)
- func (event *Event) AddTag(tag string)
- func (event *Event) HasSource(source string) bool
- func (event *Event) HasTag(tag string) bool
- func (event *Event) HasTransport(transport string) bool
- func (event *Event) MatchServicePlugin(plugin ServicePluginInterface) bool
- func (event *Event) RemoveTransport(transportCheck string)
- func (event *Event) UpdateFingerprint() error
- func (event *Event) Url() string
- type GeoLocation
- type GeoPoint
- type HttpEvent
- type LeakEvent
- type Network
- type SSHEvent
- type ServiceCredentials
- type ServiceEvent
- type ServicePluginBase
- func (plugin ServicePluginBase) DialContext(ctx context.Context, network string, addr string) (conn net.Conn, err error)
- func (plugin ServicePluginBase) GetEventNetworkConnection(event *Event) (conn net.Conn, err error)
- func (plugin ServicePluginBase) GetHttpClient(ctx context.Context, ip string, port string) *http.Client
- func (plugin ServicePluginBase) GetNetworkConnection(network string, addr string) (conn net.Conn, err error)
- func (plugin ServicePluginBase) Init() error
- type ServicePluginInterface
- type Software
- type SoftwareModule
- type SslEvent
- type WebPluginInterface
- type WebPluginRequest
- func (request *WebPluginRequest) AddTag(tag string)
- func (request *WebPluginRequest) AddTags(tags []string)
- func (request *WebPluginRequest) Equal(testRequest WebPluginRequest) bool
- func (request *WebPluginRequest) EqualAny(testRequests []WebPluginRequest) bool
- func (request *WebPluginRequest) GetHash() string
- func (request *WebPluginRequest) HasAnyTags(tags []string) bool
- func (request *WebPluginRequest) HasTag(tag string) bool
- type WebPluginResponse
Constants ¶
View Source
const ( SEVERITY_CRITICAL string = "critical" SEVERITY_HIGH = "high" SEVERITY_MEDIUM = "medium" SEVERITY_LOW = "low" SEVERITY_INFO = "info" )
View Source
const ( STAGE_OPEN string = "open" STAGE_EXPLORE = "explore" STAGE_EXFILTRATE = "exfiltrate" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct { CommonName string `json:"cn"` Domains []string `json:"domain"` Fingerprint string `json:"fingerprint"` KeyAlgo string `json:"key_algo"` KeySize int `json:"key_size"` IssuerName string `json:"issuer_name"` NotBefore time.Time `json:"not_before"` NotAfter time.Time `json:"not_after"` Valid bool `json:"valid"` }
type DatasetSummary ¶
type Event ¶
type Event struct { EventType string `json:"event_type"` EventSource string `json:"event_source"` EventPipeline []string `json:"event_pipeline"` EventFingerprint string `json:"event_fingerprint"` Ip string `json:"ip"` Host string `json:"host"` Reverse string `json:"reverse"` Port string `json:"port"` Mac string `json:"mac"` Vendor string `json:"vendor"` Transports []string `json:"transport"` Protocol string `json:"protocol"` Http HttpEvent `json:"http"` Summary string `json:"summary"` Time time.Time `json:"time"` SSL SslEvent `json:"ssl"` SSH SSHEvent `json:"ssh"` Service ServiceEvent `json:"service"` Leak LeakEvent `json:"leak"` Tags []string `json:"tags"` GeoIp GeoLocation `json:"geoip"` Network Network `json:"network"` }
func (*Event) HasTransport ¶
func (*Event) MatchServicePlugin ¶
func (event *Event) MatchServicePlugin(plugin ServicePluginInterface) bool
func (*Event) RemoveTransport ¶
func (*Event) UpdateFingerprint ¶
type GeoLocation ¶
type GeoLocation struct { ContinentName string `json:"continent_name"` RegionISOCode string `json:"region_iso_code"` CityName string `json:"city_name"` CountryISOCode string `json:"country_iso_code"` CountryName string `json:"country_name"` RegionName string `json:"region_name"` GeoPoint GeoPoint `json:"location"` }
type LeakEvent ¶
type LeakEvent struct { Stage string `json:"stage"` Type string `json:"type"` Severity string `json:"severity"` Dataset DatasetSummary `json:"dataset"` }
type ServiceCredentials ¶
type ServiceEvent ¶
type ServiceEvent struct { Credentials ServiceCredentials `json:"credentials"` Software Software `json:"software"` }
type ServicePluginBase ¶
type ServicePluginBase struct { }
func (ServicePluginBase) DialContext ¶
func (ServicePluginBase) GetEventNetworkConnection ¶
func (plugin ServicePluginBase) GetEventNetworkConnection(event *Event) (conn net.Conn, err error)
func (ServicePluginBase) GetHttpClient ¶
func (ServicePluginBase) GetNetworkConnection ¶
func (ServicePluginBase) Init ¶
func (plugin ServicePluginBase) Init() error
type ServicePluginInterface ¶
type Software ¶
type Software struct { Name string `json:"name"` Version string `json:"version"` OperatingSystem string `json:"os"` Modules []SoftwareModule `json:"modules"` Fingerprint string `json:"fingerprint"` }
type SoftwareModule ¶
type WebPluginInterface ¶
type WebPluginInterface interface { GetVersion() (int, int, int) GetRequests() []WebPluginRequest GetName() string GetStage() string Verify(request WebPluginRequest, response WebPluginResponse, event *Event, options map[string]string) (hasLeak bool) }
type WebPluginRequest ¶
type WebPluginRequest struct { Method string Path string Headers map[string]string Body []byte Tags []string // contains filtered or unexported fields }
func (*WebPluginRequest) AddTag ¶
func (request *WebPluginRequest) AddTag(tag string)
func (*WebPluginRequest) AddTags ¶
func (request *WebPluginRequest) AddTags(tags []string)
func (*WebPluginRequest) Equal ¶
func (request *WebPluginRequest) Equal(testRequest WebPluginRequest) bool
func (*WebPluginRequest) EqualAny ¶
func (request *WebPluginRequest) EqualAny(testRequests []WebPluginRequest) bool
func (*WebPluginRequest) GetHash ¶
func (request *WebPluginRequest) GetHash() string
func (*WebPluginRequest) HasAnyTags ¶
func (request *WebPluginRequest) HasAnyTags(tags []string) bool
func (*WebPluginRequest) HasTag ¶
func (request *WebPluginRequest) HasTag(tag string) bool
Click to show internal directories.
Click to hide internal directories.