From d6203dcb1089df488a63dfa05ef0aaf3effe5832 Mon Sep 17 00:00:00 2001 From: Dan Kottmann Date: Mon, 9 Dec 2013 12:23:45 -0600 Subject: [PATCH] Fixes #9. --- bin/drone-nexpose | 2 +- lairdrone/nexpose.py | 4 ++-- setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/drone-nexpose b/bin/drone-nexpose index d63a8ac..dfa18e9 100644 --- a/bin/drone-nexpose +++ b/bin/drone-nexpose @@ -19,7 +19,7 @@ if __name__ == '__main__': description = "%prog imports Nexpose files into Lair" parser = OptionParser(usage=usage, description=description, - version="%prog 0.0.2") + version="%prog 0.0.3") parser.add_option( "--include-informational", dest="include_informational", diff --git a/lairdrone/nexpose.py b/lairdrone/nexpose.py index 8b29397..df3a812 100644 --- a/lairdrone/nexpose.py +++ b/lairdrone/nexpose.py @@ -82,8 +82,8 @@ def parse(project, nexpose_file, include_informational=False): exploit.attrib['id'] ) note_dict['content'] = "{0}\n{1}".format( - exploit.attrib['title'], - exploit.attrib['link'] + exploit.attrib['title'].encode('ascii', 'replace'), + exploit.attrib['link'].encode('ascii', 'replace') ) note_dict['last_modified_by'] = TOOL v['notes'].append(note_dict) diff --git a/setup.py b/setup.py index bc0952e..a60a8f0 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="lairdrone", - version="0.1.7", + version="0.1.8", author='Dan Kottmann, Tom Steele', author_email='dan.kottmann@fishnetsecurity.com, thomas.steele@fishnetsecurity.com', packages=['lairdrone'],