input

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PortScanTimeout  = 3
	DefaultUserAgent = "Go http/Client"
)

Variables

This section is empty.

Functions

func CreateSubdomains

func CreateSubdomains(filename string, scheme string, url string) []string

CreateSubdomains returns a list of subdomains from the default file subdomains.txt.

func CreateUrls

func CreateUrls(filename string, scheme string, url string) []string

CreateUrls returns a list of directories from the default file dirs.txt.

func DNSSubcommandCheckFlags

func DNSSubcommandCheckFlags(dnsCommand flag.FlagSet, dnsTargetPtr, dnsOutputJSON,
	dnsOutputHTML, dnsOutputTXT *string)

DNSSubcommandCheckFlags performs all the necessary checks on the flags for the dns subcommand.

func DirSubcommandCheckFlags

func DirSubcommandCheckFlags(dirCommand flag.FlagSet, dirTargetPtr *string,
	dirIgnorePtr *string, dirOutputJSON, dirOutputHTML, dirOutputTXT, dirUserAgentPtr *string,
	dirRandomUserAgentPtr *bool) []string

DirSubcommandCheckFlags performs all the necessary checks on the flags for the dir subcommand.

func GetKey added in v1.3.0

func GetKey(api string) string

GetKey reads the key for the given api.

func PortSubcommandCheckFlags

func PortSubcommandCheckFlags(portCommand flag.FlagSet, portTargetPtr *string, portsPtr *string,
	portCommonPtr *bool, startPort int, endPort int, portTimeout *int,
	portOutputJSON, portOutputHTML, portOutputTXT *string) (int, int, []int, bool)

PortSubcommandCheckFlags performs all the necessary checks on the flags for the port subcommand.

func ReadDictDirs

func ReadDictDirs(inputFile string) []string

ReadDictDirs reads all the possible dirs from input file.

func ReadDictSubs

func ReadDictSubs(inputFile string) []string

ReadDictSubs reads all the possible subdomains from file.

func ReportSubcommandCheckFlags

func ReportSubcommandCheckFlags(reportCommand flag.FlagSet, reportTargetPtr *string,
	reportPortsPtr *string, reportCommonPtr *bool, reportVirusTotalPtr *bool, reportSubdomainDBPtr *bool,
	startPort int, endPort int, reportIgnoreDirPtr *string,
	reportIgnoreSubPtr *string, reportTimeoutPort *int,
	reportOutputJSON, reportOutputHTML, reportOutputTXT, reportUserAgentPtr *string,
	reportRandomUserAgentPtr *bool) (int, int, []int, bool, []string, []string)

ReportSubcommandCheckFlags performs all the necessary checks on the flags for the report subcommand.

func SubdomainSubcommandCheckFlags

func SubdomainSubcommandCheckFlags(subdomainCommand flag.FlagSet, subdomainTargetPtr *string,
	subdomainNoCheckPtr *bool, subdomainDBPtr *bool, subdomainWordlistPtr *string,
	subdomainIgnorePtr *string, subdomainCrawlerPtr *bool, subdomainVirusTotalPtr *bool, subdomainBuiltWithPtr *bool,
	subdomainOutputJSON, subdomainOutputHTML, subdomainOutputTXT, subdomainUserAgentPtr *string,
	subdomainRandomUserAgentPtr *bool, subdomainDNSPtr *string, subdomainAlivePtr *bool) []string

SubdomainSubcommandCheckFlags performs all the necessary checks on the flags for the subdomain subcommand.

Types

type Input

type Input struct {
	ReportTarget             string
	ReportWordDir            string
	ReportWordSub            string
	ReportOutputJSON         string
	ReportOutputHTML         string
	ReportOutputTXT          string
	ReportIgnoreDir          []string
	ReportIgnoreSub          []string
	ReportCrawlerDir         bool
	ReportCrawlerSub         bool
	ReportSubdomainDB        bool
	ReportCommon             bool
	ReportRedirect           bool
	ReportVirusTotal         bool
	ReportTimeoutPort        int
	ReportUserAgent          string
	ReportRandomUserAgent    bool
	ReportDNS                string
	ReportAlive              bool
	DNSTarget                string
	DNSOutputJSON            string
	DNSOutputHTML            string
	DNSOutputTXT             string
	DNSPlain                 bool
	SubdomainTarget          string
	SubdomainWord            string
	SubdomainOutputJSON      string
	SubdomainOutputHTML      string
	SubdomainOutputTXT       string
	SubdomainIgnore          []string
	SubdomainCrawler         bool
	SubdomainDB              bool
	SubdomainPlain           bool
	SubdomainNoCheck         bool
	SubdomainVirusTotal      bool
	SubdomainBuiltWith       bool
	SubdomainUserAgent       string
	SubdomainRandomUserAgent bool
	SubdomainDNS             string
	SubdomainAlive           bool
	DirTarget                string
	DirWord                  string
	DirOutputJSON            string
	DirOutputHTML            string
	DirOutputTXT             string
	DirIgnore                []string
	DirCrawler               bool
	DirPlain                 bool
	DirRedirect              bool
	DirUserAgent             string
	DirRandomUserAgent       bool
	PortTarget               string
	PortOutputJSON           string
	PortOutputHTML           string
	PortOutputTXT            string
	StartPort                int
	EndPort                  int
	PortArrayBool            bool
	PortsArray               []int
	PortCommon               bool
	PortPlain                bool
	PortTimeout              int
}

Input is the struct containing the input parameters.

func ReadArgs

func ReadArgs() Input

ReadArgs reads arguments/options from stdin. Subcommands:

report		==> Full report
dns			==> Dns records enumeration
subdomains	==> Subdomains enumeration
port		==> ports enumeration
dir			==> directiories enumeration
help		==> doc
examples	==> examples

type Keys

type Keys struct {
	VirusTotal string `yaml:"VirusTotal,omitempty"`
	BuiltWith  string `yaml:"BuiltWith,omitempty"`
}

Keys is a struct representing the format of the keys.yaml file.

func ReadKeys

func ReadKeys(filename string) (Keys, error)

ReadKeys gets as input a filename (keys.yaml) and returns a Keys object.

Jump to

Keyboard shortcuts

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