mirror of
https://github.com/nmap/nmap.git
synced 2026-01-27 08:39:02 +00:00
nse-check-globals cleanup
This commit is contained in:
@@ -1156,12 +1156,12 @@ ColumnData =
|
||||
local days, mins
|
||||
pos, days, mins = bin.unpack("<SS", data, pos)
|
||||
|
||||
tds_epoch = os.time( {year = 1900, month = 1, day = 1, hour = 00, min = 00, sec = 00, isdst = nil} )
|
||||
local tds_epoch = os.time( {year = 1900, month = 1, day = 1, hour = 00, min = 00, sec = 00, isdst = nil} )
|
||||
-- determine the offset between the tds_epoch and the local system epoch
|
||||
system_epoch = os.time( os.date("*t", 0))
|
||||
tds_offset_seconds = os.difftime(tds_epoch,system_epoch)
|
||||
local system_epoch = os.time( os.date("*t", 0))
|
||||
local tds_offset_seconds = os.difftime(tds_epoch,system_epoch)
|
||||
|
||||
result_seconds = (days*24*60*60) + (mins*60)
|
||||
local result_seconds = (days*24*60*60) + (mins*60)
|
||||
coldata = os.date("!%b %d, %Y %H:%M:%S", tds_offset_seconds + result_seconds )
|
||||
|
||||
return pos,coldata
|
||||
|
||||
@@ -119,6 +119,7 @@ so, it starves the http server's resources causing Denial Of Service.
|
||||
local report = vulns.Report:new(SCRIPT_NAME, host, port)
|
||||
slowloris.state = vulns.STATE.NOT_VULN
|
||||
|
||||
local _
|
||||
_, _, Bestopt = comm.tryssl(host, port, "GET / \r\n\r\n", {}) -- first determine if we need ssl
|
||||
HalfHTTP = "POST /" .. tostring(math.random(100000, 900000)) .. " HTTP/1.1\r\n" ..
|
||||
"Host: " .. host.ip .. "\r\n" ..
|
||||
|
||||
Reference in New Issue
Block a user