2023-08-03 22:49:57 +00:00
|
|
|
package shodan
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.tcp.direct/perp/shogo/internal/shodan/alert"
|
|
|
|
"git.tcp.direct/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
|
2023-08-11 23:26:31 +00:00
|
|
|
Pages int // Page amount
|
|
|
|
Page int // Page number
|
2023-08-03 22:49:57 +00:00
|
|
|
}
|