Documentation ¶
Index ¶
- func ASNBgpDotNet(options core.Options) []string
- func ASNFromIP(options core.Options) []string
- func ASNLookup(options core.Options) []string
- func ASNSpyse(options core.Options) []string
- func CertsInfo(query string, rports string) string
- func CurrentUser() string
- func FoFaSearch(options core.Options) []string
- func IPInfo(options core.Options) []string
- func IPSearch(options core.Options) []string
- func IPv4Info(options core.Options) []string
- func Onyphe(query string, options core.Options) []string
- func OptimizeFofaQuery(options core.Options) []string
- func OrgBgbView(options core.Options) []string
- func OrgBgpDotNet(options core.Options) []string
- func ParseNmap(raw string, options core.Options) []string
- func ParseOnyphe(content string) map[string]string
- func ParseSecurityTrails(content string) []map[string]string
- func ParseShodan(content string) map[string]string
- func ParseZmap(zmapOutput string) []string
- func ParsingMasscan(raw string) map[string][]string
- func ParsingNmapWithGoquery(raw string, options core.Options) map[string][]string
- func PrepareQuery(raw string) (string, string)
- func ResolveData(format string, data map[string]string) string
- func RunMasscan(input string, options core.Options) []string
- func RunNmap(input string, ports string, options core.Options) []string
- func RunZmap(inputFile string, port string, options core.Options) []string
- func SecurityTrails(query string, options core.Options) []string
- func Shodan(query string, options core.Options) []string
- func Vulners(options core.Options) []string
- type CVEData
- type Host
- type NmapRun
- type NmapRuns
- type Port
- type RangeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ASNBgpDotNet ¶
ASNBgpDotNet get ASN infor from bgp.net
func Onyphe ¶
Onyphe get IPInfo from https://www.onyphe.io
func OptimizeFofaQuery ¶
OptimizeFofaQuery find more optimze
func OrgBgbView ¶
OrgBgbView get Org infor from bgpview.io
func OrgBgpDotNet ¶
OrgBgpDotNet get Org infor from bgp.net
func ParseOnyphe ¶
ParseOnyphe parsing data from Onyphe
func ParseSecurityTrails ¶
ParseSecurityTrails parsing data from Onyphe
func ParseShodan ¶
ParseShodan parsing data from Onyphe
func ParsingMasscan ¶
ParsingMasscan parse result from masscan XML format
func ParsingNmapWithGoquery ¶
ParsingNmapWithGoquery parse result from nmap XML format using goquery
func PrepareQuery ¶
func ResolveData ¶
ResolveData resolve template from signature file
func RunMasscan ¶
RunMasscan run masscan command and return list of port open
func SecurityTrails ¶
SecurityTrails get IPInfo from https://securitytrails.com/list/ip/196.3.50.77
func Shodan ¶
Shodan get IPInfo from https://www.shodan.io
Types ¶
type NmapRun ¶
type NmapRun struct { XMLName xml.Name `xml:"nmaprun"` Text string `xml:",chardata"` Scanner string `xml:"scanner,attr"` Args string `xml:"args,attr"` Start string `xml:"start,attr"` Startstr string `xml:"startstr,attr"` Version string `xml:"version,attr"` Xmloutputversion string `xml:"xmloutputversion,attr"` Scaninfo struct { Text string `xml:",chardata"` Type string `xml:"type,attr"` Protocol string `xml:"protocol,attr"` Numservices string `xml:"numservices,attr"` Services string `xml:"services,attr"` } `xml:"scaninfo"` Verbose struct { Text string `xml:",chardata"` Level string `xml:"level,attr"` } `xml:"verbose"` Debugging struct { Text string `xml:",chardata"` Level string `xml:"level,attr"` } `xml:"debugging"` Taskbegin []struct { Text string `xml:",chardata"` Task string `xml:"task,attr"` Time string `xml:"time,attr"` } `xml:"taskbegin"` Taskend []struct { Text string `xml:",chardata"` Task string `xml:"task,attr"` Time string `xml:"time,attr"` Extrainfo string `xml:"extrainfo,attr"` } `xml:"taskend"` Taskprogress []struct { Text string `xml:",chardata"` Task string `xml:"task,attr"` Time string `xml:"time,attr"` Percent string `xml:"percent,attr"` Remaining string `xml:"remaining,attr"` Etc string `xml:"etc,attr"` } `xml:"taskprogress"` Host struct { Text string `xml:",chardata"` Starttime string `xml:"starttime,attr"` Endtime string `xml:"endtime,attr"` Status struct { Text string `xml:",chardata"` State string `xml:"state,attr"` Reason string `xml:"reason,attr"` ReasonTtl string `xml:"reason_ttl,attr"` } `xml:"status"` Address struct { Text string `xml:",chardata"` Addr string `xml:"addr,attr"` Addrtype string `xml:"addrtype,attr"` } `xml:"address"` Hostnames struct { Text string `xml:",chardata"` Hostname struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Type string `xml:"type,attr"` } `xml:"hostname"` } `xml:"hostnames"` Ports struct { Text string `xml:",chardata"` Extraports struct { Text string `xml:",chardata"` State string `xml:"state,attr"` Count string `xml:"count,attr"` Extrareasons []struct { Text string `xml:",chardata"` Reason string `xml:"reason,attr"` Count string `xml:"count,attr"` } `xml:"extrareasons"` } `xml:"extraports"` Port []struct { Text string `xml:",chardata"` Protocol string `xml:"protocol,attr"` Portid string `xml:"portid,attr"` State struct { Text string `xml:",chardata"` State string `xml:"state,attr"` Reason string `xml:"reason,attr"` ReasonTtl string `xml:"reason_ttl,attr"` } `xml:"state"` Service struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Product string `xml:"product,attr"` Devicetype string `xml:"devicetype,attr"` Method string `xml:"method,attr"` Conf string `xml:"conf,attr"` Version string `xml:"version,attr"` Extrainfo string `xml:"extrainfo,attr"` Ostype string `xml:"ostype,attr"` Servicefp string `xml:"servicefp,attr"` Cpe []string `xml:"cpe"` } `xml:"service"` Script struct { Text string `xml:",chardata"` ID string `xml:"id,attr"` Output string `xml:"output,attr"` Elem []struct { Text string `xml:",chardata"` Key string `xml:"key,attr"` } `xml:"elem"` } `xml:"script"` } `xml:"port"` } `xml:"ports"` Times struct { Text string `xml:",chardata"` Srtt string `xml:"srtt,attr"` Rttvar string `xml:"rttvar,attr"` To string `xml:"to,attr"` } `xml:"times"` } `xml:"host"` Runstats struct { Text string `xml:",chardata"` Finished struct { Text string `xml:",chardata"` Time string `xml:"time,attr"` Timestr string `xml:"timestr,attr"` Elapsed string `xml:"elapsed,attr"` Summary string `xml:"summary,attr"` Exit string `xml:"exit,attr"` } `xml:"finished"` Hosts struct { Text string `xml:",chardata"` Up string `xml:"up,attr"` Down string `xml:"down,attr"` Total string `xml:"total,attr"` } `xml:"hosts"` } `xml:"runstats"` }
NmapRun nmap single scan XML to struct
type NmapRuns ¶
type NmapRuns struct { XMLName xml.Name `xml:"nmaprun"` Text string `xml:",chardata"` Scanner string `xml:"scanner,attr"` Args string `xml:"args,attr"` Start string `xml:"start,attr"` Startstr string `xml:"startstr,attr"` Version string `xml:"version,attr"` Xmloutputversion string `xml:"xmloutputversion,attr"` Scaninfo struct { Text string `xml:",chardata"` Type string `xml:"type,attr"` Protocol string `xml:"protocol,attr"` Numservices string `xml:"numservices,attr"` Services string `xml:"services,attr"` } `xml:"scaninfo"` Verbose struct { Text string `xml:",chardata"` Level string `xml:"level,attr"` } `xml:"verbose"` Debugging struct { Text string `xml:",chardata"` Level string `xml:"level,attr"` } `xml:"debugging"` Taskbegin []struct { Text string `xml:",chardata"` Task string `xml:"task,attr"` Time string `xml:"time,attr"` } `xml:"taskbegin"` Taskend []struct { Text string `xml:",chardata"` Task string `xml:"task,attr"` Time string `xml:"time,attr"` Extrainfo string `xml:"extrainfo,attr"` } `xml:"taskend"` Host []struct { Text string `xml:",chardata"` Starttime string `xml:"starttime,attr"` Endtime string `xml:"endtime,attr"` Status struct { Text string `xml:",chardata"` State string `xml:"state,attr"` Reason string `xml:"reason,attr"` ReasonTtl string `xml:"reason_ttl,attr"` } `xml:"status"` Address struct { Text string `xml:",chardata"` Addr string `xml:"addr,attr"` Addrtype string `xml:"addrtype,attr"` } `xml:"address"` Hostnames struct { Text string `xml:",chardata"` Hostname struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Type string `xml:"type,attr"` } `xml:"hostname"` } `xml:"hostnames"` Ports struct { Text string `xml:",chardata"` Extraports struct { Text string `xml:",chardata"` State string `xml:"state,attr"` Count string `xml:"count,attr"` Extrareasons []struct { Text string `xml:",chardata"` Reason string `xml:"reason,attr"` Count string `xml:"count,attr"` } `xml:"extrareasons"` } `xml:"extraports"` Port []struct { Text string `xml:",chardata"` Protocol string `xml:"protocol,attr"` Portid string `xml:"portid,attr"` State struct { Text string `xml:",chardata"` State string `xml:"state,attr"` Reason string `xml:"reason,attr"` ReasonTtl string `xml:"reason_ttl,attr"` } `xml:"state"` Service struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Tunnel string `xml:"tunnel,attr"` Method string `xml:"method,attr"` Conf string `xml:"conf,attr"` Product string `xml:"product,attr"` Devicetype string `xml:"devicetype,attr"` Servicefp string `xml:"servicefp,attr"` Cpe string `xml:"cpe"` } `xml:"service"` Script struct { Text string `xml:",chardata"` ID string `xml:"id,attr"` Output string `xml:"output,attr"` Elem []struct { Text string `xml:",chardata"` Key string `xml:"key,attr"` } `xml:"elem"` } `xml:"script"` } `xml:"port"` } `xml:"ports"` Times struct { Text string `xml:",chardata"` Srtt string `xml:"srtt,attr"` Rttvar string `xml:"rttvar,attr"` To string `xml:"to,attr"` } `xml:"times"` } `xml:"host"` Taskprogress []struct { Text string `xml:",chardata"` Task string `xml:"task,attr"` Time string `xml:"time,attr"` Percent string `xml:"percent,attr"` Remaining string `xml:"remaining,attr"` Etc string `xml:"etc,attr"` } `xml:"taskprogress"` Runstats struct { Text string `xml:",chardata"` Finished struct { Text string `xml:",chardata"` Time string `xml:"time,attr"` Timestr string `xml:"timestr,attr"` Elapsed string `xml:"elapsed,attr"` Summary string `xml:"summary,attr"` Exit string `xml:"exit,attr"` } `xml:"finished"` Hosts struct { Text string `xml:",chardata"` Up string `xml:"up,attr"` Down string `xml:"down,attr"` Total string `xml:"total,attr"` } `xml:"hosts"` } `xml:"runstats"` }
NmapRuns nmap multiple scan XML to struct
func ParseMultipleNmapXML ¶
ParseMultipleNmapXML parse nmap XML result