fuzzer

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Context        context.Context `json:"context"`
	Cookie         string          `json:"cookie"`
	Delay          string          `json:"delay"`
	FollowRedirect bool            `json:"follow_redirect"`
	FuzzType       string          `json:"fuzztype"`
	EGG            bool            `json:"egg"`
	Header         string          `json:"header"`
	HideKeyword    string          `json:"hide_keyword"`
	HideLength     string          `json:"hide_length"`
	HideStatus     string          `json:"hide_status"`
	HideWords      string          `jsong:"hide_words"`
	Host           string          `json:"host"`
	MatchKeyword   string          `json:"match_keyword"`
	MatchLength    string          `json:"match_length"`
	MatchStatus    string          `json:"match_status"`
	MatchWords     string          `json:"match_words"`
	Method         string          `json:"method"`
	PostData       string          `json:"post_data"`
	Proxy          string          `jsong:"proxy"`
	Retry          int             `json:"retry"`
	Scan           bool            `json:"scan"`
	Threads        int             `json:"threads"`
	Timeout        int             `json:"timeout"`
	URL            string          `json:"url"`
	UserAgent      string          `json:"user_agent"`
	Verbose        bool            `json:"verbose"`
	Wordlist       string          `json:"wordlist"`
	WordlistType   string          `json:"wordlist_type"`
}

type Explore

type Explore struct {
	Pages []ExplorePage

	Results []ExploreResult
}

func NewExplore

func NewExplore(resps []Response) Explore

Initialize a new Explore

type ExplorePage

type ExplorePage struct {
	Body []byte `json:"body"`
	Path string `json:"path"`

	Keywords []string `json:"keywords"`
}

type ExploreResult

type ExploreResult struct {
	Path     string   `json:"path"`
	Keywords []string `json:"keywords"`
}

type Fuzzer

type Fuzzer struct {
	Config    Config     `json:"config"`
	Request   Request    `json:"request"`
	Responses []Response `json:"response"`
	Vulns     []string   `jsong:"vulns"`

	TotalWords int `json:"total_words"`
	Errors     int `json:"errors"`
}

func NewFuzzer

func NewFuzzer(ctx context.Context, options cmd.CmdOptions, fuzztype string, wordlistType string, totalWords int) (Fuzzer, error)

Initialize a new Fuzzer

func (*Fuzzer) FindVulns added in v0.1.9

func (f *Fuzzer) FindVulns(val string) []string

Find vulnerabilities

func (*Fuzzer) Run

func (f *Fuzzer) Run() error

Run to fuzz

func (*Fuzzer) Scan added in v0.1.6

func (f *Fuzzer) Scan() error

Scan each page

type Request

type Request struct {
	Client         *http.Client      `json:"client"`
	Config         Config            `json:"config"`
	Cookies        map[string]string `json:"cookies"`
	Data           []byte            `json:"data"`
	Delay          time.Duration     `json:"delay"`
	FollowRedirect bool              `json:"follow_redirect"`
	Headers        map[string]string `json:"headers"`
	Host           string            `json:"host"`
	Method         string            `json:"method"`
	PostData       io.Reader         `json:"post_data"`
	URL            string            `json:"url"`
	UserAgent      string            `json:"user_agent"`
}

func NewRequest

func NewRequest(conf Config) (Request, error)

Initialize Request

func (*Request) Send

func (req *Request) Send(word string) (Response, error)

Sent request

type Response

type Response struct {
	Body          []byte        `json:"body"`
	Config        Config        `json:"config"`
	Content       string        `jsong:"content"`
	ContentLength int           `json:"content_length"`
	ContentWords  int           `jsong:"content_words"`
	Delay         time.Duration `json:"delay"`
	Header        http.Header   `json:"header"`
	Path          string        `json:"path"`
	RedirectPath  string        `json:"redirect_path"`
	Status        string        `json:"status"`
	StatusCode    int           `json:"status_code"`
	Word          string        `json:"word"`
}

func NewResponse

func NewResponse(resp *http.Response, req *Request, word string, reqPath string, redirectResp *http.Response) Response

Jump to

Keyboard shortcuts

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