format

package
v3.0.0-...-1a23d99 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 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.19.3"

	// 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

func FprintBanner(out io.Writer)

FprintBanner outputs the Amass banner the same for all tools.

func FprintEnumerationSummary

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

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

type ParseASNs []int

ParseASNs implements the flag.Value interface.

func (*ParseASNs) Set

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

Set implements the flag.Value interface.

func (*ParseASNs) String

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