mirror of
https://github.com/nmap/nmap.git
synced 2026-02-09 06:56:35 +00:00
o [NSE] Added a "times" table to the host table passed to scripts.
This table contains Nmap's timing data (srtt, the smoothed round trip time; rttvar, the rtt variance; and timeout), all represented as floating-point seconds. The ipidseq and qscan scripts were updated to utilize the host's timeout value instead of the very conservative guess of 3 seconds for read timeouts. [Kris]
This commit is contained in:
@@ -224,7 +224,7 @@ action = function(host)
|
||||
|
||||
pcap:pcap_open(host.interface, 104, 0, callback, "tcp and dst host " .. saddr .. " and src host " .. daddr .. " and src port " .. port)
|
||||
|
||||
pcap:set_timeout(3000)
|
||||
pcap:set_timeout(host.times.timeout * 1000)
|
||||
|
||||
local tcp = genericpkt(host, port)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user