runner

package
v0.0.0-...-b4c4ef8 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const Version = `v1.0.0`

Version is the current version of httpx

Variables

View Source
var (
	CONFIG finger.Config
)
View Source
var CSPHeaders = []string{
	"Content-Security-Policy",
	"Content-Security-Policy-Report-Only",
	"X-Content-Security-Policy-Report-Only",
	"X-Webkit-Csp-Report-Only",
}

CSPHeaders is an incomplete list of most common CSP headers

Functions

func RequestByChrome

func RequestByChrome(url string, screenPath string) (title []string, err error)

func ShowBanner

func ShowBanner()

ShowBanner used to show the banner to the user

Types

type CSPData

type CSPData struct {
	Domains []string `json:"domains,omitempty"`
}

CSPData contains the Content-Security-Policy domain list

func CSPGrab

func CSPGrab(r *http.Response) *CSPData

CSPGrab fills the CSPData

type Response

type Response struct {
	StatusCode    int
	Headers       map[string][]string
	Host          string
	URL           *url.URL
	Title         string
	Data          []byte
	ContentLength int
	Raw           string
	RawHeaders    string
	Words         int
	Lines         int
	CSPData       *CSPData
	HTTP2         bool
	Pipeline      bool
	Duration      time.Duration
}

Response contains the response to a server

type Result

type Result struct {
	Raw           string
	URL           string   `json:"url,omitempty"`
	Location      string   `json:"location,omitempty"`
	Title         string   `json:"title,omitempty"`
	Host          string   `json:"host,omitempty"`
	ContentLength int64    `json:"content-length,omitempty"`
	StatusCode    int      `json:"status-code,omitempty"`
	VHost         string   `json:"vhost,omitempty"`
	CDN           string   `json:"cdn,omitempty"`
	Finger        []string `json:"finger,omitempty"`
	DirBruteRs    []string `json:"dir"`
	Technologies  []string `json:"technologies,omitempty"`
}

Result of a scan

type Runner

type Runner struct {
	Dialer *fastdialer.Dialer

	DirStatus brute.DirStatus
	DirBrutes []brute.DirBrute
	// contains filtered or unexported fields
}

Runner A user options

func New

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

func (*Runner) CreateRunner

func (r *Runner) CreateRunner()

CreateRunner 创建扫描

func (*Runner) Do

func (r *Runner) Do(req *http.Request) (*Response, error)

func (*Runner) GetFaviconHash

func (r *Runner) GetFaviconHash(url string) (hash string, err error)

func (*Runner) Request

func (r *Runner) Request(method string, url string, redirect bool) (resp Response, err error)

Jump to

Keyboard shortcuts

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