1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-07 14:06:33 +00:00
david 086b043cde Remove the single-string special case in stdnse.format_output.
This should be handled by the generic case, and I don't think it was
used anyway because the logic was wrong:

if(indent == nil and #data == 1 and type(data) == 'string' and not(data['name']) and not(data['warning'])) then
  return data[1]
end

This seems to be checking for a one-element table whose single element
is a string. But the test "#data == 1 and type(data) == 'string'" is
actually testing for a one-byte string. I think this is supposed to be
"type(data[1]) == 'string'", but anyway it should be handled by the
generic case.
2010-12-30 21:08:15 +00:00
2010-12-28 22:02:12 +00:00
2010-05-23 17:42:44 +00:00
2010-07-13 07:42:15 +00:00
2010-12-28 22:02:12 +00:00
2010-12-28 22:02:12 +00:00
2008-07-31 14:18:21 +00:00
2010-09-23 20:13:47 +00:00
2010-12-08 08:02:22 +00:00
2010-12-03 21:29:59 +00:00

Here is some documentation for Nmap, but these files are much less
comprehensive than what you'll find at the actual Nmap documentation
site ( http://nmap.org ).
Languages
C 37.5%
Lua 28.1%
C++ 16.8%
Shell 5.8%
Python 4.2%
Other 7.3%