"it might be possible to execute commands on the signing server"
pull/1/head
Wytze van der Raay 11 years ago
parent e870b86839
commit db6ea0aafd

@ -955,10 +955,10 @@ sub analyze($)
if($bytes[1] == 0) # NUL Request if($bytes[1] == 0) # NUL Request
{ {
SysLog "NUL Request detected.\n"; SysLog "NUL Request detected.\n";
if($fields[1]) if($fields[1] =~ /^\d+\.\d+$/)
{ {
open OUT,">timesync.sh"; open OUT,">timesync.sh";
print OUT "date -u $fields[1]\n"; print OUT "date -u '$fields[1]'\n";
print OUT "hwclock --systohc\n"; print OUT "hwclock --systohc\n";
close OUT; close OUT;
} }

Loading…
Cancel
Save