burpxml

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVOptions

type CSVOptions struct {
	ExcludeRequest  bool
	ExcludeResponse bool
}

type Host

type Host struct {
	IP   string `xml:"ip,attr" json:"ip,omitempty"`
	Name string `xml:",chardata" json:"name,omitempty"`
}

type Item

type Item struct {
	Time           string   `xml:"time" json:"time,omitempty"`
	URL            string   `xml:"url" json:"url,omitempty"`
	Host           Host     `xml:"host" json:"host,omitzero"`
	Port           string   `xml:"port" json:"port,omitempty"`
	Protocol       string   `xml:"protocol" json:"protocol,omitempty"`
	Path           string   `xml:"path" json:"path,omitempty"`
	Extension      string   `xml:"extension" json:"extension,omitempty"`
	Request        Request  `xml:"request" json:"request,omitzero"`
	Status         string   `xml:"status" json:"status,omitempty"`
	ResponseLength string   `xml:"responselength" json:"response_length,omitempty"`
	MimeType       string   `xml:"mimetype" json:"mime_type,omitempty"`
	Response       Response `xml:"response" json:"response,omitzero"`
	Comment        string   `xml:"comment" json:"comment,omitempty"`
}

func (Item) FlatString

func (i Item) FlatString() string

func (Item) String

func (i Item) String() string

func (Item) ToStrings

func (i Item) ToStrings(noReq, noResp bool) []string

type Items

type Items struct {
	Items []Item `xml:"item" json:"items,omitempty"`
}

func ParseXML

func ParseXML(r io.Reader, opts XMLParseOptions) (*Items, error)

func (*Items) ToCSV

func (items *Items) ToCSV(w io.Writer, opts CSVOptions) error

func (*Items) ToJSON

func (items *Items) ToJSON(w io.Writer) error

type Request

type Request struct {
	Base64Encoded string `xml:"base64,attr" json:"base64_encoded,omitempty"`
	Raw           string `xml:",chardata" json:"raw,omitempty"`
	Body          string `xml:"-" json:"body,omitempty"`
}

func (Request) FlatString

func (r Request) FlatString() string

func (Request) String

func (r Request) String() string

func (Request) ToStrings

func (r Request) ToStrings() []string

type Response

type Response struct {
	Base64Encoded string `xml:"base64,attr" json:"base64_encoded,omitempty"`
	Raw           string `xml:",chardata" json:"raw,omitempty"`
	Body          string `xml:"-" json:"body,omitempty"`
}

func (Response) FlatString

func (r Response) FlatString() string

func (Response) String

func (r Response) String() string

func (Response) ToStrings

func (r Response) ToStrings() []string

type XMLParseOptions

type XMLParseOptions struct {
	DecodeBase64 bool
}

Jump to

Keyboard shortcuts

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