runner

package
v0.0.0-...-58f2d6f Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const ToolName = `pagode`

Name

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Client         *http.Client
	APIKey         []string
	SearchEngineID []string
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(apiKey []string, searchId []string, proxy string) *Agent

func (*Agent) Dork

func (a *Agent) Dork(query string) ([]string, error)

type Options

type Options struct {
	Verbose    bool                // Verbose flag indicates whether to show verbose output or not
	NoColor    bool                // NoColor disables the colored output
	Silent     bool                // Silent suppresses any extra text and only writes results to screen
	Stdin      bool                // Stdin specifies whether stdin input was given to the process
	Version    bool                // Version specifies if we should just show version and exit
	Threads    int                 // Threads controls the number of threads to use for enumerations
	Dork       goflags.StringSlice // Dork is the dork(s) to search with
	DorksFile  string              // DorksFile is the file containing list of dorks to search with
	Domain     string              // Domain to specify in the searches
	Output     io.Writer
	OutputFile string // Output is the file to write results to.
	Proxy      string // proxy URL to use for the requests
	Results    int    // Maximum number of results per search
	Config     string // Config contains the location of the config file
}

Options contains the configuration options for tuning the google enumeration process.

func ParseOptions

func ParseOptions() *Options

ParseOptions parses the command line flags provided by a user

func (*Options) UnmarshalFrom

func (options *Options) UnmarshalFrom(file string) (map[string][]string, error)

UnmarshalFrom reads the marshaled yaml config from disk

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner is an instance of the dork enumeration client used to orchestrate the whole process.

func NewRunner

func NewRunner(options *Options) (*Runner, error)

NewRunner creates a new runner struct instance by parsing the configuration options, configuring sources, reading lists and setting up loggers, etc.

func (*Runner) EnumerateDorks

func (r *Runner) EnumerateDorks(reader io.Reader, writer io.Writer) error

func (*Runner) RunEnumeration

func (r *Runner) RunEnumeration() error

RunEnumeration wraps RunEnumerationWithCtx with an empty context

type SearchResponse

type SearchResponse struct {
	Items []struct {
		Link string `json:"link"`
	} `json:"items"`
}

Jump to

Keyboard shortcuts

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