"it might be possible to execute commands on the signing server"
This commit is contained in:
parent
e870b86839
commit
db6ea0aafd
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue