[ Avaa Bypassed ]




Upload:

Command:

www-data@3.22.217.190: ~ $
#!/usr/bin/perl

local $format;
local $out;

require "./time-lib.pl";
use Time::Local;

&ReadParse();

if (!$in{'action'}) {
	# user probably hit return in the time server field
	$in{'action'} = $text{'index_sync'};
	}
$mode = "time";

if ($in{'action'} eq $text{'action_sync'}) {
  # Set system time to hardware time
  &error( $text{ 'acl_nosys' } ) if( $access{ 'sysdate' } );
  local $flags = &get_hwclock_flags();
  $out = &backquote_logged("hwclock $flags --hctosys");
  &error( &text( 'error_sync', $out ) ) if( $out ne "" );
  &webmin_log("sync");

} elsif ($in{'action'} eq $text{'action_sync_s'}) {
  # Set hardware time to system time
  &error( $text{ 'acl_nohw' } ) if( $access{ 'hwdate' } && $access{'sysdate'} );
  local $flags = &get_hwclock_flags();
  $out = &backquote_logged("hwclock $flags --systohc");
  &error( &text( 'error_sync', $out ) ) if( $out ne "" );
  &webmin_log("sync_s");

} elsif($in{'action'} eq $text{'action_apply'} || $in{'mode'} eq 'sysdate' ) {
  # Setting the system time
  &error( $text{ 'acl_nosys' } ) if( $access{ 'sysdate' } );
  $err = &set_system_time($in{ 'second' }, $in{'minute'}, $in{'hour'},
		   $in{'date'}, $in{'month'}-1, $in{'year'}-1900);
  &error(&html_escape($err)) if ($err);
  &webmin_log("set", "date", time(), \%in);

} elsif ($in{'action'} eq $text{'action_save'} || $in{'mode'} eq 'hwdate' ) {
  # Setting the hardware time
  &error( $text{ 'acl_nohw' } ) if( $access{ 'hwdate' } );
  $err = &set_hardware_time($in{ 'second' }, $in{'minute'}, $in{'hour'},
		   $in{'date'}, $in{'month'}-1, $in{'year'}-1900);
  &error( &text( 'error_hw', &html_escape($err) ) ) if ($err);
  local $hwtime = timelocal($in{'second'}, $in{'minute'}, $in{'hour'},
			    $in{'date'}, $in{'month'}-1, $in{'year'} < 200 ?
			    $in{'year'} : $in{'year'}-1900);
  &webmin_log("set", "hwclock", $hwtime, \%in);

} elsif ($in{'action'} eq $text{'index_sync'} || $in{'mode'} eq 'ntp') {
  # Sync with a time server
  $access{'ntp'} || &error($text{'acl_nontp'});
  $in{'timeserver'} =~ /\S/ || &error($text{'error_etimeserver'});
  $err = &sync_time($in{'timeserver'}, $in{'hardware'});
  &error("<pre>".&html_escape($err)."</pre>") if ($err);

  # Save settings in module config
  &lock_file($module_config_file);
  $config{'timeserver'} = $in{'timeserver'};
  $config{'timeserver_hardware'} = $in{'hardware'};
  &save_module_config();
  &unlock_file($module_config_file);

  # Create, update or delete the syncing cron job
  $job = &find_webmin_cron_job();
  if ($in{'sched'} || $in{'boot'}) {
	$job ||= { 'module' => $module_name,
		   'func' => 'sync_time_cron' };
	$job->{'disabled'} = $in{'sched'} ? 0 : 1;
	$job->{'boot'} = $in{'boot'};
	&webmincron::parse_times_input($job, \%in);
	&webmincron::create_webmin_cron($job);
	}
  elsif ($job) {
	&webmincron::delete_webmin_cron($job);
	}

  &webmin_log("remote", $in{'action'} eq $text{'action_timeserver_sys'} ?  "date" : "hwclock", $rawtime, \%in);
  $mode = "sync";
}

&redirect("index.cgi?mode=$mode");


Filemanager

Name Type Size Permission Actions
help Folder 0755
images Folder 0755
lang Folder 0755
CHANGELOG File 1.56 KB 0644
acl_security.pl File 687 B 0755
apply.cgi File 2.93 KB 0755
backup_config.pl File 775 B 0755
config-ALL-linux File 94 B 0644
config-freebsd File 95 B 0644
config-hpux File 76 B 0644
config-irix File 76 B 0644
config-macos File 76 B 0644
config-netbsd File 76 B 0644
config-openserver File 76 B 0644
config-redhat-linux File 117 B 0644
config-solaris File 95 B 0644
config.info File 537 B 0644
config.info.ca File 611 B 0644
config.info.cs File 587 B 0644
config.info.de File 566 B 0644
config.info.es File 611 B 0644
config.info.fa File 776 B 0644
config.info.fr File 634 B 0644
config.info.hr File 0 B 0644
config.info.hu File 594 B 0644
config.info.it File 615 B 0644
config.info.ja File 278 B 0644
config.info.ko File 577 B 0644
config.info.ms File 572 B 0644
config.info.nl File 549 B 0644
config.info.no File 560 B 0644
config.info.pl File 590 B 0644
config.info.pt_BR File 647 B 0644
config.info.ru File 923 B 0644
config.info.sk File 583 B 0644
config.info.sv File 179 B 0644
config.info.tr File 428 B 0644
config.info.uk File 473 B 0644
config.info.zh File 96 B 0644
config.info.zh_TW File 224 B 0644
defaultacl File 47 B 0644
freebsd-lib.pl File 1.29 KB 0755
index.cgi File 7.62 KB 0755
linux-lib.pl File 2.02 KB 0755
log_parser.pl File 936 B 0755
module.info File 228 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 117 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 152 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 188 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 185 B 0644
module.info.ca File 133 B 0644
module.info.ca.auto File 14 B 0644
module.info.cs File 25 B 0644
module.info.cs.auto File 100 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 112 B 0644
module.info.de File 116 B 0644
module.info.de.auto File 13 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 243 B 0644
module.info.es File 25 B 0644
module.info.es.auto File 115 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 125 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 177 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 135 B 0644
module.info.fr File 23 B 0644
module.info.fr.auto File 123 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 142 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 135 B 0644
module.info.hu File 35 B 0644
module.info.hu.auto File 122 B 0644
module.info.it File 23 B 0644
module.info.it.auto File 97 B 0644
module.info.ja File 27 B 0644
module.info.ja.auto File 145 B 0644
module.info.ko File 25 B 0644
module.info.ko.auto File 118 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 143 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 122 B 0644
module.info.ms File 117 B 0644
module.info.ms.auto File 13 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 134 B 0644
module.info.nl File 21 B 0644
module.info.nl.auto File 94 B 0644
module.info.no File 19 B 0644
module.info.no.auto File 93 B 0644
module.info.pl File 100 B 0644
module.info.pl.auto File 13 B 0644
module.info.pt File 25 B 0644
module.info.pt.auto File 105 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 138 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 130 B 0644
module.info.ru File 38 B 0644
module.info.ru.auto File 162 B 0644
module.info.sk File 25 B 0644
module.info.sk.auto File 104 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 125 B 0644
module.info.sv File 18 B 0644
module.info.sv.auto File 106 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 250 B 0644
module.info.tr File 23 B 0644
module.info.tr.auto File 107 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 180 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 180 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 168 B 0644
module.info.zh File 91 B 0644
module.info.zh_TW File 24 B 0644
module.info.zh_TW.auto File 91 B 0644
postinstall.pl File 674 B 0755
rbac-mapping File 73 B 0644
save_timezone.cgi File 359 B 0755
solaris-lib.pl File 1.39 KB 0755
time-lib.pl File 7.17 KB 0755
time.js File 785 B 0644
uninstall.pl File 330 B 0755