mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Small patch to jdwp-version.nse to address a corner case false positive.
This commit is contained in:
parent
a451b65483
commit
1ee7305154
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ action = function(host, port)
|
|||
end
|
||||
-- match jdwp m|JDWP-Handshake| p/$1/ v/$3/ i/$2\n$4/
|
||||
local match = {string.match(result, "^JDWP%-Handshake%z%z..%z%z%z\1\128%z%z%z%z..([^%z\n]*)\n([^%z]*)%z%z..%z%z..%z%z..([0-9._]+)%z%z..([^%z]*)")}
|
||||
if match == nil then
|
||||
if match == nil or #match == 0 then
|
||||
-- if we have one \128 (reply marker), it is at least not echo because the request did not contain \128
|
||||
if (string.match(result,"^JDWP%-Handshake%z.*\128") ~= nil) then
|
||||
port.version.name="jdwp"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue