urlparser

package
v0.0.0-...-e7178a4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: Unlicense Imports: 4 Imported by: 0

Documentation

Overview

Description: This file contains the implementation of the URL parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectFUZZIdentifiers

func InjectFUZZIdentifiers(path string, fuzzIdentifier string) []string

Types

type FuzzContext

type FuzzContext struct {
	ParsedURLs     []*URL
	FuzzIdentifier string
}

func NewFuzzContext

func NewFuzzContext(fuzzIdentifier string) *FuzzContext

NewFuzzContext creates a new FuzzContext with the given fuzz identifier

func (*FuzzContext) UpdateURLWithFuzzPaths

func (ctx *FuzzContext) UpdateURLWithFuzzPaths(rawURL string) ([]*URL, error)

UpdateURLWithFuzzPaths updates the parsed list of URLs with fuzzable paths from the given raw URL

func (*FuzzContext) UpdateURLsWithFuzzPaths

func (ctx *FuzzContext) UpdateURLsWithFuzzPaths(rawURLs []string) ([]*URL, []error)

UpdateURLsWithFuzzPaths updates the parsed list of URLs with fuzzable paths from the given raw URLs

type URL

type URL struct {
	BaseURL       string   // BaseURL is the base URL of the website
	FuzzablePaths []string // Paths is the list of paths of the website
}

Jump to

Keyboard shortcuts

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