pkg

package
v0.0.0-...-d76e669 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	COLOR_RESET  = "\033[0m"
	COLOR_RED    = "\033[31m"
	COLOR_GREEN  = "\033[32m"
	COLOR_YELLOW = "\033[33m"
	COLOR_BLUE   = "\033[34m"
	COLOR_PURPLE = "\033[35m"
	COLOR_CYAN   = "\033[36m"
	COLOR_GRAY   = "\033[37m"
	COLOR_WHITE  = "\033[97m"
)

Colors

View Source
const (
	Bar = "___________________________________________________________________"
)

Variables

View Source
var Log = logrus.New()
View Source
var RequestsCounter, ErrorsCounter int

Functions

func Abs

func Abs(x int) int

func BulkCheck

func BulkCheck(filePath string, headers []string, threads int, timeout int, nocolor bool)

func BulkScan

func BulkScan(filePath string, headers []string, threads int, silent bool, timeout int, nocolor bool, proxy string)

BulkScan prints the output of a bulk scan

func CheckIfVulnerable

func CheckIfVulnerable(scanURL string, headers []string, timeout int, threads int, checkOnly bool) (result bool, method string)

func DirectoryWordlistBruteforce

func DirectoryWordlistBruteforce(allDirs []string, wordlist string, scanURL string, headers []string, threads int, silent bool, timeout int, nocolor bool, proxy string) (dirs []string)

func FileWordlistBruteforce

func FileWordlistBruteforce(allFiles []File, fileWordlist string, extWordlist string, scanURL string, headers []string, threads int, silent bool, timeout int, nocolor bool, proxy string) (files []string)

func GetHTMLTitle

func GetHTMLTitle(requestBody string) (string, bool)

func SetLogLevel

func SetLogLevel(level string)

func TrimLastChar

func TrimLastChar(s string) string

Types

type File

type File struct {
	Name string
	Ext  string
}

func Run

func Run(scanURL string, headers []string, threads int, silent bool, timeout int, nocolor bool, proxy string) (files []File, dirs []string)

Run prints the output of a scan

func Scan

func Scan(url string, headers []string, requestMethod string, threads int, silent bool, nocolor bool) (files []File, dirs []string)

type WHTTPHeader

type WHTTPHeader struct {
	Name  string
	Value string
}

func MakeCustomHeaders

func MakeCustomHeaders(headers []string) (wHeaders []WHTTPHeader, customHost string)

Converts headers from string format (name: value) to WHTTPHeader

type WHTTPReq

type WHTTPReq struct {
	URL        string
	Method     string
	CustomHost string
	Headers    []WHTTPHeader
}

type WHTTPRes

type WHTTPRes struct {
	StatusCode     int
	ResponseLength int
	HTTPTitle      string
	BodyString     string
}

func SendHTTPRequest

func SendHTTPRequest(wReq *WHTTPReq, client *http.Client) (wRes *WHTTPRes, err error)

Jump to

Keyboard shortcuts

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