runner

package
v1.0.4-0...-cd4b18d Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

Package runner executes the enumeration process.

Index

Constants

View Source
const Version = `1.0.3`

Version is the current version of httpx

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	CustomHeaders customheader.CustomHeaders
	CustomPorts   customport.CustomPorts

	Output                    string
	StoreResponseDir          string
	HTTPProxy                 string
	SocksProxy                string
	InputFile                 string
	Methods                   string
	RequestURI                string
	OutputMatchStatusCode     string
	OutputMatchContentLength  string
	OutputFilterStatusCode    string
	OutputFilterContentLength string
	InputRawRequest           string

	RequestBody        string
	OutputFilterString string
	OutputMatchString  string
	OutputFilterRegex  string
	OutputMatchRegex   string
	Retries            int
	Threads            int
	Timeout            int

	VHost              bool
	Smuggling          bool
	ExtractTitle       bool
	StatusCode         bool
	Location           bool
	ContentLength      bool
	FollowRedirects    bool
	StoreResponse      bool
	JSONOutput         bool
	Silent             bool
	Version            bool
	Verbose            bool
	NoColor            bool
	OutputServerHeader bool
	OutputWebSocket    bool

	FollowHostRedirects bool
	OutputMethod        bool
	TLSProbe            bool
	CSPProbe            bool
	OutputContentType   bool
	OutputIP            bool
	OutputCName         bool
	Unsafe              bool
	Debug               bool
	Pipeline            bool
	HTTP2Probe          bool
	OutputCDN           bool
	OutputResponseTime  bool
	NoFallback          bool

	ShowStatistics bool
	// contains filtered or unexported fields
}

Options contains configuration options for chaos client. nolint:maligned // ignore

func ParseOptions

func ParseOptions() *Options

ParseOptions parses the command line options for application

type Result

type Result struct {
	IPs    []string `json:"ips"`
	CNAMEs []string `json:"cnames,omitempty"`

	URL      string `json:"url"`
	Location string `json:"location"`
	Title    string `json:"title"`

	WebServer     string         `json:"webserver"`
	Response      string         `json:"serverResponse,omitempty"`
	ContentType   string         `json:"content-type,omitempty"`
	Method        string         `json:"method"`
	IP            string         `json:"ip"`
	ContentLength int            `json:"content-length"`
	StatusCode    int            `json:"status-code"`
	TLSData       *httpx.TLSData `json:"tls,omitempty"`
	CSPData       *httpx.CSPData `json:"csp,omitempty"`
	VHost         bool           `json:"vhost"`
	WebSocket     bool           `json:"websocket,omitempty"`
	Pipeline      bool           `json:"pipeline,omitempty"`
	HTTP2         bool           `json:"http2"`
	CDN           bool           `json:"cdn,omitempty"`
	ResponseTime  string         `json:"response-time"`
	// contains filtered or unexported fields
}

Result of a scan

func (*Result) JSON

func (r *Result) JSON() string

JSON the result

type Runner

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

Runner is a client for running the enumeration process.

func New

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

New creates a new client for running enumeration process.

func (*Runner) Close

func (runner *Runner) Close()

Close the instance

func (*Runner) RunEnumeration

func (runner *Runner) RunEnumeration()

RunEnumeration on targets

Jump to

Keyboard shortcuts

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