[ Avaa Bypassed ]




Upload:

Command:

www-data@3.134.86.4: ~ $
#!/usr/bin/perl
# list.cgi
# Display the contents of some table

require './shorewall-lib.pl';
&ReadParse();
&can_access($in{'table'}) || &error($text{'list_ecannot'});
&get_clean_table_name(\%in);
&ui_print_header(undef, $text{$in{'tableclean'}."_title"}, "");

$desc = $text{$in{'tableclean'}."_desc"};
print "$desc<p>\n" if ($desc);

$pfunc = &get_parser_func(\%in);
@table = &read_table_file($in{'table'}, $pfunc);
$cfunc = $in{'tableclean'}."_columns";
$cols = &$cfunc() if (defined(&$cfunc));
$nfunc = $in{'tableclean'}."_colnames";
#&debug_message("cfunc = $cfunc");
#&debug_message("nfunc = $nfunc");
if (defined(&$nfunc)) {
	@colnames = &$nfunc();
	}
else {
	@colnames = ( );
	for($j=0; defined($cols) ? ($j<$cols) : ($text{$in{'tableclean'}."_".$j}); $j++) {
		push(@colnames, $text{$in{'tableclean'}."_".$j});
		}
	}

# Work out select/create links
@links = ( &select_all_link("d"),
	   &select_invert_link("d"),
	   &ui_link("edit.cgi?table=$in{'table'}&new=1",
		    $text{$in{'tableclean'}."_add"}) );
if (&version_atleast(3, 3, 3) && &indexof($in{'table'}, @comment_tables) >= 0) {
	push(@links, &ui_link("editcmt.cgi?table=$in{'table'}&new=1",$text{"comment_add"}));
	}

# Show the table
if (@table) {
	print &ui_form_start("delete.cgi", "post");
	print &ui_hidden("table", $in{'table'}),"\n";
	print &ui_links_row(\@links);
	print &ui_columns_start([
		"",
		@colnames,
		(@table > 1 ? ( $text{'list_move'} ) : ( )),
		$text{'list_add'}
		], undef, 0, [ "width=5" ]);

	$rfunc = $in{'tableclean'}."_row";
	for($i=0; $i<@table; $i++) {
		@t = @{$table[$i]};
		local @cols;
		local @tds;
		if ($t[0] =~ /\??COMMENT/) {
			# Special case - a comment line
			push(@cols, "<a href='editcmt.cgi?table=$in{'table'}&".
				    "idx=$i'><i>".join(" ", @t[1..$#t]).
				    "</i></a>" );
			@tds = ( "width=5", "colspan=".scalar(@colnames) );
			}
		else {
			# Some rule or other object
			if (defined(&$rfunc)) {
				@t = &$rfunc(@t);
				}
			for($j=0; $j<@colnames; $j++) {
				if ($j == 0) {
					$lnk = &ui_link("edit.cgi?table=$in{'table'}&idx=$i",$t[$j]);
					}
				else {
					$lnk = $t[$j];
					}
				push(@cols, $lnk);
				}
			@tds = ( "width=5" );
			}
		if (@table > 1) {
			$mover = "";
			if ($i == 0) {
				$mover .= "<img src=images/gap.gif>";
				}
			else {
				$mover .= &ui_link("up.cgi?table=$in{'table'}&idx=$i","<img src=images/up.gif border=0>")."\n";
				}
			if ($i == $#table) {
				$mover .= "<img src=images/gap.gif>";
				}
			else {
				$mover .= &ui_link("down.cgi?table=$in{'table'}&idx=$i","<img src=images/down.gif border=0>")."\n";
				}
			push(@cols, $mover);
			}
		push(@cols,
		      "<a href='edit.cgi?table=$in{'table'}&new=1&before=$i'>".
		      "<img src=images/before.gif border=0></a>\n".
		      "<a href='edit.cgi?table=$in{'table'}&new=1&after=$i'>".
		      "<img src=images/after.gif border=0></a>\n");
		print &ui_checked_columns_row(\@cols, \@tds, "d", $i);
		}
	print &ui_columns_end();
	}
else {
	print "<b>",$text{$in{'tableclean'}."_none"},"</b><p>\n";
	shift(@links); shift(@links);
	}
print &ui_links_row(\@links);
if (@table) {
	print &ui_form_end([ [ "delete", $text{'list_delete'} ] ]);
	}

print &ui_hr();
print &ui_buttons_start();
print &ui_buttons_row("manual_form.cgi", $text{'list_manual'},
		      &text('list_manualdesc',
			"<tt>$config{'config_dir'}/$in{'table'}</tt>"),
		      &ui_hidden("table", $in{'table'}));
print &ui_buttons_end();

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

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