network

package
v0.0.0-...-0f6999a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Table

func Table(services ...host.Port) (headers, rows []string)

Table returns the headers and their row contents from a list of network services.

Types

type Address

type Address network.Address

Address - An address somewhere on a network, or on a host. Can be an IPv4/v6 address, a MAC address, or else. This type has fields that are compliant with Nmap scan schemas.

func (*Address) AsEntity

func (a *Address) AsEntity() maltego.Entity

AsEntity - Returns the Address as a valid Maltego Entity.

func (*Address) ToORM

func (a *Address) ToORM(ctx context.Context) (network.AddressORM, error)

ToORM - Get the SQL object for the Host

func (*Address) ToPB

func (a *Address) ToPB() *network.Address

ToPB - Get the Protobuf object for the Host

type Service

type Service network.Service

Service - A service somewhere on a network. The type has several categories of fields: general information, and Nmap-compliant fields (fingerprints, protocols, banners, versions)

func (*Service) AsEntity

func (s *Service) AsEntity() maltego.Entity

AsEntity - Returns the Service as a valid Maltego Entity.

func (*Service) ToORM

func (s *Service) ToORM(ctx context.Context) (network.ServiceORM, error)

ToORM - Get the SQL object for the Service

func (*Service) ToPB

func (s *Service) ToPB() *network.Service

ToPB - Get the Protobuf object for the Service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL