inputformats

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

TODO: This package should be abstracted out to projectdiscovery/utils so it can be shared between httpx, nuclei, and other tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SupportedFormats

func SupportedFormats() string

SupportedFormats returns a comma-separated list of supported format names

Types

type BurpFormat

type BurpFormat struct{}

BurpFormat is a Burp Suite XML file parser

func NewBurpFormat

func NewBurpFormat() *BurpFormat

NewBurpFormat creates a new Burp XML file parser

func (*BurpFormat) Name

func (b *BurpFormat) Name() string

Name returns the name of the format

func (*BurpFormat) Parse

func (b *BurpFormat) Parse(input io.Reader, callback func(url string) bool) error

Parse parses the Burp XML input and calls the provided callback function for each URL it discovers.

type Format

type Format interface {
	// Name returns the name of the format
	Name() string
	// Parse parses the input and calls the provided callback
	// function for each URL it discovers.
	Parse(input io.Reader, callback func(url string) bool) error
}

Format is an interface implemented by all input formats

func GetFormat

func GetFormat(name string) Format

GetFormat returns the format by name

Jump to

Keyboard shortcuts

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