Documentation ¶
Index ¶
- func DialWithDeadline(network, addr string, config *ssh.ClientConfig) (*ssh.Client, error)
- func EnumerateHosts(netblocks []string, exclude []string) ([]string, error)
- func ExpandCIDRs(netblocks []string) ([]string, error)
- func FetchSSHKeyFingerprint(hostport string) string
- func SSHAuthAttempt(hostport, user, password string) (string, error)
- func SSHDialAttempt(client *ssh.Client, dest string) bool
- func SSHExecAttempt(client *ssh.Client, hostport string) bool
- type AuditReport
- type AuditResult
- type BruteForceResult
- type Credential
- type Host
- type HostCredential
- type LogSearcher
- type SQLiteStore
- func (s *SQLiteStore) AddCredential(c Credential) (bool, error)
- func (s *SQLiteStore) Begin() (*sqlx.Tx, error)
- func (s *SQLiteStore) Close() error
- func (s *SQLiteStore) Commit() error
- func (s *SQLiteStore) DeleteHost(hostport string) error
- func (s *SQLiteStore) Exec(query string, args ...interface{}) (sql.Result, error)
- func (s *SQLiteStore) Get(dest interface{}, query string, args ...interface{}) error
- func (s *SQLiteStore) GetActiveHosts(maxAgeDays int) ([]Host, error)
- func (s *SQLiteStore) GetAllCreds() ([]Credential, error)
- func (s *SQLiteStore) GetVulnerabilities() ([]Vulnerability, error)
- func (s *SQLiteStore) Init() error
- func (s *SQLiteStore) ResetCreds() error
- func (s *SQLiteStore) ResetInterval() error
- func (s *SQLiteStore) Select(dest interface{}, query string, args ...interface{}) error
- type SSHAuditor
- func (a *SSHAuditor) Discover(cfg ScanConfiguration) error
- func (a *SSHAuditor) Dupes() (map[string][]Host, error)
- func (a *SSHAuditor) GetReport() (AuditReport, error)
- func (a *SSHAuditor) Logcheck(cfg ScanConfiguration) error
- func (a *SSHAuditor) LogcheckReport(ls LogSearcher) error
- func (a *SSHAuditor) Rescan(cfg ScanConfiguration) (AuditResult, error)
- func (a *SSHAuditor) Scan(cfg ScanConfiguration) (AuditResult, error)
- func (a *SSHAuditor) Vulnerabilities() ([]Vulnerability, error)
- type SSHHost
- type ScanConfiguration
- type ScanRequest
- type ScanResult
- type SplunkLogSearcher
- type Vulnerability
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialWithDeadline ¶
DialWithDeadline is identical to ssh.Dial except that it calls SetDeadline on the underlying connection
func ExpandCIDRs ¶
func FetchSSHKeyFingerprint ¶
func SSHAuthAttempt ¶
Types ¶
type AuditReport ¶
type AuditResult ¶
type AuditResult struct {
// contains filtered or unexported fields
}
type BruteForceResult ¶
type BruteForceResult struct {
// contains filtered or unexported fields
}
type Credential ¶
func (Credential) String ¶
func (c Credential) String() string
type HostCredential ¶
type LogSearcher ¶
func NewSplunkLogSearcher ¶
func NewSplunkLogSearcher(baseURL string) LogSearcher
type SQLiteStore ¶
type SQLiteStore struct {
// contains filtered or unexported fields
}
func NewSQLiteStore ¶
func NewSQLiteStore(uri string) (*SQLiteStore, error)
func (*SQLiteStore) AddCredential ¶
func (s *SQLiteStore) AddCredential(c Credential) (bool, error)
func (*SQLiteStore) Close ¶
func (s *SQLiteStore) Close() error
func (*SQLiteStore) Commit ¶
func (s *SQLiteStore) Commit() error
func (*SQLiteStore) DeleteHost ¶
func (s *SQLiteStore) DeleteHost(hostport string) error
func (*SQLiteStore) Exec ¶
func (s *SQLiteStore) Exec(query string, args ...interface{}) (sql.Result, error)
func (*SQLiteStore) Get ¶
func (s *SQLiteStore) Get(dest interface{}, query string, args ...interface{}) error
func (*SQLiteStore) GetActiveHosts ¶
func (s *SQLiteStore) GetActiveHosts(maxAgeDays int) ([]Host, error)
GetActiveHosts returns a list of hosts seen at most maxAgeDays ago
func (*SQLiteStore) GetAllCreds ¶
func (s *SQLiteStore) GetAllCreds() ([]Credential, error)
func (*SQLiteStore) GetVulnerabilities ¶
func (s *SQLiteStore) GetVulnerabilities() ([]Vulnerability, error)
func (*SQLiteStore) Init ¶
func (s *SQLiteStore) Init() error
func (*SQLiteStore) ResetCreds ¶
func (s *SQLiteStore) ResetCreds() error
func (*SQLiteStore) ResetInterval ¶
func (s *SQLiteStore) ResetInterval() error
func (*SQLiteStore) Select ¶
func (s *SQLiteStore) Select(dest interface{}, query string, args ...interface{}) error
type SSHAuditor ¶
type SSHAuditor struct {
// contains filtered or unexported fields
}
func New ¶
func New(store *SQLiteStore) *SSHAuditor
func (*SSHAuditor) Discover ¶
func (a *SSHAuditor) Discover(cfg ScanConfiguration) error
func (*SSHAuditor) GetReport ¶
func (a *SSHAuditor) GetReport() (AuditReport, error)
func (*SSHAuditor) Logcheck ¶
func (a *SSHAuditor) Logcheck(cfg ScanConfiguration) error
func (*SSHAuditor) LogcheckReport ¶
func (a *SSHAuditor) LogcheckReport(ls LogSearcher) error
func (*SSHAuditor) Rescan ¶
func (a *SSHAuditor) Rescan(cfg ScanConfiguration) (AuditResult, error)
func (*SSHAuditor) Scan ¶
func (a *SSHAuditor) Scan(cfg ScanConfiguration) (AuditResult, error)
func (*SSHAuditor) Vulnerabilities ¶
func (a *SSHAuditor) Vulnerabilities() ([]Vulnerability, error)
type ScanConfiguration ¶
type ScanRequest ¶
type ScanRequest struct {
// contains filtered or unexported fields
}
type ScanResult ¶
type ScanResult struct {
// contains filtered or unexported fields
}
func ScanPort ¶
func ScanPort(hostport string) ScanResult
type SplunkLogSearcher ¶
type SplunkLogSearcher struct {
// contains filtered or unexported fields
}
func (*SplunkLogSearcher) GetIPs ¶
func (s *SplunkLogSearcher) GetIPs() ([]string, error)
type Vulnerability ¶
type Vulnerability struct { HostCredential Host `db:"host"` }
Click to show internal directories.
Click to hide internal directories.