From e73ab8972d1e5873478056a765cdcfbd0a82ac93 Mon Sep 17 00:00:00 2001 From: Gleb Date: Mon, 8 May 2017 19:28:29 +0600 Subject: [PATCH 1/2] Add devicetype method for nmap service class --- libnmap/objects/service.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libnmap/objects/service.py b/libnmap/objects/service.py index 11d4726..7173e4e 100644 --- a/libnmap/objects/service.py +++ b/libnmap/objects/service.py @@ -183,6 +183,15 @@ def service(self): """ return self._service['name'] if 'name' in self._service else '' + @property + def devicetype(self): + """ + Accessor for device type. + + :return: string or empty + """ + return self._service['devicetype'] if 'devicetype' in self._service else '' + @property def service_dict(self): """ From aa77d3a5c0b833bca10370e92a912c290c380879 Mon Sep 17 00:00:00 2001 From: Gleb Ershov Date: Mon, 8 May 2017 19:30:16 +0600 Subject: [PATCH 2/2] Update README.rst --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 8557b92..a054535 100644 --- a/README.rst +++ b/README.rst @@ -78,7 +78,7 @@ You can install libnmap via pip:: or via git:: - $ git clone https://github.com/savon-noir/python-libnmap.git + $ git clone https://github.com/iotsploit/python-libnmap.git $ cd python-libnmap $ python setup.py install