utils

package
v0.0.0-...-8b54892 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxLineLength sets the maximum line length for scanner
	MaxLineLength = 1024 * 1024 // 1MB per line
	// ChannelBufferSize sets the buffered channel size
	ChannelBufferSize = 1000
)

Variables

View Source
var (
	OriginalStdout *os.File = os.Stdout
	OriginalStderr *os.File = os.Stderr
)

Functions

func CheckError

func CheckError(e error)

func ExportParameters

func ExportParameters(filename string, params []Parameter, format string) error

ExportParameters exports parameters to a file in the specified format

func FinalMessage

func FinalMessage(options *opt.Options)

func GetInput

func GetInput(options *opt.Options) chan string

func GetInputEstimate

func GetInputEstimate(options *opt.Options) int

GetInputEstimate returns estimated count for progress (optional)

func MyRegex

func MyRegex(myRegex string, response string, indexes []int) []string

func ParseHttpRequest

func ParseHttpRequest(options *opt.Options) []string

func ShowBanner

func ShowBanner(version string, inputLength int, myOptions *opt.Options)

func Silent

func Silent()

func Speak

func Speak()

func Unique

func Unique(strSlice []string) []string

Types

type Parameter

type Parameter struct {
	Name    string `json:"name"`
	Origin  string `json:"origin,omitempty"`
	IsSus   bool   `json:"is_suspicious"`
	SusType string `json:"suspicious_type,omitempty"`
}

Parameter represents a discovered parameter with metadata

func SortParameters

func SortParameters(params []Parameter, order string) []Parameter

SortParameters sorts parameters according to the specified order

Jump to

Keyboard shortcuts

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