port_info << "| #{port.number} | #{port.protocol} |"
However, port.reason is still showing up in the nmap notes, so I don't think my changes are taking effect. Am i editing the wrong file? Thanks for your help.
def host_service_table
ports = []
# Build up a Services table with all the available information about each
# individual port.
@entry.each_port do |port|
port_info = ''
port_info << "| #{port.number} | #{port.protocol} |"
#port_info << "| #{port.number} | #{port.protocol} | #{port.state} (#{port.reason}) |"
if (srv = port.service_node)
port_info << " #{srv['name'] || ''} |"
port_info << " #{srv['product'] || ''} |"
port_info << " #{srv['version'] || ''} |"
else
port_info << " | | |"
end
port_info << "\n"
ports << port_info
end
ports.join
end