core

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core struct {
	// Mode
	Mode Mode

	// Bools
	Recursive bool

	// infra
	Client *fasthttp.Client
	Ctx    context.Context
	Cancel context.CancelFunc

	Method      string
	Placeholder string
	UserAgents  []string
	IgnoreCodes []int
	Exts        []string
	Header      []string
	AuthHeader  string
	Delay       time.Duration
	Timeout     time.Duration
	Wildcard    *wildcard.Wildcard
	Baseline    *baseline.Baseline
	Quiet       bool

	// Colors
	Others *color.Color
	File   *color.Color

	// Concurrency
	Limiter  chan struct{}
	DirsChan chan string

	WG *sync.WaitGroup
	WL []string

	// State
	VisitedDirs  map[string]bool
	VisitedMutex sync.Mutex
}

func (*Core) Run

func (c *Core) Run(baseUrl string) <-chan Result

func (*Core) RunDir

func (c *Core) RunDir(baseURL string) <-chan Result

func (*Core) RunFuzz

func (c *Core) RunFuzz(baseURL string) <-chan Result

func (*Core) RunPorts

func (c *Core) RunPorts(baseUrl string) <-chan Result

type Mode

type Mode int
const (
	ModeDir Mode = iota
	ModeFuzz
	ModePort
)

type Result

type Result struct {
	Prefix string `json:"prefix"`
	URL    string `json:"url"`
	Size   int    `json:"size"`
	Status int    `json:"status"`
	Extra  string `json:"extra,omitempty"`
}

Jump to

Keyboard shortcuts

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