runner

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 40 Imported by: 46

Documentation

Overview

Package runner executes the enumeration process.

Index

Constants

View Source
const Version = `v1.0.7`

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
	RequestURIs      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
	VHostInput         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
	TechDetect          bool
	TLSGrab             bool

	ShowStatistics      bool
	RandomAgent         bool
	StoreChain          bool
	Deny                customlist.CustomList
	Allow               customlist.CustomList
	MaxResponseBodySize int
	OutputExtractRegex  string
	// contains filtered or unexported fields
}

Options contains configuration options for httpx.

func ParseOptions

func ParseOptions() *Options

ParseOptions parses the command line options for application

type Result

type Result struct {
	Timestamp      time.Time `json:"timestamp,omitempty"`
	Request        string    `json:"request,omitempty"`
	ResponseHeader string    `json:"response-header,omitempty"`
	Scheme         string    `json:"scheme,omitempty"`
	Port           string    `json:"port,omitempty"`
	Path           string    `json:"path,omitempty"`
	BodySHA256     string    `json:"body-sha256,omitempty"`
	HeaderSHA256   string    `json:"header-sha256,omitempty"`
	A              []string  `json:"a,omitempty"`
	CNAMEs         []string  `json:"cnames,omitempty"`

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

	WebServer        string            `json:"webserver,omitempty"`
	ResponseBody     string            `json:"response-body,omitempty"`
	ContentType      string            `json:"content-type,omitempty"`
	Method           string            `json:"method,omitempty"`
	Host             string            `json:"host,omitempty"`
	ContentLength    int               `json:"content-length,omitempty"`
	ChainStatusCodes []int             `json:"chain-status-codes,omitempty"`
	StatusCode       int               `json:"status-code,omitempty"`
	TLSData          *httpx.TLSData    `json:"tls-grab,omitempty"`
	CSPData          *httpx.CSPData    `json:"csp,omitempty"`
	VHost            bool              `json:"vhost,omitempty"`
	WebSocket        bool              `json:"websocket,omitempty"`
	Pipeline         bool              `json:"pipeline,omitempty"`
	HTTP2            bool              `json:"http2,omitempty"`
	CDN              bool              `json:"cdn,omitempty"`
	ResponseTime     string            `json:"response-time,omitempty"`
	Technologies     []string          `json:"technologies,omitempty"`
	Chain            []httpx.ChainItem `json:"chain,omitempty"`
	FinalURL         string            `json:"final-url,omitempty"`
	// contains filtered or unexported fields
}

Result of a scan

func (Result) JSON

func (r Result) JSON(scanopts *scanOptions) 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 (r *Runner) Close()

Close closes the httpx scan instance

func (*Runner) RunEnumeration

func (r *Runner) RunEnumeration()

RunEnumeration on targets for httpx client

Jump to

Keyboard shortcuts

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