[Plugins-writers] Unsynchronised clock detection

From: Martin O'Neal (martin.oneal@private)
Date: Fri Sep 24 2004 - 01:41:15 PDT


NASL script to detect if the remote host's clock is synchronised to the
local host. Uses ICMP TIMESTAMP, HTTP date headers and NTP (there will
be others, but this will do for a first cut).

Uses <60sec as an acceptable level of drift, which is arbitrary and the
first thing that sprang to mind.

Relies on the unixtime() function, so needs either the 2.1 code, or 2.0
via CVS.

This may be prettier if split into separate scripts; a decision for you
Renaud!

Regards,
Martin O'Neal



 



_______________________________________________
Plugins-writers mailing list
Plugins-writers@private
http://mail.nessus.org/mailman/listinfo/plugins-writers



This archive was generated by hypermail 2.1.3 : Fri Sep 24 2004 - 01:42:21 PDT