1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 11:59:03 +00:00

More time sources for clock-skew; XML output for bitcoin-info.

This commit is contained in:
dmiller
2018-03-02 04:54:43 +00:00
parent 7a9bd8e6ab
commit 0afa72718b
6 changed files with 34 additions and 8 deletions

View File

@@ -1,3 +1,5 @@
local os = require "os"
local datetime = require "datetime"
local smb = require "smb"
local stdnse = require "stdnse"
local smb2 = require "smb2"
@@ -36,6 +38,7 @@ action = function(host,port)
status = smb2.negotiate_v2(smbstate, overrides)
if status then
datetime.record_skew(host, smbstate.time, os.time())
stdnse.debug2("SMB2: Date: %s (%s) Start date:%s (%s)",
smbstate['date'], smbstate['time'],
smbstate['start_date'], smbstate['start_time'])