mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 20:29:03 +00:00
Avoid a crash when description is a list. http://seclists.org/nmap-dev/2017/q1/176
This commit is contained in:
@@ -438,7 +438,10 @@ class CommandProfile (Profile, object):
|
|||||||
return command_string
|
return command_string
|
||||||
|
|
||||||
def get_description(self, profile):
|
def get_description(self, profile):
|
||||||
return self._get_it(profile, 'description')
|
desc = self._get_it(profile, 'description')
|
||||||
|
if isinstance(desc, list):
|
||||||
|
desc = " ".join(desc)
|
||||||
|
return desc
|
||||||
|
|
||||||
def set_command(self, profile, command=''):
|
def set_command(self, profile, command=''):
|
||||||
self._set_it(profile, 'command', command)
|
self._set_it(profile, 'command', command)
|
||||||
|
|||||||
Reference in New Issue
Block a user