mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Fix http-enum.nse so it uses the full pathname for the fingerprints file (from
fetchfile) so it doesn't throw an error and quit running. Reported by Ron Meldau and Brandon: http://seclists.org/nmap-dev/2010/q1/222
This commit is contained in:
parent
354eaca0ff
commit
c6508cceb6
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ local function get_fingerprints()
|
|||
stdnse.print_debug(1, "http-enum: Attempting to parse fingerprint file %s", filename)
|
||||
|
||||
local product = nil
|
||||
for line in io.lines(filename) do
|
||||
for line in io.lines(filename_full) do
|
||||
-- Ignore "Pre-Auth", "Post-Auth", and blank lines
|
||||
if(string.sub(line, 1, #PREAUTH) ~= PREAUTH and string.sub(line, 1, #POSTAUTH) ~= POSTAUTH and #line > 0) then
|
||||
-- Commented lines indicate products
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue