#Note It is possible that sometimes you need to use the host domain (e.g. sizzle.htb)
NTPDATE
RDATE
DATE
It is also possible to set the date “manually” extracting the date from a web server “Date” header:
1
| date -s "$(curl -s -k -I https://www.windcorp.htb | grep date | cut -d " " -f2- | tr -d ',')"
|
Alternative DATE
1
2
3
4
5
6
7
8
9
10
| # Move the timezone to GMT or the same zone than the AD:
timedatectl set-timezone 'GMT'
# Get and synchronize the hour in real time:
date -s "$(curl -s -k -I https://www.windcorp.htb | grep date | cut -d " " -f2- | tr -d ',')"
Fri Feb 3 10:57:56 AM GMT 2023
# Be sure that it is indeed working:
curl -s -k -I https://www.windcorp.htb | grep date | cut -d " " -f2- | tr -d ','
Fri 03 Feb 2023 10:57:59 GMT
|
[[Anubis#^bcaafb]]