mirror of
https://github.com/nmap/nmap.git
synced 2025-12-14 19:59:02 +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
|
||||
|
||||
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=''):
|
||||
self._set_it(profile, 'command', command)
|
||||
|
||||
Reference in New Issue
Block a user