libgobuster

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Banner(s *State)

func GoGet

func GoGet(s *State, url, uri, cookie string) (*int, *int64)

Small helper to combine URL with URI then make a request to the generated location.

func MakeRequest

func MakeRequest(s *State, fullUrl, cookie string) (*int, *int64)

Make a request to the given URL.

func PrepareSignalHandler

func PrepareSignalHandler(s *State)

func PrintDirResult

func PrintDirResult(s *State, r *Result)

func PrintDnsResult

func PrintDnsResult(s *State, r *Result)

func Process

func Process(s *State)

Process the busting of the website with the given set of settings from the command line.

func ProcessDirEntry

func ProcessDirEntry(s *State, word string, resultChan chan<- Result)

func ProcessDnsEntry

func ProcessDnsEntry(s *State, word string, resultChan chan<- Result)

func Ruler

func Ruler(s *State)

func SetupDir

func SetupDir(s *State) bool

func SetupDns

func SetupDns(s *State) bool

func ShowConfig

func ShowConfig(s *State)

func ValidateDirModeState

func ValidateDirModeState(
	s *State,
	extensions string,
	codes string,
	proxy string,
	previousErrors *multierror.Error) *multierror.Error

func ValidateState

func ValidateState(
	s *State,
	extensions string,
	codes string,
	proxy string) *multierror.Error

func WriteToFile

func WriteToFile(output string, s *State)

Types

type IntSet

type IntSet struct {
	Set map[int]bool
}

Shim type for "set" containing ints

func (*IntSet) Add

func (set *IntSet) Add(i int) bool

Add an element to a set

func (*IntSet) Contains

func (set *IntSet) Contains(i int) bool

Test if an element is in a set

func (*IntSet) Stringify

func (set *IntSet) Stringify() string

Stringify the set

type PrintResultFunc

type PrintResultFunc func(s *State, r *Result)

type ProcessorFunc

type ProcessorFunc func(s *State, entity string, resultChan chan<- Result)

type RedirectError

type RedirectError struct {
	StatusCode int
}

func (*RedirectError) Error

func (e *RedirectError) Error() string

type RedirectHandler

type RedirectHandler struct {
	Transport http.RoundTripper
	State     *State
}

func (*RedirectHandler) RoundTrip

func (rh *RedirectHandler) RoundTrip(req *http.Request) (resp *http.Response, err error)

type Result

type Result struct {
	Entity string
	Status int
	Extra  string
	Size   *int64
}

A single result which comes from an individual web request.

type SetupFunc

type SetupFunc func(s *State) bool

type State

type State struct {
	Client         *http.Client
	Cookies        string
	Expanded       bool
	Extensions     []string
	FollowRedirect bool
	IncludeLength  bool
	Mode           string
	NoStatus       bool
	Password       string
	Printer        PrintResultFunc
	Processor      ProcessorFunc
	ProxyUrl       *url.URL
	Quiet          bool
	Setup          SetupFunc
	ShowIPs        bool
	ShowCNAME      bool
	StatusCodes    IntSet
	Threads        int
	Url            string
	UseSlash       bool
	UserAgent      string
	Username       string
	Verbose        bool
	Wordlist       string
	OutputFileName string
	OutputFile     *os.File
	IsWildcard     bool
	WildcardForced bool
	WildcardIps    StringSet
	SignalChan     chan os.Signal
	Terminate      bool
	StdIn          bool
	InsecureSSL    bool
}

Contains State that are read in from the command line when the program is invoked.

func InitState

func InitState() State

type StringSet

type StringSet struct {
	Set map[string]bool
}

Shim type for "set" containing strings

func (*StringSet) Add

func (set *StringSet) Add(s string) bool

Add an element to a set

func (*StringSet) AddRange

func (set *StringSet) AddRange(ss []string)

Add a list of elements to a set

func (*StringSet) Contains

func (set *StringSet) Contains(s string) bool

Test if an element is in a set

func (*StringSet) ContainsAny

func (set *StringSet) ContainsAny(ss []string) bool

Check if any of the elements exist

func (*StringSet) Stringify

func (set *StringSet) Stringify() string

Stringify the set

Jump to

Keyboard shortcuts

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