Documentation ¶
Index ¶
- type Graph
- func (g *Graph) AddNodeToEvent(node db.Node, source, tag, eventID string) error
- func (g *Graph) Close()
- func (g *Graph) DumpGraph() string
- func (g *Graph) EventDateRange(uuid string) (time.Time, time.Time)
- func (g *Graph) EventDomains(uuid string) []string
- func (g *Graph) EventList() []string
- func (g *Graph) GetOutput(uuid string) []*requests.Output
- func (g *Graph) InsertA(fqdn, addr, source, tag, eventID string) error
- func (g *Graph) InsertAAAA(fqdn, addr, source, tag, eventID string) error
- func (g *Graph) InsertAS(asn, desc, source, tag, eventID string) (db.Node, error)
- func (g *Graph) InsertAddress(addr, source, tag, eventID string) (db.Node, error)
- func (g *Graph) InsertCNAME(fqdn, target, source, tag, eventID string) error
- func (g *Graph) InsertEdge(edge *db.Edge) error
- func (g *Graph) InsertEvent(eventID string) (db.Node, error)
- func (g *Graph) InsertFQDN(name, source, tag, eventID string) (db.Node, error)
- func (g *Graph) InsertInfrastructure(asn int, desc, addr, cidr, source, tag, eventID string) error
- func (g *Graph) InsertMX(fqdn, target, source, tag, eventID string) error
- func (g *Graph) InsertNS(fqdn, target, source, tag, eventID string) error
- func (g *Graph) InsertNetblock(cidr, source, tag, eventID string) (db.Node, error)
- func (g *Graph) InsertNodeIfNotExist(id, ntype string) (db.Node, error)
- func (g *Graph) InsertPTR(fqdn, target, source, tag, eventID string) error
- func (g *Graph) InsertSRV(fqdn, service, target, source, tag, eventID string) error
- func (g *Graph) InsertSource(source, tag string) (db.Node, error)
- func (g *Graph) IsCNAMENode(fqdn string) bool
- func (g *Graph) IsMXNode(fqdn string) bool
- func (g *Graph) IsNSNode(fqdn string) bool
- func (g *Graph) IsPTRNode(fqdn string) bool
- func (g *Graph) IsRootDomainNode(fqdn string) bool
- func (g *Graph) IsTLDNode(fqdn string) bool
- func (g *Graph) ReadASDescription(asn string) string
- func (g *Graph) SourceTag(source string) string
- func (g *Graph) String() string
- func (g *Graph) VizData(uuid string) ([]viz.Node, []viz.Edge)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
Graph implements the Amass network infrastructure data model.
func NewGraph ¶
func NewGraph(database db.GraphDatabase) *Graph
NewGraph accepts a graph database that stores the Graph created and maintained by the data model.
func (*Graph) AddNodeToEvent ¶
AddNodeToEvent creates an associations between a node in the graph, a data source and a discovery task.
func (*Graph) Close ¶
func (g *Graph) Close()
Close will close the graph database being used by the Graph receiver.
func (*Graph) EventDateRange ¶
EventDateRange returns the date range associated with the provided event UUID.
func (*Graph) EventDomains ¶
EventDomains returns the domains that were involved in the event.
func (*Graph) InsertA ¶
InsertA creates FQDN, IP address and A record edge in the graph and associates them with a source and event.
func (*Graph) InsertAAAA ¶
InsertAAAA creates FQDN, IP address and AAAA record edge in the graph and associates them with a source and event.
func (*Graph) InsertAddress ¶
InsertAddress creates an IP address in the graph and associates it with a source and event.
func (*Graph) InsertCNAME ¶
InsertCNAME adds the FQDNs and CNAME record between them to the graph.
func (*Graph) InsertEdge ¶
InsertEdge will create an edge in the database if it does not already exist.
func (*Graph) InsertEvent ¶
InsertEvent create an event node in the graph that represents a discovery task.
func (*Graph) InsertFQDN ¶
InsertFQDN adds a fully qualified domain name to the graph.
func (*Graph) InsertInfrastructure ¶
InsertInfrastructure adds/updates an associated IP address, netblock and autonomous system in the graph.
func (*Graph) InsertNetblock ¶
InsertNetblock adds a netblock/CIDR to the graph.
func (*Graph) InsertNodeIfNotExist ¶
InsertNodeIfNotExist will create a node in the database if it does not already exist.
func (*Graph) InsertSource ¶
InsertSource creates a data source node in the graph.
func (*Graph) IsCNAMENode ¶
IsCNAMENode returns true if the FQDN has a CNAME edge to another FQDN in the graph.
func (*Graph) IsMXNode ¶
IsMXNode returns true if the FQDN has a MX edge pointing to it in the graph.
func (*Graph) IsNSNode ¶
IsNSNode returns true if the FQDN has a NS edge pointing to it in the graph.
func (*Graph) IsPTRNode ¶
IsPTRNode returns true if the FQDN has a PTR edge to another FQDN in the graph.
func (*Graph) IsRootDomainNode ¶
IsRootDomainNode returns true if the FQDN has a 'root' edge pointing to it in the graph.
func (*Graph) IsTLDNode ¶
IsTLDNode returns true if the FQDN has a 'tld' edge pointing to it in the graph.
func (*Graph) ReadASDescription ¶
ReadASDescription the description property of an autonomous system in the graph.