Documentation ¶
Index ¶
- Variables
- func ApplyJitter(Jitter int)
- func ChunkString(s string, chunkSize int) []string
- func ConnectHost(wg *sync.WaitGroup, timeout time.Duration, Jitter int, debug bool, host Host, ...)
- func GenerateURLs(targetList StringSet, Ports IntSet, Paths *StringSet, targets chan Host)
- func GetDataFromFile(fileName string) (data []string, err error)
- func GetTimeString() (currTime string)
- func HTTPGetter(wg *sync.WaitGroup, host Host, debug bool, Jitter int, soft404Detection bool, ...)
- func Hosts(cidr string) ([]string, error)
- func InitColours()
- func InitLogger(goodHandle io.Writer, infoHandle io.Writer, debugHandle io.Writer, ...)
- func Initialise(s *State, ports string, wordlist string, statusCodesIgn string, ...)
- func LeftPad2Len(s string, padStr string, overallLen int) string
- func LineSep() string
- func MarkdownReport(s *State, targets chan Host) string
- func ParseURLToHost(URL string, targets chan Host)
- func PrintBanner(s *State)
- func PrintOpts(s *State)
- func RandString() string
- func RightPad2Len(s string, padStr string, overallLen int) string
- func RoutineManager(s *State, ScanChan chan Host, DirbustChan chan Host, ScreenshotChan chan Host, ...)
- func SanitiseFilename(UnsanitisedFilename string) string
- func ScreenshotAURL(wg *sync.WaitGroup, s *State, cnt int, host Host, results chan Host, ...) (err error)
- func Start(s State)
- func StrArrToInt(t []string) (t2 []int)
- func StringWithCharset(length int, charset string) string
- type Host
- type IntSet
- type State
- type StringSet
- type TargetHost
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ApplyJitter ¶
func ApplyJitter(Jitter int)
func ChunkString ¶
func ConnectHost ¶
func ConnectHost(wg *sync.WaitGroup, timeout time.Duration, Jitter int, debug bool, host Host, results chan Host, threads chan struct{}, writeChan chan []byte)
connectHost does the actual TCP connection
func GenerateURLs ¶
func GetDataFromFile ¶
func GetTimeString ¶
func GetTimeString() (currTime string)
func HTTPGetter ¶
func InitColours ¶
func InitColours()
func InitLogger ¶
func Initialise ¶
func Initialise(s *State, ports string, wordlist string, statusCodesIgn string, protocols string, timeout int, AdvancedUsage bool, easy bool, HostHeaderFile string)
Initialise sets up the program's state
func LeftPad2Len ¶
LeftPad2Len https://github.com/DaddyOh/golang-samples/blob/master/pad.go
func MarkdownReport ¶
func ParseURLToHost ¶
func PrintBanner ¶
func PrintBanner(s *State)
PrintBanner prints the banner... HOW GOOD IS THE BANNER?
func RandString ¶
func RandString() string
func RightPad2Len ¶
RightPad2Len https://github.com/DaddyOh/golang-samples/blob/master/pad.go
func RoutineManager ¶
func SanitiseFilename ¶
func ScreenshotAURL ¶
func ScreenshotAURL(wg *sync.WaitGroup, s *State, cnt int, host Host, results chan Host, threads chan struct{}) (err error)
Screenshots a url derived from a Host{} object
func StrArrToInt ¶
Taken from gobuster - THANKS! /**/ StrArrToInt takes an array of strings and *hopefully* returns an array of ints?
func StringWithCharset ¶
Types ¶
type Host ¶
type Host struct { Path string HostAddr string Port int Protocol string ScreenshotFilename string ResponseBodyFilename string Soft404RandomURL string Soft404RandomPageContents []string PrefetchDone bool Soft404Done bool HTTPResp *http.Response HTTPReq *http.Request HostHeader string UserAgent string Cookies string }
func (*Host) PrefetchHash ¶
func (*Host) Soft404Hash ¶
type State ¶
type State struct { Canary string Cookies string Expanded bool Extensions []string FollowRedirect bool PhantomProcesses []phantomjs.Process ScreenshotQuality int ScreenshotDirectory string ScreenshotFileType string FollowRedirects bool ReportDirectory string HostHeaders StringSet ScanOutputDirectory string ProjectName string DirbustOutputDirectory string IncludeLength bool NumPhantomProcs int HttpClient *http.Client HTTPResponseDirectory string Ratio float64 Soft404Detection bool Soft404Method int PrefetchedHosts map[string]bool Soft404edHosts map[string]bool NoStatus bool Hosts StringSet InputFile string Debug bool ExcludeList []string Password string Ports IntSet Jitter int Sleep float64 Timeout time.Duration VerbosityLevel int ShowIPs bool Protocols StringSet StatusCodes IntSet IgnoreSSLErrors bool StatusCodesIgn IntSet ImgX int ImgY int Screenshot bool Threads int URLFile string URLProvided bool Dirbust bool SingleURL string PhantomJSPath string URLComponents []Host Targets chan Host Paths StringSet UseSlash bool Scan bool UserAgent string Username string OutputChan chan string Verbose bool Wordlist string Version string OutputDirectory string StartTime time.Time }
type StringSet ¶
Shim type for "set" containing strings
func ExpandHosts ¶
ExpandHosts takes a string array of IP addresses/CIDR masks and converts into a string array of pure IP addresses
func (*StringSet) ContainsAny ¶
Check if any of the elements exist
type TargetHost ¶
type TargetHost chan struct{}
Click to show internal directories.
Click to hide internal directories.