cmd

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalCommands = []*cli.Command{
	searchCmd,
	accountCmd,
	countCmd,
	statsCmd,
	iconCmd,
	randomCmd,
	hostCmd,
	dumpCmd,
	domainsCmd,
}

GlobalCommands global commands

View Source
var GlobalOptions = []cli.Flag{
	&cli.StringFlag{
		Name:        "fofaURL",
		Aliases:     []string{"u"},
		Value:       gofofa.FofaURLFromEnv(),
		Usage:       "format: <url>/?email=<email>&key=<key>&version=<v2>",
		Destination: &fofaURL,
	},
	&cli.BoolFlag{
		Name:  "verbose",
		Usage: "print more information",
	},
	&cli.BoolFlag{
		Name:  "accountDebug",
		Usage: "print account in error log",
	},
}

GlobalOptions global options

Functions

func BeforAction

func BeforAction(context *cli.Context) error

BeforAction generate fofa client

func DomainsAction added in v0.1.16

func DomainsAction(ctx *cli.Context) error

DomainsAction extend domains action

func DumpAction added in v0.1.12

func DumpAction(ctx *cli.Context) error

DumpAction search action

func IsValidCommand

func IsValidCommand(cmd string) bool

IsValidCommand valid command name

func SearchAction

func SearchAction(ctx *cli.Context) error

SearchAction search action

Types

This section is empty.

Jump to

Keyboard shortcuts

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