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 BuiltwithUA(UAID string, options core.Options) (result []core.RelatedDomain)
- func CrtSH(raw string, options core.Options) (result []core.RelatedDomain)
- func CrtSHOrg(org string, options core.Options) []string
- func CurrentUser() string
- func ExtractGoogleTagManger(content string) (results []string)
- func ExtractUAID(content string) (results []string)
- func GetIPInfo(options core.Options) []string
- func GoogleAnalytic(targetURL string, options core.Options) (result []core.RelatedDomain)
- func IPv4Info(options core.Options) []string
- func InternetDB(IP string) string
- func IsIPv4(ip net.IP) bool
- func IsIPv6(ip net.IP) bool
- func OrgBgbView(options core.Options) []string
- func OrgBgpDotNet(options core.Options) []string
- func ParseNmap(raw string, options core.Options) []string
- func ParseZmap(zmapOutput string) []string
- func ParsingMasscan(raw string) map[string][]string
- func ParsingNmapWithGoquery(raw string, options core.Options) map[string][]string
- func Range2CIDR(first, last net.IP) *net.IPNet
- func ResolveData(format string, data map[string]string) string
- func ReverseWhois(raw string, options core.Options) (result []core.RelatedDomain)
- 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
- type ASInfo
- type AsnMap
- type CertData
- type Host
- type IPInfo
- 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 BuiltwithUA ¶
func BuiltwithUA(UAID string, options core.Options) (result []core.RelatedDomain)
func CrtSH ¶
func CrtSH(raw string, options core.Options) (result []core.RelatedDomain)
CrtSH get IPInfo from https://crt.sh
func CrtSHOrg ¶
CrtSHOrg get IPInfo from https://crt.sh
func ExtractGoogleTagManger ¶
func ExtractUAID ¶
func GoogleAnalytic ¶
func GoogleAnalytic(targetURL string, options core.Options) (result []core.RelatedDomain)
func InternetDB ¶
func OrgBgbView ¶
OrgBgbView get Org infor from bgpview.io
func OrgBgpDotNet ¶
OrgBgpDotNet get Org infor from bgp.net
func ParsingMasscan ¶
ParsingMasscan parse result from masscan XML format
func ParsingNmapWithGoquery ¶
ParsingNmapWithGoquery parse result from nmap XML format using goquery
func Range2CIDR ¶
Range2CIDR turns an IP range into a CIDR.
func ResolveData ¶
ResolveData resolve template from signature file
func ReverseWhois ¶
func ReverseWhois(raw string, options core.Options) (result []core.RelatedDomain)
func RunMasscan ¶
RunMasscan run masscan command and return list of port open
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.