Documentation ¶
Index ¶
- Constants
- Variables
- func CheckRegreSSHion(url *url.URL) (bool, string)
- func IsValidWebsite(target string) bool
- func NewAmazon(job model.Job) model.Capability
- func NewAzure(job model.Job) model.Capability
- func NewAzureAD(job model.Job) model.Capability
- func NewCloudflare(job model.Job) model.Capability
- func NewCrawler(job model.Job) model.Capability
- func NewCrowdstrike(job model.Job) model.Capability
- func NewDigitalOcean(job model.Job) model.Capability
- func NewEdgar(job model.Job) model.Capability
- func NewGCP(job model.Job) model.Capability
- func NewGato(job model.Job) model.Capability
- func NewGit(job model.Job) model.Capability
- func NewGithubRepository(job model.Job) model.Capability
- func NewGitlab(job model.Job) model.Capability
- func NewNS1(job model.Job) model.Capability
- func NewNessus(job model.Job) model.Capability
- func NewNuclei(job model.Job) model.Capability
- func NewPortScan(job model.Job) model.Capability
- func NewSSH(job model.Job) model.Capability
- func NewSecrets(job model.Job) model.Capability
- func NewSubdomain(job model.Job) model.Capability
- func NewWhois(job model.Job) model.Capability
- type Amazon
- type Azure
- type AzureAD
- type Cloudflare
- type Crawler
- type Credentials
- type Crowdstrike
- type Device
- type DevicePolicy
- type DigitalOcean
- type Edgar
- type Enumeration
- type Exclusion
- type FalconClient
- type Filing
- type GCP
- type Gato
- type GatoXOutput
- type GenericResponse
- type Git
- type GithubRepository
- type Gitlab
- type Host
- type Info
- type NPLine
- type NS1
- type Nessus
- type Nuclei
- type NucleiFinding
- type Parser
- type Plugin
- type Policy
- type PortScan
- type PreventionCategory
- type PreventionControl
- type Realm
- type Record
- type Records
- type Repository
- type SSH
- type Scan
- type ScanDetails
- type SearchResult
- type Secrets
- type Subdomain
- type Vulnerability
- type Whois
- type WhoxyResponse
- type XYZ
- type Zone
- type Zones
Constants ¶
View Source
const ( HTML_API = "https://www.sec.gov" JSON_API = "https://data.sec.gov" USER_AGENT = "research@praetorian.com" )
View Source
const YESTERDAY = -time.Hour * 24 * 30
Variables ¶
View Source
var HONEYPOT = 50
Functions ¶
func IsValidWebsite ¶
func NewAzureAD ¶
func NewAzureAD(job model.Job) model.Capability
func NewCloudflare ¶
func NewCloudflare(job model.Job) model.Capability
func NewCrawler ¶
func NewCrawler(job model.Job) model.Capability
func NewCrowdstrike ¶
func NewCrowdstrike(job model.Job) model.Capability
func NewDigitalOcean ¶
func NewDigitalOcean(job model.Job) model.Capability
func NewGithubRepository ¶
func NewGithubRepository(job model.Job) model.Capability
func NewPortScan ¶
func NewPortScan(job model.Job) model.Capability
func NewSecrets ¶
func NewSecrets(job model.Job) model.Capability
func NewSubdomain ¶
func NewSubdomain(job model.Job) model.Capability
Types ¶
type Cloudflare ¶
func (*Cloudflare) Invoke ¶
func (task *Cloudflare) Invoke() error
func (*Cloudflare) Match ¶
func (task *Cloudflare) Match() bool
type Crawler ¶
func (*Crawler) FindInputFields ¶
func (task *Crawler) FindInputFields(c *colly.Collector) func()
func (*Crawler) FindSecrets ¶
func (task *Crawler) FindSecrets(c *colly.Collector) func()
type Credentials ¶
type Crowdstrike ¶
func (*Crowdstrike) Invoke ¶
func (task *Crowdstrike) Invoke() error
func (*Crowdstrike) Match ¶
func (task *Crowdstrike) Match() bool
func (*Crowdstrike) Timeout ¶
func (task *Crowdstrike) Timeout() int
type Device ¶
type Device struct { HostID string `json:"device_id"` Hostname string `json:"hostname"` OS string `json:"platform_name"` Policies []DevicePolicy `json:"policies"` }
type DevicePolicy ¶
type DigitalOcean ¶
type DigitalOcean struct { Job model.Job Asset model.Asset XYZ // contains filtered or unexported fields }
func (*DigitalOcean) Invoke ¶
func (task *DigitalOcean) Invoke() error
func (*DigitalOcean) Match ¶
func (task *DigitalOcean) Match() bool
type Enumeration ¶
type Enumeration struct {
Repositories []Repository `json:"repositories"`
}
type FalconClient ¶
func NewFalconClient ¶
func NewFalconClient(clientID, secret, baseURL string) (*FalconClient, error)
func (*FalconClient) Devices ¶
func (c *FalconClient) Devices() ([]Device, error)
func (*FalconClient) Exclusions ¶
func (c *FalconClient) Exclusions() ([]Exclusion, error)
func (*FalconClient) PreventionPolicies ¶
func (c *FalconClient) PreventionPolicies() ([]Policy, error)
type GatoXOutput ¶
type GatoXOutput struct {
Enumeration Enumeration `json:"enumeration"`
}
type GenericResponse ¶
type GenericResponse[T any] struct { Resources []T `json:"resources"` }
type GithubRepository ¶
func (*GithubRepository) Invoke ¶
func (task *GithubRepository) Invoke() error
func (*GithubRepository) Match ¶
func (task *GithubRepository) Match() bool
type NucleiFinding ¶
type NucleiFinding struct { ID string `json:"template-id"` Path string `json:"template-path"` Info struct { Description string `json:"description"` Severity string `json:"severity"` Author []string `json:"author"` Metadata struct { Praetorian struct { Detection bool `json:"detection"` Attributes map[string]string `json:"attributes"` } `json:"praetorian"` } `json:"metadata"` } `json:"info"` Extracted []string `json:"extracted-results"` IP string `json:"ip"` Port string `json:"port"` URL string `json:"matched-at"` }
type Policy ¶
type Policy struct { ID string `json:"id"` Name string `json:"name"` Platform string `json:"platform_name"` Settings []PreventionCategory `json:"prevention_settings"` }
type PreventionCategory ¶
type PreventionCategory struct { Name string `json:"name"` Controls []PreventionControl `json:"settings"` }
type PreventionControl ¶
type Repository ¶
type ScanDetails ¶
type ScanDetails struct { Hosts []struct { HostID int `json:"host_id"` } `json:"hosts"` }
type SearchResult ¶
type WhoxyResponse ¶
type WhoxyResponse struct { TotalPages int `json:"total_pages"` SearchResult []SearchResult `json:"search_result"` }
Click to show internal directories.
Click to hide internal directories.