format

package
v3.22.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Version is used to display the current version of Amass.
	Version = "v3.22.2"

	// Author is used to display the Amass Project Team.
	Author = "OWASP Amass Project - @owaspamass"

	// Description is the slogan for the Amass Project.
	Description = "In-depth Attack Surface Mapping and Asset Discovery"
)
View Source

Banner is the ASCII art logo used within help output.

Variables

This section is empty.

Functions

func DesiredAddrTypes

func DesiredAddrTypes(addrs []requests.AddressInfo, ipv4, ipv6 bool) []requests.AddressInfo

DesiredAddrTypes removes undesired address types from the AddressInfo slice.

func FprintBanner added in v3.9.0

func FprintBanner(out io.Writer)

FprintBanner outputs the Amass banner the same for all tools.

func FprintEnumerationSummary added in v3.9.0

func FprintEnumerationSummary(out io.Writer, total int, tags map[string]int, asns map[int]*ASNSummaryData, demo bool)

FprintEnumerationSummary outputs the summary information utilized by the command-line tools.

func InterfaceInfo added in v3.10.0

func InterfaceInfo() string

InterfaceInfo returns network interface information specific to the current host.

func OutputLineParts

func OutputLineParts(out *requests.Output, src, addrs, demo bool) (source, name, ips string)

OutputLineParts returns the parts of a line to be printed for a requests.Output.

func PrintBanner

func PrintBanner()

PrintBanner outputs the Amass banner to stderr.

func PrintEnumerationSummary

func PrintEnumerationSummary(total int, tags map[string]int, asns map[int]*ASNSummaryData, demo bool)

PrintEnumerationSummary outputs the summary information utilized by the command-line tools.

func UpdateSummaryData

func UpdateSummaryData(output *requests.Output, tags map[string]int, asns map[int]*ASNSummaryData)

UpdateSummaryData updates the summary maps using the provided requests.Output data.

Types

type ASNSummaryData

type ASNSummaryData struct {
	Name      string
	Netblocks map[string]int
}

ASNSummaryData stores information related to discovered ASs and netblocks.

type ParseASNs added in v3.12.3

type ParseASNs []int

ParseASNs implements the flag.Value interface.

func (*ParseASNs) Set added in v3.12.3

func (p *ParseASNs) Set(s string) error

Set implements the flag.Value interface.

func (*ParseASNs) String added in v3.12.3

func (p *ParseASNs) String() string

type ParseCIDRs

type ParseCIDRs []*net.IPNet

ParseCIDRs implements the flag.Value interface.

func (*ParseCIDRs) Set

func (p *ParseCIDRs) Set(s string) error

Set implements the flag.Value interface.

func (*ParseCIDRs) String

func (p *ParseCIDRs) String() string

type ParseIPs

type ParseIPs []net.IP

ParseIPs implements the flag.Value interface.

func (*ParseIPs) Set

func (p *ParseIPs) Set(s string) error

Set implements the flag.Value interface.

func (*ParseIPs) String

func (p *ParseIPs) String() string

type ParseInts

type ParseInts []int

ParseInts implements the flag.Value interface.

func (*ParseInts) Set

func (p *ParseInts) Set(s string) error

Set implements the flag.Value interface.

func (*ParseInts) String

func (p *ParseInts) String() string

type ParseStrings

type ParseStrings []string

ParseStrings implements the flag.Value interface.

func (*ParseStrings) Set

func (p *ParseStrings) Set(s string) error

Set implements the flag.Value interface.

func (*ParseStrings) String

func (p *ParseStrings) String() string

Jump to

Keyboard shortcuts

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