line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: Session.pm 18 2008-05-05 23:55:18Z jabra $ |
2
|
|
|
|
|
|
|
package Burpsuite::Parser::Session; |
3
|
|
|
|
|
|
|
{ |
4
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
5
|
|
|
|
|
|
|
$VERSION = eval $VERSION; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
16
|
use Object::InsideOut; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
18
|
|
8
|
2
|
|
|
2
|
|
4182
|
use XML::LibXML; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
use Burpsuite::Parser::ScanDetails; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my @export_time : Field : Arg(export_time) : All(export_time); |
12
|
|
|
|
|
|
|
my @version : Field : Arg(version) : All(version); |
13
|
|
|
|
|
|
|
my @scandetails : Field : Arg(scandetails) : Get(scandetails) : |
14
|
|
|
|
|
|
|
Type(Burpsuite::Parser::ScanDetails); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub parse { |
17
|
|
|
|
|
|
|
my ( $self, $parser, $doc ) = @_; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
foreach my $burpsuite ( $doc->getElementsByTagName('issues') ) { |
20
|
|
|
|
|
|
|
return Burpsuite::Parser::Session->new( |
21
|
|
|
|
|
|
|
version => $burpsuite->getAttribute('burpVersion'), |
22
|
|
|
|
|
|
|
export_time => $burpsuite->getAttribute('exportTime'), |
23
|
|
|
|
|
|
|
scandetails => Burpsuite::Parser::ScanDetails->parse( $parser, $doc ), |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
1; |