Fix #7019, Pad host field in notes -d command

The notes -d command is always expecting a host address, but
fileformat exploits don't have this type of information when the
exploit file is generated, therefore there isn't enough fields
provided for Rex table.

Fix #7019
This commit is contained in:
wchen-r7 2016-06-30 15:38:58 -05:00
parent afbeb2b668
commit dbcdc300e5
1 changed files with 2 additions and 0 deletions

View File

@ -1360,6 +1360,8 @@ class Db
addr = (host.scope ? host.address + '%' + host.scope : host.address )
rhosts << addr
end
else
csv_note << ''
end
if (note.service)
msg << " service=#{note.service.name}" if note.service.name