util

package
v0.0.0-...-32b8858 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseArgs

func ParseArgs()

func PrintColoredBanner

func PrintColoredBanner()

func PrintSimpleInfo

func PrintSimpleInfo()

func SetOsProxy

func SetOsProxy(port int) error

func UnsetOsProxy

func UnsetOsProxy() error

Types

type ArrayFlags

type ArrayFlags []string

func (*ArrayFlags) Set

func (i *ArrayFlags) Set(value string) error

func (*ArrayFlags) String

func (i *ArrayFlags) String() string

type Config

type Config struct {
	Addr           *string
	Port           *int
	Dns            *string
	Notls          *bool
	Nodoh          *bool
	Debug          *bool
	NoBanner       *bool
	Timeout        *int
	AllowedPattern *regexp.Regexp
	AllowedUrls    *regexp.Regexp
}

func GetConfig

func GetConfig() *Config

func (*Config) PatternExists

func (c *Config) PatternExists() bool

func (*Config) PatternMatches

func (c *Config) PatternMatches(bytes []byte) bool

Jump to

Keyboard shortcuts

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