Skip to content

YamiNoKen/TimeSkewFix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Time_Skew_Fix

Fix time skew issues in Kerberos environments by syncing your system time with a Domain Controller using systemd-timesyncd and ntpdate.

This script is especially useful in penetration testing labs or Active Directory environments where Kerberos authentication fails due to clock drift (krb_ap_err_skew(clock skew too great)).


πŸ“¦ Installation

1. πŸ“ Copy the script to /usr/local/bin

This is the standard location for custom system-wide scripts:

sudo cp Time_Skew_Fix.sh /usr/local/bin/Time_Skew_Fix.sh

2. βœ… Make it executable

sudo chmod +x /usr/local/bin/Time_Skew_Fix.sh

πŸš€ Usage

Run the script with the IP address of your Domain Controller:

sudo Time_Skew_Fix.sh <domain_controller_ip>

βœ… Example:

sudo Time_Skew_Fix.sh 10.129.XX.XX

βš™οΈ What It Does

  • Installs required time synchronization packages
  • Enables and configures systemd-timesyncd
  • Adds the Domain Controller as the NTP server
  • Forces a manual sync using ntpdate
  • Prints the time sync status

πŸ“„ Requirements

Make sure the following packages are installed:

  • systemd-timesyncd
  • ntpdate
  • util-linux

(Optional) You can run the included requirements.sh script to install them automatically:

sudo ./requirements.sh

πŸ“œ License

MIT – use freely, modify openly, share proudly.

About

krb_ap_err_skew(clock skew too great)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages