shogo/internal/shodan/shodan.go
2024-05-29 01:42:40 +01:00

32 lines
729 B
Go

package shodan
import (
"git.supernets.org/perp/shogo/internal/shodan/alert"
"git.supernets.org/perp/shogo/internal/shodan/scan"
)
// Shodan manager
type Shodan struct {
Scan *scan.Scan // Scan commands
Alert *alert.Alert // Alert commands
Flags *Flags // Command flags
Results chan string // Results channel
}
type Flags struct {
// General flags
Args []string // Command arguments
Query string // Search query
Facets string // Facet flters
Threads int // Thread amount
// Info flags
Profile bool // Profile info
// Search flags
Fields []string // Filter fields
Separator string // Filter separator
Pages int // Page amount
Page int // Page number
}