data

package
v0.0.0-...-51afa80 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuzzData

type FuzzData struct {
	MetaData  SessionData
	InputData []string
	Result    map[string][]string
}

func (*FuzzData) BeginFuzzing

func (f *FuzzData) BeginFuzzing(displayText string)

mind that pointer xD

func (FuzzData) ContainsStatusCode

func (f FuzzData) ContainsStatusCode(code string) bool

function to check if status code exists?

func (FuzzData) ExportData

func (f FuzzData) ExportData(filename string)

type Options

type Options struct {
	TargetUrl  string
	NumRange   string
	CharList   string
	AsciiRange string
	Method     string
	ShowHelp   bool
	OutputDir  string
	InputFile  string
	ExportType string
	Host       string
	Exclude    string
	Timeout    int
	Retries    int
}

TODO: add timeout option

func (Options) DisplayHelp

func (o Options) DisplayHelp()

func (Options) ExcludeStatusCode

func (o Options) ExcludeStatusCode() []string

exclude status code functionality

func (Options) ParseAsciiRange

func (o Options) ParseAsciiRange() []string

parses the -a flag input

func (Options) ParseCharList

func (o Options) ParseCharList() []string

parses the -c flag input

func (Options) ParseNumRange

func (o Options) ParseNumRange() []string

parses the -n flag input

func (*Options) ParseUrl

func (o *Options) ParseUrl() []string

parses the -u flag input

func (Options) ReadFuzzFile

func (o Options) ReadFuzzFile() []string

parse input from the list -f

func (Options) SetExportType

func (o Options) SetExportType() string

to check valid export type

func (Options) SetOutputDir

func (o Options) SetOutputDir() string

sets output folder and create one if doesn't exists

func (Options) SetRequestMethod

func (o Options) SetRequestMethod() string

check for valid request method

type SessionData

type SessionData struct {
	ParsedUrl     []string
	ExcludeStatus []string //list of status codes to be excluded
	OutDir        string
	ExportType    string
	Method        string
	Body          string //request body input by user
	Header        string //request header input by user
	Timeout       int    //timeout for each request
	Retries       int    //how many attempts for each request
}

to store processed/parsed data given by user the fuzzing result is stored over here as well

func (SessionData) DisplayInfo

func (sd SessionData) DisplayInfo()

Jump to

Keyboard shortcuts

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