Package gds :: Package pub :: Package burp :: Module burp :: Class Burp
[hide private]
[frames] | no frames]

Class Burp


This is our main Burp class that contains a single request and an optional response. This data was gathered from parsing our Burp log file, which may have been generated by any of the Burp Suite tools.

Instance Methods [hide private]
 
__init__(self, data=None, index=0)
Create a new Burp request/response object from a parsed Burp log file.
 
__process(self, data)
Process data to fill properties of Burp object.
int
__len__(self)
Returns: Content-Length of response body.
 
__repr__(self)
repr(x)
string
get_request_body(self)
Return request body.
string
get_request_method(self)
Return request method.
string
get_request_version(self)
Return request version.
string
get_request_header(self, name)
Return request header.
dict
get_request_headers(self)
Return request headers.
string
get_request_path(self)
Return request path.
string
get_response_version(self)
Return response version.
string
get_response_status(self)
Return response status.
string
get_response_reason(self)
Return response reason.
string
get_response_header(self, name)
Return response header.
dict
get_response_headers(self)
Return response headers.
string
get_response_body(self)
Return response body.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, data=None, index=0)
(Constructor)

 

Create a new Burp request/response object from a parsed Burp log file.

Overrides: object.__init__

__len__(self)
(Length operator)

 
Returns: int
Content-Length of response body.

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

get_request_header(self, name)

 

Return request header.

Parameters:
  • name - Name of the request header.
Returns: string
If header exists returns its value, else an empty string.

get_response_header(self, name)

 

Return response header.

Parameters:
  • name - Name of the response header.
Returns: string
If header exists return its value, else an empty string.