Documentation ¶
Overview ¶
Package burpxml provides functions to parse and re-format Burp Suite HTTP proxy history XML files
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct { Ip string `xml:"ip,attr"` // Remote IP address Name string `xml:",chardata"` // Remote host name }
Host represents an XML <host> remote host. In textual output, Host's elements should appear as though they were Item's elements.
type Item ¶
type Item struct { Time string `xml:"time"` // Time the request was sent Url string `xml:"url"` // URL requested Host Host `xml:"host"` // Remote host name Port string `xml:"port"` // Remote port Protocol string `xml:"protocol"` // Protocol (such as HTTPS) Path string `xml:"path"` // URL path requested (/foo/bar/) Extension string `xml:"extension"` // Burp-specific Request Request `xml:"request"` // HTTP request made Status string `xml:"status"` // HTTP status code returned ResponseLength string `xml:"responselength"` // HTTP response content length MimeType string `xml:"mimetype"` // MIME type of HTTP response Response Response `xml:"response"` // HTTP response returned Comment string `xml:"comment"` // Burp-specific }
Item represents an XML <item> HTTP transaction.
func (Item) FlatString ¶
FlatString returns an Item as a single-line string. Each element is comma-separated.
type Items ¶
type Items struct {
Items []Item `xml:"item"`
}
Items represents the set of XML <items> containing many <item>'s.
func Parse ¶
Parse will read XML from f. Optionally, base64-encoded request and response bodies may be checked and decoded.
type Request ¶
type Request struct { Base64 string `xml:"base64,attr"` // Is Raw base64-encoded? Raw string `xml:",chardata"` // Raw HTTP request Body string // May be base64-decoded later }
Request represents an XML <request> HTTP request.
func (Request) FlatString ¶
FlatString returns a Request as a single-line string. Each element is comma-separated. If the body has been decoded, the body exclusively will be returned.
type Response ¶
type Response struct { Base64 string `xml:"base64,attr"` // Is Raw base64-encoded? Raw string `xml:",chardata"` // Raw HTTP response Body string // May be base64-decoded later }
Response represents an XML <response> HTTP response.
func (Response) FlatString ¶
FlatString returns a Response as a single-line string. Each element is comma-separated. If the body has been decoded, the body exclusively will be returned.