mirror of
https://github.com/nmap/nmap.git
synced 2026-10-20 19:01:56 +00:00
Removes trailing ".0" from clock artifacts
This commit is contained in:
parent
bcdfa3d05d
commit
3a6deb0075
1 changed files with 2 additions and 2 deletions
|
|
@ -826,7 +826,7 @@ table.insert(fingerprints, {
|
|||
{username = "admin", password = "motorola"}
|
||||
},
|
||||
login_check = function (host, port, path, user, pass)
|
||||
local form = {_dc = stdnse.clock_ms(),
|
||||
local form = {_dc = math.floor(stdnse.clock_ms()),
|
||||
username = user,
|
||||
password = pass}
|
||||
local lurl = url.absolute(path, "rest.fcgi/services/rest/login?" .. url.build_query(form))
|
||||
|
|
@ -1303,7 +1303,7 @@ table.insert(fingerprints, {
|
|||
-- but this would be too revealing
|
||||
local sessionid = host.ip
|
||||
.. "_"
|
||||
.. stdnse.clock_ms()
|
||||
.. math.floor(stdnse.clock_ms())
|
||||
.. math.random(100000, 999999)
|
||||
local encpass = xmlencode(pass)
|
||||
local header = {["Content-Type"]="text/xml", ["SOAPAction"]='""'}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue