maltego

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: BSD-3-Clause, GPL-3.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// ExecutablePath points to the netcap binary on disk
	ExecutablePath = "/usr/local/bin/net"

	// PropertyIpAddr is the name of maltego property that contains the IP address
	PropertyIpAddr = "ipaddr"

	// PropertyIpAddrLabel is the label for the ip address property
	PropertyIpAddrLabel = "IPAddress"
)

Variables

View Source
var CountIPPackets = func(profile *types.Host, mac string, min, max *uint64, _ map[string]*types.Host) {
	if uint64(profile.NumPackets) < *min {
		*min = uint64(profile.NumPackets)
	}
	if uint64(profile.NumPackets) > *max {
		*max = uint64(profile.NumPackets)
	}
}

CountIPPackets returns the lowest and highest number of packets seen for a given IPProfile.

View Source
var CountIncomingConnBytesFiltered = func(conn *types.Connection, ipaddr string, min, max *uint64, sizes *[]int) {
	if conn.DstIP == ipaddr {
		name := resolvers.LookupDNSNameLocal(conn.SrcIP)
		if name != "" {
			if !resolvers.IsWhitelistedDomain(name) {
				*sizes = append(*sizes, int(conn.TotalSize))

				if uint64(conn.TotalSize) < *min {
					*min = uint64(conn.TotalSize)
				}
				if uint64(conn.TotalSize) > *max {
					*max = uint64(conn.TotalSize)
				}
			}
		} else {

			*sizes = append(*sizes, int(conn.TotalSize))

			if uint64(conn.TotalSize) < *min {
				*min = uint64(conn.TotalSize)
			}
			if uint64(conn.TotalSize) > *max {
				*max = uint64(conn.TotalSize)
			}
		}
	}
}

CountIncomingConnBytesFiltered countIncomingconnPackets returns the lowest and highest number of bytes transferred as well as an array of sizes seen for all incoming conns for a given ip address filtered against the domain whitelist.

View Source
var CountOutgoingConnBytesFiltered = func(conn *types.Connection, ipaddr string, min, max *uint64, sizes *[]int) {
	if conn.SrcIP == ipaddr {
		name := resolvers.LookupDNSNameLocal(conn.DstIP)
		if name != "" {
			if !resolvers.IsWhitelistedDomain(name) {
				*sizes = append(*sizes, int(conn.TotalSize))

				if uint64(conn.TotalSize) < *min {
					*min = uint64(conn.TotalSize)
				}
				if uint64(conn.TotalSize) > *max {
					*max = uint64(conn.TotalSize)
				}
			}
		} else {

			*sizes = append(*sizes, int(conn.TotalSize))

			if uint64(conn.TotalSize) < *min {
				*min = uint64(conn.TotalSize)
			}
			if uint64(conn.TotalSize) > *max {
				*max = uint64(conn.TotalSize)
			}
		}
	}
}

CountOutgoingConnBytesFiltered returns the lowest and highest number of bytes transferred as well as an array of sizes seen for all outgoing conns from a given ip address filtered against the domain whitelist.

View Source
var CountPacketsContactIPs = func(profile *types.DeviceProfile, mac string, min, max *uint64, ips map[string]*types.Host) {
	if profile.MacAddr != mac {
		return
	}
	for _, ip := range profile.Contacts {
		countIP(ips, ip, min, max)
	}
}

CountPacketsContactIPs returns the lowest and highest number of packets seen for all ContactIPs of a given DeviceProfile.

View Source
var CountPacketsDeviceIPs = func(profile *types.DeviceProfile, mac string, min, max *uint64, ips map[string]*types.Host) {
	if profile.MacAddr != mac {
		for _, ip := range profile.DeviceIPs {
			countIP(ips, ip, min, max)
		}
	}
}

CountPacketsDeviceIPs CountPacketsDevices returns the lowest and highest number of packets seen for all DeviceIPs of a given DeviceProfile.

View Source
var CountPacketsDevices = func(profile *types.DeviceProfile, mac string, min, max *uint64, _ map[string]*types.Host) {
	if uint64(profile.NumPackets) < *min {
		*min = uint64(profile.NumPackets)
	}
	if uint64(profile.NumPackets) > *max {
		*max = uint64(profile.NumPackets)
	}
}

CountPacketsDevices returns the lowest and highest number of packets seen for a given DeviceProfile.

Functions

func ARPTransform

func ARPTransform(count ARPCountFunc, transform ARPTransformationFunc, continueTransform bool)

ARPTransform applies a maltego transformation over ARP audit records.

func ConnectionTransform

func ConnectionTransform(count connCountFunc, transform connTransformationFunc)

ConnectionTransform applies a maltego transformation over types.Connection audit records.

func DHCPV4Transform

func DHCPV4Transform(count DHCPCountFunc, transform DHCPV4TransformationFunc, continueTransform bool)

DHCPV4Transform applies a maltego transformation over DHCP audit records.

func DHCPV6Transform

func DHCPV6Transform(count DHCPCountFunc, transform DHCPV6TransformationFunc, continueTransform bool)

DHCPV6Transform applies a maltego transformation over DHCP audit records.

func DNSTransform

func DNSTransform(count DNSCountFunc, transform DNSTransformationFunc, continueTransform bool)

DNSTransform applies a maltego transformation over DNS audit records.

func DeviceProfileTransform

func DeviceProfileTransform(count deviceProfileCountFunc, transform deviceProfileTransformationFunc)

DeviceProfileTransform applies a maltego transformation DeviceProfile audit records.

func EthernetTransform

func EthernetTransform(count EthernetCountFunc, transform EthernetTransformationFunc, continueTransform bool)

EthernetTransform applies a maltego transformation over Ethernet audit records.

func ExploitTransform

func ExploitTransform(count exploitCountFunc, transform exploitTransformationFunc)

ExploitTransform applies a maltego transformation over Exploit exploits seen for a target Exploit.

func FilesTransform

func FilesTransform(count filesCountFunc, transform filesTransformationFunc)

FilesTransform applies a maltego transformation over File audit records.

func HTTPTransform

func HTTPTransform(count HTTPCountFunc, transform HTTPTransformationFunc, continueTransform bool)

HTTPTransform applies a maltego transformation over HTTP audit records.

func HostTransform

func HostTransform(count hostCountFunc, transform HostTransformationFunc)

HostTransform applies a maltego transformation over IP profiles

func ICMPv4Transform

func ICMPv4Transform(count ICMPv4CountFunc, transform ICMPv4TransformationFunc)

ICMPv4Transform applies a maltego transformation over ICMPv4 audit records.

func ICMPv6Transform

func ICMPv6Transform(count ICMPv6CountFunc, transform ICMPv6TransformationFunc)

ICMPv6Transform applies a maltego transformation over ICMPv6 audit records.

func IGMPTransform

func IGMPTransform(count IGMPCountFunc, transform IGMPTransformationFunc, continueTransform bool)

IGMPTransform applies a maltego transformation over IGMP audit records.

func IPv4Transform

func IPv4Transform(count ipCountFunc, transform IPv4TransformationFunc, continueTransform bool)

IPv4Transform applies a maltego transformation over IP profiles

func IPv6HopByHopTransform

func IPv6HopByHopTransform(count ipv6CountFunc, transform IPv6HopByHopTransformationFunc)

IPv6HopByHopTransform applies a maltego transformation over IP profiles

func IPv6Transform

func IPv6Transform(count ipv6CountFunc, transform IPv6TransformationFunc, continueTransform bool)

IPv6Transform applies a maltego transformation over IP profiles

func LoadHosts

func LoadHosts() map[string]*types.Host

LoadHosts will load the ipProfiles into memory and return them.

func LoadMails

func LoadMails() map[string]*types.Mail

LoadMails will load the email audit records into memory and return them.

func MailTransform

func MailTransform(count MailCountFunc, transform MailTransformationFunc)

MailTransform applies a maltego transformation over Mail audit records.

func NTPTransform

func NTPTransform(count NTPCountFunc, transform NTPTransformationFunc, continueTransform bool)

NTPTransform applies a maltego transformation over NTP audit records.

func POP3Transform

func POP3Transform(count POP3CountFunc, transform POP3TransformationFunc, continueTransform bool)

POP3Transform applies a maltego transformation over POP3 audit records.

func SMTPTransform

func SMTPTransform(count SMTPCountFunc, transform SMTPTransformationFunc, continueTransform bool)

SMTPTransform applies a maltego transformation over SMTP audit records.

func SSHTransform

func SSHTransform(count SSHCountFunc, transform SSHTransformationFunc)

SSHTransform applies a maltego transformation over SSH sshs seen for a target SSH.

func SecretTransform

func SecretTransform(count secretCountFunc, transform secretTransformationFunc)

SecretTransform applies a maltego transformation over Secret records seen for a target Secret.

func ServiceTransform

func ServiceTransform(count serviceCountFunc, transform serviceTransformationFunc, continueTransform bool)

ServiceTransform applies a maltego transformation over Service profiles seen for a target Service.

func SoftwareTransform

func SoftwareTransform(count softwareCountFunc, transform softwareTransformationFunc)

SoftwareTransform applies a maltego transformation over Software profiles seen for a target Software.

func TCPTransform

func TCPTransform(count TCPCountFunc, transform TCPTransformationFunc, continueTransform bool)

TCPTransform applies a maltego transformation over TCP audit records.

func TLSClientHelloTransform

func TLSClientHelloTransform(count TLSClientHelloCountFunc, transform TLSClientHelloTransformationFunc)

TLSClientHelloTransform applies a maltego transformation over TLSClientHello audit records.

func TLSServerHelloTransform

func TLSServerHelloTransform(count TLSServerHelloCountFunc, transform TLSServerHelloTransformationFunc)

TLSServerHelloTransform applies a maltego transformation over TLSServerHello audit records.

func UDPTransform

func UDPTransform(count UDPCountFunc, transform UDPTransformationFunc, continueTransform bool)

UDPTransform applies a maltego transformation over UDP audit records.

func VulnerabilityTransform

func VulnerabilityTransform(count vulnerabilityCountFunc, transform vulnerabilityTransformationFunc)

VulnerabilityTransform applies a maltego transformation over Vulnerability vulns seen for a target Vulnerability.

Types

type ARPCountFunc

type ARPCountFunc func()

ARPCountFunc is a function that counts something over multiple ARP audit records.

type ARPTransformationFunc

type ARPTransformationFunc = transformationFunc[types.ARP]

ARPTransformationFunc is a transformation over ARP audit records.

type DHCPCountFunc

type DHCPCountFunc func()

DHCPCountFunc is a function that counts something over multiple DHCP audit records.

type DHCPV4TransformationFunc

type DHCPV4TransformationFunc = transformationFunc[types.DHCPv4]

DHCPV4TransformationFunc is a transformation over DHCPv4 audit records.

type DHCPV6TransformationFunc

type DHCPV6TransformationFunc = transformationFunc[types.DHCPv6]

DHCPV6TransformationFunc is a transformation over DHCPv6 audit records.

type DNSCountFunc

type DNSCountFunc func()

DNSCountFunc is a function that counts something over multiple DNS audit records.

type DNSTransformationFunc

type DNSTransformationFunc = transformationFunc[types.DNS]

DNSTransformationFunc is a transformation over DNS audit records.

type EthernetCountFunc

type EthernetCountFunc func()

EthernetCountFunc is a function that counts something over multiple Ethernet audit records.

type EthernetTransformationFunc

type EthernetTransformationFunc = transformationFunc[types.Ethernet]

EthernetTransformationFunc is a transformation over Ethernet audit records.

type HTTPCountFunc

type HTTPCountFunc = func(http *types.HTTP, min, max *uint64)

HTTPCountFunc is a function that counts something over multiple HTTP audit records.

type HTTPTransformationFunc

type HTTPTransformationFunc = transformationFunc[types.HTTP]

HTTPTransformationFunc is a transformation over HTTP audit records.

type HostTransformationFunc

type HostTransformationFunc = transformationWithMACFunc[types.Host]

HostTransformationFunc is a transformation over IP profiles

type ICMPv4CountFunc

type ICMPv4CountFunc func()

ICMPv4CountFunc is a function that counts something over multiple ICMPv4 audit records.

type ICMPv4TransformationFunc

type ICMPv4TransformationFunc = transformationFunc[types.ICMPv4]

ICMPv4TransformationFunc is a transformation over ICMPv4 audit records.

type ICMPv6CountFunc

type ICMPv6CountFunc func()

ICMPv6CountFunc is a function that counts something over multiple ICMPv6 audit records.

type ICMPv6TransformationFunc

type ICMPv6TransformationFunc = transformationFunc[types.ICMPv6]

ICMPv6TransformationFunc is a transformation over ICMPv6 audit records.

type IGMPCountFunc

type IGMPCountFunc func()

IGMPCountFunc is a function that counts something over multiple IGMP audit records.

type IGMPTransformationFunc

type IGMPTransformationFunc = transformationFunc[types.IGMP]

IGMPTransformationFunc is a transformation over IGMP audit records.

type IPTransformationFunc

type IPTransformationFunc = transformationWithMACFunc[types.Host]

IPTransformationFunc is a transformation over IP profiles for a selected DeviceProfile.

type IPv4TransformationFunc

type IPv4TransformationFunc = transformationWithMACFunc[types.IPv4]

IPv4TransformationFunc is a transformation over IPv4 audit records

type IPv6HopByHopTransformationFunc

type IPv6HopByHopTransformationFunc = transformationWithMACFunc[types.IPv6HopByHop]

IPv6HopByHopTransformationFunc is a transformation over IPv6HopByHop audit records

type IPv6TransformationFunc

type IPv6TransformationFunc = transformationWithMACFunc[types.IPv6]

IPv6TransformationFunc is a transformation over IPv6 audit records

type MailCountFunc

type MailCountFunc func()

MailCountFunc is a function that counts something over multiple Mail audit records.

type MailTransformationFunc

type MailTransformationFunc = transformationFunc[types.Mail]

MailTransformationFunc is a transformation over Mail audit records.

type NTPCountFunc

type NTPCountFunc func()

NTPCountFunc is a function that counts something over multiple NTP audit records.

type NTPTransformationFunc

type NTPTransformationFunc = transformationFunc[types.NTP]

NTPTransformationFunc is a transformation over NTP audit records.

type POP3CountFunc

type POP3CountFunc func()

POP3CountFunc is a function that counts something over multiple POP3 audit records.

type POP3TransformationFunc

type POP3TransformationFunc = transformationFunc[types.POP3]

POP3TransformationFunc is a transformation over POP3 audit records.

type SMTPCountFunc

type SMTPCountFunc func()

SMTPCountFunc is a function that counts something over multiple SMTP audit records.

type SMTPTransformationFunc

type SMTPTransformationFunc = transformationFunc[types.SMTP]

SMTPTransformationFunc is a transformation over SMTP audit records.

type SSHCountFunc

type SSHCountFunc = countFunc[types.SSH]

SSHCountFunc deviceProfileCountFunc is a function that counts something over DeviceProfiles.

type SSHTransformationFunc

type SSHTransformationFunc = transformationWithMACFunc[types.SSH]

SSHTransformationFunc is a transformation over SSH sshs for a selected SSH.

type TCPCountFunc

type TCPCountFunc func()

TCPCountFunc is a function that counts something over multiple TCP audit records.

type TCPTransformationFunc

type TCPTransformationFunc = transformationFunc[types.TCP]

TCPTransformationFunc is a transformation over TCP audit records.

type TLSClientHelloCountFunc

type TLSClientHelloCountFunc func()

TLSClientHelloCountFunc is a function that counts something over multiple TLSClientHello audit records.

type TLSClientHelloTransformationFunc

type TLSClientHelloTransformationFunc = transformationFunc[types.TLSClientHello]

TLSClientHelloTransformationFunc is a transformation over TLSClientHello audit records.

type TLSServerHelloCountFunc

type TLSServerHelloCountFunc func()

TLSServerHelloCountFunc is a function that counts something over multiple TLSServerHello audit records.

type TLSServerHelloTransformationFunc

type TLSServerHelloTransformationFunc = transformationFunc[types.TLSServerHello]

TLSServerHelloTransformationFunc is a transformation over TLSServerHello audit records.

type UDPCountFunc

type UDPCountFunc func()

UDPCountFunc is a function that counts something over multiple UDP audit records.

type UDPTransformationFunc

type UDPTransformationFunc = transformationFunc[types.UDP]

UDPTransformationFunc is a transformation over UDP audit records.

Jump to

Keyboard shortcuts

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