[ Avaa Bypassed ]




Upload:

Command:

www-data@18.119.0.207: ~ $
#!/usr/bin/perl
# index.cgi
# Display icons for the various shorewall configuration files

require './shorewall-lib.pl';

if (!&has_command($config{'shorewall'})) {
	&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1);
	print "<p>",&text('index_ecmd', "<tt>$config{'shorewall'}</tt>",
		  "@{[&get_webprefix()]}/config.cgi?$module_name"),"<p>\n";
	}
else {
	# Get the version
	$shorewall_version = &get_shorewall_version(1);
	&open_tempfile(VERSION, ">$module_config_directory/version");
	&print_tempfile(VERSION, $shorewall_version,"\n");
	&close_tempfile(VERSION);

	&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0,
		&help_search_link("shorewall", "doc", "google"),
		undef, undef, &text('index_version', &get_printable_version($shorewall_version)));

	if (!-d $config{'config_dir'}) {
		# Config dir not found!
		print "<p>",&text('index_edir',
		      "<tt>$config{'config_dir'}</tt>",
		      "@{[&get_webprefix()]}/config.cgi?$module_name"),"<p>\n";
		}
	else {
		# Just show the file icons
		@files = grep { &can_access($_) } @shorewall_files;
		@titles = map { $text{&clean_name($_)."_title"}."<br>($_)" } @files;
		@links = map { "list.cgi?table=".$_ } @files;
		@icons = map { "images/".$_.".gif" } @files;
		&icons_table(\@links, \@titles, \@icons, 4);

		# Check if shorewall is running by looking for the 'shorewall'
		# chain in the filter table
		print &ui_hr();
		print &ui_buttons_start();
		my $ex = system("$config{'shorewall'} status 2>&1");

		if ($ex && !$access{'nochange'}) {
			# Down .. offer to start
			print &ui_buttons_row(
				"start.cgi",
				$text{'index_start'},
				$text{'index_startdesc'});
			}
		elsif (!$ex && !$access{'nochange'}) {
			# Up .. offer to restart, clear and stop
			print &ui_buttons_row(
				"restart.cgi",
				$text{'index_restart'},
				$text{'index_restartdesc'});

			print &ui_buttons_row(
				"refresh.cgi",
				$text{'index_refresh'},
				$text{'index_refreshdesc'});

			print &ui_buttons_row(
				"clear.cgi",
				$text{'index_clear'},
				$text{'index_cleardesc'});

			print &ui_buttons_row(
				"stop.cgi",
				$text{'index_stop'},
				$text{'index_stopdesc'});
			}
		if (!$ex) {
			print &ui_buttons_row(
				"status.cgi",
				$text{'index_status'},
				$text{'index_statusdesc'});
			}

		# Check and dump buttons
		print &ui_buttons_row(
			"check.cgi",
			$text{'index_check'},
			$text{'index_checkdesc'});
		print &ui_buttons_row(
			"dump.cgi",
			$text{'index_dump'},
			$text{'index_dumpdesc'});

		print &ui_buttons_end();
		}
	}

&ui_print_footer("/", $text{'index'});


Filemanager

Name Type Size Permission Actions
images Folder 0755
lang Folder 0755
CHANGELOG File 2.47 KB 0644
acl_security.pl File 1 KB 0755
backup_config.pl File 874 B 0755
check.cgi File 503 B 0755
clear.cgi File 313 B 0755
config File 166 B 0644
config.info File 509 B 0644
config.info.ca File 573 B 0644
config.info.de File 558 B 0644
config.info.es File 297 B 0644
config.info.fr File 466 B 0644
config.info.ms File 404 B 0644
config.info.nl File 394 B 0644
config.info.no File 402 B 0644
defaultacl File 19 B 0644
delete.cgi File 530 B 0755
down.cgi File 403 B 0755
dump.cgi File 337 B 0755
edit.cgi File 1.69 KB 0755
editcmt.cgi File 1014 B 0755
index.cgi File 2.52 KB 0755
install_check.pl File 380 B 0755
list.cgi File 3.39 KB 0755
log_parser.pl File 461 B 0755
manual_form.cgi File 710 B 0755
manual_save.cgi File 555 B 0755
module.info File 169 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 111 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 154 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 171 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 204 B 0644
module.info.ca File 100 B 0644
module.info.cs File 27 B 0644
module.info.cs.auto File 85 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 104 B 0644
module.info.de File 112 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 175 B 0644
module.info.es File 30 B 0644
module.info.es.auto File 76 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 114 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 154 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 102 B 0644
module.info.fr File 0 B 0644
module.info.fr.auto File 114 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 166 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 108 B 0644
module.info.hu File 26 B 0644
module.info.hu.auto File 74 B 0644
module.info.it File 0 B 0644
module.info.it.auto File 106 B 0644
module.info.ja File 0 B 0644
module.info.ja.auto File 136 B 0644
module.info.ko File 0 B 0644
module.info.ko.auto File 115 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 114 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 105 B 0644
module.info.ms File 113 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 98 B 0644
module.info.nl File 27 B 0644
module.info.nl.auto File 84 B 0644
module.info.no File 27 B 0644
module.info.no.auto File 76 B 0644
module.info.pl File 0 B 0644
module.info.pl.auto File 105 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 99 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 105 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 109 B 0644
module.info.ru File 0 B 0644
module.info.ru.auto File 180 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 113 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 104 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 111 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 192 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 129 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 162 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 158 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 136 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 82 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 88 B 0644
refresh.cgi File 427 B 0755
restart.cgi File 423 B 0755
save.cgi File 1.08 KB 0755
savecmt.cgi File 867 B 0755
shorewall-lib.pl File 57.91 KB 0755
start.cgi File 413 B 0755
status.cgi File 343 B 0755
stop.cgi File 312 B 0755
up.cgi File 397 B 0755