Documentation
¶
Index ¶
- Constants
- func FilterIPHasTooMuchPort(result *Result, isOnline bool)
- func MapToString(m map[string]interface{}) string
- func UnFlat(input []byte) []byte
- type Config
- type FScan
- type Framework
- type Frameworks
- type GOGOConfig
- type GOGOData
- type GOGOResult
- type GOGOResults
- type Goby
- type GobyAssertPortInfo
- type GobyAssetSearchResponse
- type Gogo
- type HttpResult
- type IPResult
- type ImportOfflineResult
- type Masscan
- type Nmap
- type OfflineResult
- type PortAttrResult
- type PortResult
- type Result
- func (r *Result) HasIP(ip string) bool
- func (r *Result) HasPort(ip string, port int) bool
- func (r *Result) SaveResult(config Config) string
- func (r *Result) SetIP(ip string)
- func (r *Result) SetPort(ip string, port int)
- func (r *Result) SetPortAttr(ip string, port int, par PortAttrResult)
- func (r *Result) SetPortHttpInfo(ip string, port int, result HttpResult)
- type Vuln
- type Vulns
Constants ¶
View Source
const ( FrameFromDefault = iota FrameFromACTIVE FrameFromICO FrameFromNOTFOUND FrameFromGUESS )
View Source
const (
IpOpenedPortFilterNumber = 50 // IP开放端口数量,超过该数量则认为存在安全设备过滤
)
Variables ¶
This section is empty.
Functions ¶
func FilterIPHasTooMuchPort ¶
FilterIPHasTooMuchPort 过滤有安全防护、显示太多端口开放的IP
func MapToString ¶
Types ¶
type Config ¶
type Config struct {
Target string `json:"target"`
ExcludeTarget string `json:"executeTarget"`
Port string `json:"port"`
OrgId *int `json:"orgId"`
Rate int `json:"rate"`
IsPing bool `json:"ping"`
Tech string `json:"tech"`
IsIpLocation bool `json:"ipLocation"`
IsHttpx bool `json:"httpx"`
IsScreenshot bool `json:"screenshot"`
IsFingerprintHub bool `json:"fingerprinthub"`
IsIconHash bool `json:"iconhash"`
IsFingerprintx bool `json:"fingerprintx"`
CmdBin string `json:"cmdBin"`
IsLoadOpenedPort bool `json:"loadOpenedPort"`
IsPortscan bool `json:"isPortscan"`
WorkspaceId int `json:"workspaceId"`
IsProxy bool `json:"proxy"`
}
Config 端口扫描的参数配置
type FScan ¶
type FScan struct {
}
FScan 导入fscan的扫描结果
func (*FScan) ParseContentResult ¶
ParseContentResult 解析fscan扫描的文本结果
type Framework ¶
type Frameworks ¶
func (Frameworks) String ¶
func (fs Frameworks) String() string
type GOGOConfig ¶
type GOGOConfig struct {
IP string `json:"ip"`
IPlist []string `json:"ips"`
Ports string `json:"ports"`
JsonFile string `json:"json_file"`
ListFile string `json:"list_file"`
Threads int `json:"threads"` // 线程数
Mod string `json:"mod"` // 扫描模式
AliveSprayMod []string `json:"alive_spray"`
PortSpray bool `json:"port_spray"`
Exploit string `json:"exploit"`
JsonType string `json:"json_type"`
VersionLevel int `json:"version_level"`
}
type GOGOData ¶
type GOGOData struct {
Config GOGOConfig `json:"config"`
IP string `json:"ip"`
Data GOGOResults `json:"data"`
}
type GOGOResult ¶
type GOGOResult struct {
Ip string `json:"ip"` // ip
Port string `json:"port"` // port
Uri string `json:"uri,omitempty"` // uri
Os string `json:"os,omitempty"` // os
Host string `json:"host,omitempty"` // host
Frameworks Frameworks `json:"frameworks,omitempty"` // framework
Vulns Vulns `json:"vulns,omitempty"`
Extracteds map[string][]string `json:"extracted,omitempty"`
Protocol string `json:"protocol"` // protocol
Status string `json:"status"` // http_stat
Language string `json:"language"`
Title string `json:"title"` // title
Midware string `json:"midware"` // midware
}
type GOGOResults ¶
type GOGOResults []*GOGOResult
type GobyAssertPortInfo ¶
type GobyAssertPortInfo struct {
Port string `json:"port"`
Hostinfo string `json:"hostinfo"`
Url string `json:"url"`
Product string `json:"product"`
Protocol string `json:"protocol"`
Json string `json:"json"`
Fid []string `json:"fid"`
Products []string `json:"products"`
Protocols []string `json:"protocols"`
}
GobyAssertPortInfo 端口信息
type GobyAssetSearchResponse ¶
type GobyAssetSearchResponse struct {
StatusCode int `json:"statusCode"`
Messages string `json:"messages"`
Data struct {
Ips []struct {
Ip string `json:"ip"`
Mac string `json:"mac"`
Os string `json:"os"`
Hostname string `json:"hostname"`
Honeypot string `json:"honeypot,omitempty"`
Ports []struct {
Port string `json:"port"`
Baseprotocol string `json:"baseprotocol"`
} `json:"ports"`
Protocols map[string]GobyAssertPortInfo `json:"protocols"`
Vulnerabilities []struct {
Hostinfo string `json:"hostinfo"`
Name string `json:"name"`
Filename string `json:"filename"`
Level string `json:"level"`
Vulurl string `json:"vulurl"`
Keymemo string `json:"keymemo"`
Hasexp bool `json:"hasexp "`
} `json:"vulnerabilities"`
Screenshots interface{} `json:"screenshots"`
Favicons interface{} `json:"favicons"`
Hostnames []string `json:"hostnames"`
} `json:"ips"`
} `json:"data"`
}
GobyAssetSearchResponse 扫描端口信息返回
type IPResult ¶
type IPResult struct {
OrgId *int
Location string
Status string
Ports map[int]*PortResult
}
IPResult IP结果
type ImportOfflineResult ¶
type ImportOfflineResult struct {
IpResult Result
// contains filtered or unexported fields
}
func NewImportOfflineResult ¶
func NewImportOfflineResult(resultType string) *ImportOfflineResult
func NewImportOfflineResultWithInterface ¶
func NewImportOfflineResultWithInterface(resultType string, resultInterface OfflineResult) *ImportOfflineResult
func (*ImportOfflineResult) Parse ¶
func (i *ImportOfflineResult) Parse(content []byte)
type Masscan ¶
func (*Masscan) ParseContentResult ¶
ParseContentResult 解析XML格式的masscan扫描结果
type Nmap ¶
func (*Nmap) ParseContentResult ¶
ParseContentResult 解析nmap的XML文件
type OfflineResult ¶
type PortAttrResult ¶
PortAttrResult 端口属性结果
type PortResult ¶
type PortResult struct {
Status string
PortAttrs []PortAttrResult
HttpInfo []HttpResult
}
PortResult 端口结果
type Result ¶
Result 端口扫描结果
func (*Result) SaveResult ¶
SaveResult 保存端口扫描的结果到数据库
func (*Result) SetPortAttr ¶
func (r *Result) SetPortAttr(ip string, port int, par PortAttrResult)
func (*Result) SetPortHttpInfo ¶
func (r *Result) SetPortHttpInfo(ip string, port int, result HttpResult)
Click to show internal directories.
Click to hide internal directories.