Database Models¶
Target Model¶
-
class
pipeline.models.target_model.Target(**kwargs)¶ Database model that describes a target; This is the model that functions as the “top” model.
- Relationships:
ip_addresses: one to many ->pipeline.models.ip_address_model.IPAddressopen_ports: many to many ->pipeline.models.port_model.Portnmap_results: one to many ->pipeline.models.nmap_model.NmapResultsearchsploit_results: one to many ->pipeline.models.searchsploit_model.SearchsploitResultendpoints: one to many ->pipeline.models.endpoint_model.Endpointtechnologies: many to many ->pipeline.models.technology_model.Technologyscreenshots: one to many ->pipeline.models.screenshot_model.Screenshot
Endpoint Model¶
-
class
pipeline.models.endpoint_model.Endpoint(**kwargs)¶ Database model that describes a URL/endpoint.
Represents gobuster data.
- Relationships:
target: many to one ->pipeline.models.target_model.Targetheaders: many to many ->pipeline.models.header_model.Header
Header Model¶
-
class
pipeline.models.header_model.Header(**kwargs)¶ Database model that describes an http header (i.e. Server=cloudflare).
- Relationships:
endpoints: many to many ->pipeline.models.target_model.Endpoint
IP Address Model¶
-
class
pipeline.models.ip_address_model.IPAddress(**kwargs)¶ Database model that describes an ip address (ipv4 or ipv6).
Represents amass data or targets specified manually as part of the
target-file.- Relationships:
target: many to one ->pipeline.models.target_model.Target
Nmap Model¶
-
class
pipeline.models.nmap_model.NmapResult(**kwargs)¶ Database model that describes the TARGET.nmap scan results.
Represents nmap data.
- Relationships:
target: many to one ->pipeline.models.target_model.Targetip_address: one to one ->pipeline.models.ip_address_model.IPAddressport: one to one ->pipeline.models.port_model.Portnse_results: one to many ->pipeline.models.nse_model.NSEResult
Nmap Scripting Engine Model¶
-
class
pipeline.models.nse_model.NSEResult(**kwargs)¶ Database model that describes the NSE script executions as part of an nmap scan.
Represents NSE script data.
- Relationships:
NmapResult: many to many ->pipeline.models.nmap_model.NmapResult
Port Model¶
-
class
pipeline.models.port_model.Port(**kwargs)¶ Database model that describes a port (tcp or udp).
- Relationships:
targets: many to many ->pipeline.models.target_model.Target
Screenshot Model¶
-
class
pipeline.models.screenshot_model.Screenshot(**kwargs)¶ Database model that describes a screenshot of a given webpage hosted on a
Target.Represents aquatone data.
- Relationships:
port: one to one ->pipeline.models.port_model.Porttarget: many to one ->pipeline.models.target_model.Targetendpoint: one to one ->pipeline.models.endpoint_model.Endpointsimilar_pages: black magic ->pipeline.models.screenshot_model.Screenshot
Searchsploit Model¶
-
class
pipeline.models.searchsploit_model.SearchsploitResult(**kwargs)¶ Database model that describes results from running searchsploit –nmap TARGET.xml.
Represents searchsploit data.
- Relationships:
target: many to one ->pipeline.models.target_model.Target
Technology Model¶
-
class
pipeline.models.technology_model.Technology(**kwargs)¶ Database model that describes a web technology (i.e. Nginx 1.14).
Represents webanalyze data.
- Relationships:
targets: many to many ->pipeline.models.target_model.Target