Gets the date from HTTP-like services. Also prints how much the date differs from local time. Local time is the time the HTTP request was sent, so the difference includes at least the duration of one RTT.
http.max-cache-size, http.max-pipeline, http.pipeline, http.useragentSee the documentation for the http library.
smbdomain, smbhash, smbnoguest, smbpassword, smbtype, smbusernameSee the documentation for the smbauth library.
nmap -sV --script=http-date <target>
80/tcp open http |_http-date: Thu, 02 Aug 2012 22:11:03 GMT; 0s from local time. 80/tcp open http |_http-date: Thu, 02 Aug 2012 22:07:12 GMT; -3m51s from local time.
Author: David Fifield
License: Same as Nmap--See https://nmap.org/book/man-legal.html