Skip to content

Commit 000fe4b

Browse files
committed
Pypi release and bugfixes
1 parent c843334 commit 000fe4b

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

nmap3/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import re
2525

2626
__author__ = 'Wangolo Joel (inquiry@nmapper.com)'
27-
__version__ = '1.4.9'
28-
__last_modification__ = '2029/12/11'
27+
__version__ = '1.5.2'
28+
__last_modification__ = 'May/24/2022'
2929

3030
class NmapNotInstalledError(Exception):
3131
"""Exception raised when nmap is not installed"""

nmap3/nmap3.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
import xml
3535

3636
__author__ = 'Wangolo Joel (inquiry@nmapper.com)'
37-
__version__ = '1.4.9'
38-
__last_modification__ = 'Jan/14/2022'
37+
__version__ = '1.5.2'
38+
__last_modification__ = 'May/24/2022'
3939

4040
OS_TYPE = sys.platform
4141

@@ -218,7 +218,6 @@ def nmap_os_detection(self, target, arg="-O", args=None): # requires root
218218
nmap -oX - nmmapper.com -O
219219
NOTE: Requires root
220220
"""
221-
print("Performing some scannins")
222221
xml_root = self.scan_command(target=target, arg=arg, args=args)
223222
results = self.parser.os_identifier_parser(xml_root)
224223
return results
@@ -508,7 +507,7 @@ async def run_command(self, cmd, timeout=None):
508507
raise (e)
509508
else:
510509
if 0 != process.returncode:
511-
raise NmapExecutionError('Error during command: "' + ' '.join(cmd) + '"\n\n' + errs.decode('utf8'))
510+
raise NmapExecutionError('Error during command: "' + ' '.join(cmd) + '"\n\n' + stderr.decode('utf8'))
512511

513512
# Response is bytes so decode the output and return
514513
return data.decode('utf8').strip()

nmap3/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
import functools
2828

2929
__author__ = 'Wangolo Joel (inquiry@nmapper.com)'
30-
__version__ = '1.4.9'
31-
__last_modification__ = '2019/12/11'
30+
__version__ = '1.5.2'
31+
__last_modification__ = 'May/24/2022'
3232

3333
def get_nmap_path():
3434
"""

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="python3-nmap",
8-
version="1.5.1",
8+
version="1.5.2",
99
author="nmmapper",
1010
author_email="info@nmmapper.com",
1111
description="Python3-nmap converts Nmap commands into python3 methods making it very easy to use nmap in any of your python pentesting projects",

0 commit comments

Comments
 (0)