Codebase list libnmap-parser-perl / c0e292c
Update upstream source from tag 'upstream/1.37' Update to upstream version '1.37' with Debian dir e529d071420a4a3cb9c61205835370b7e8a0d32e gregor herrmann 5 years ago
5 changed file(s) with 14 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
33
44 For a full list of changes and contributors see: https://github.com/modernistik/Nmap-Parser/commits/master
55
6 ### Changes for 1.37
7 - Added starttime attributes and subroutine thanks to @jcrochon (PR #19)
8
69 ### Changes for 1.35
7 - Updated build configuration thanks to @mperry2 (Pull #17)
10 - Updated build configuration thanks to @mperry2 (PR #17)
811
912 ### Changes for 1.34
10 - Added devicetype thanks to @jcrochon (Pull #16)
13 - Added devicetype thanks to @jcrochon (PR #16)
1114
1215 ### Changes for 1.33
1316 - Add tcp_port_state_ttl() function for export from nmap xml results. Thanks to @matrix.
2020 },
2121 "release_status" : "stable",
2222 "resources" : {},
23 "version" : "1.36",
23 "version" : "1.37",
2424 "x_homepage" : "https://github.com/modernistik/Nmap-Parser"
2525 }
1414 - t
1515 - inc
1616 resources: {}
17 version: 1.36
17 version: 1.37
1818 x_homepage: https://github.com/modernistik/Nmap-Parser
22 use strict;
33 use XML::Twig;
44
5 our $VERSION = 1.36;
5 our $VERSION = 1.37;
66
77
88 sub new {
278278
279279 #GET HOSTNAMES
280280 $self->{HOSTS}{$id}{hostnames} = __host_hostnames_tag_hdlr($tag);
281
282 #GET STARTTIME
283 $self->{HOSTS}{$id}{starttime} = $tag->{att}->{starttime};
281284
282285 #GET STATUS
283286 $self->{HOSTS}{$id}{status} = $tag->first_child('status')->{att}->{state};
768771 return $self;
769772 }
770773
774 sub starttime { return $_[0]->{starttime}; }
775
771776 sub status { return $_[0]->{status}; }
772777
773778 sub addr {
106106 This will generate a `tar.gz` to upload to https://pause.perl.org.
107107
108108 ### Copyright and License
109 Copyright (C) 2003-2016 Anthony Persaud [http://www.modernistik.com](https://www.modernistik.com)
109 Copyright (C) 2003-2018 Anthony Persaud [https://www.modernistik.com](https://www.modernistik.com)
110110
111111 MIT License
112112