mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Fix loading devframework fingerprints from script-arg
This commit is contained in:
parent
4e73ed7efd
commit
8a28707b32
1 changed files with 7 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ local _G = require "_G"
|
|||
|
||||
portrule = shortport.port_or_service( {80, 443}, {"http", "https"}, "tcp", "open")
|
||||
|
||||
local function loadFingerprints(filename, cat)
|
||||
local function loadFingerprints(filename)
|
||||
|
||||
local file, fingerprints
|
||||
|
||||
|
|
@ -75,7 +75,12 @@ end
|
|||
|
||||
action = function(host, port)
|
||||
|
||||
local tools = stdnse.get_script_args("http-devframework.fingerprintfile") or loadFingerprints("nselib/data/http-devframework-fingerprints.lua")
|
||||
local filename = stdnse.get_script_args("http-devframework.fingerprintfile") or "http-devframework-fingerprints.lua"
|
||||
local tools = loadFingerprints(filename)
|
||||
if not tools then
|
||||
stdnse.debug1("Failed to load fingerprints")
|
||||
return nil
|
||||
end
|
||||
local rapid = stdnse.get_script_args("http-devframework.rapid")
|
||||
|
||||
local d
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue