[ Avaa Bypassed ]




Upload:

Command:

www-data@3.141.12.150: ~ $
#!/usr/bin/perl
# Show a form to edit one port or port range

use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
require './firewalld-lib.pl';
our (%in, %text);
&ReadParse();

# Get the zone and rule
my @zones = &list_firewalld_zones();
my ($zone) = grep { $_->{'name'} eq $in{'zone'} } @zones;
$zone || &error($text{'port_ezone'});
my ($mode, $ports, $proto, $port, $portlow, $porthigh);
if (!$in{'new'}) {
	&ui_print_header(undef, $text{'port_edit'}, "");
	($ports, $proto) = split(/\//, $in{'id'});
	if ($ports =~ /^(\d+)\-(\d+)$/) {
		$mode = 1;
		($portlow, $porthigh) = ($1, $2);
		}
	else {
		$mode = 0;
		$port = $ports;
		}
	}
else {
	&ui_print_header(undef, $text{'port_create'}, "");
	$mode = 0;
	$proto = "tcp";
	}

print &ui_form_start("save_port.cgi", "post");
print &ui_hidden("zone", $in{'zone'});
print &ui_hidden("id", $in{'id'});
print &ui_hidden("new", $in{'new'});
print &ui_table_start($text{'port_header'}, undef, 2);

# Zone name
print &ui_table_row($text{'port_zone'},
		    "<tt>".&html_escape($zone->{'name'})."</tt>");

# Port number or range
print &ui_table_row($text{'port_port'},
	&ui_radio_table("mode", $mode, 
			[ [ 0, $text{'port_mode0'},
			    &ui_textbox("port", $port, 6) ],
			  [ 1, $text{'port_mode1'},
			    &ui_textbox("portlow", $portlow, 6)." - ".
			    &ui_textbox("porthigh", $porthigh, 6) ] ]));

# Protocol name
print &ui_table_row($text{'port_proto'},
	&ui_select("proto", $proto,
		   [ [ "tcp", "TCP" ],
		     [ "udp", "UDP" ] ], 1, 0, 1));

print &ui_table_end();
if ($in{'new'}) {
	print &ui_form_end([ [ undef, $text{'create'} ] ]);
	}
else {
	print &ui_form_end([ [ undef, $text{'save'} ],
			     [ 'delete', $text{'delete'} ] ]);
	}

&ui_print_footer("index.cgi?zone=".&urlize($zone->{'name'}),
	         $text{'index_return'});

Filemanager

Name Type Size Permission Actions
images Folder 0755
lang Folder 0755
CHANGELOG File 201 B 0644
bootup.cgi File 456 B 0755
config File 46 B 0644
config.info File 88 B 0644
config.info.ca File 103 B 0644
config.info.de File 100 B 0644
config.info.fr File 121 B 0644
config.info.no File 96 B 0644
config.info.pl File 98 B 0644
create_zone.cgi File 2.09 KB 0755
default_zone.cgi File 560 B 0755
delete_rules.cgi File 915 B 0755
delete_zone.cgi File 1.03 KB 0755
edit_forward.cgi File 2.55 KB 0755
edit_port.cgi File 1.78 KB 0755
edit_serv.cgi File 1.23 KB 0755
firewalld-lib.pl File 13.2 KB 0644
index.cgi File 5.79 KB 0755
install_check.pl File 469 B 0755
list_rules.cgi File 4.84 KB 0755
log_parser.pl File 794 B 0755
module.info File 176 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 116 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 184 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 177 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 193 B 0644
module.info.ca File 117 B 0644
module.info.cs File 0 B 0644
module.info.cs.auto File 140 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 128 B 0644
module.info.de File 124 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 252 B 0644
module.info.es File 0 B 0644
module.info.es.auto File 131 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 123 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 185 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 125 B 0644
module.info.fr File 0 B 0644
module.info.fr.auto File 134 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 177 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 125 B 0644
module.info.hu File 0 B 0644
module.info.hu.auto File 158 B 0644
module.info.it File 0 B 0644
module.info.it.auto File 128 B 0644
module.info.ja File 0 B 0644
module.info.ja.auto File 162 B 0644
module.info.ko File 0 B 0644
module.info.ko.auto File 143 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 151 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 131 B 0644
module.info.ms File 0 B 0644
module.info.ms.auto File 140 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 124 B 0644
module.info.nl File 0 B 0644
module.info.nl.auto File 124 B 0644
module.info.no File 0 B 0644
module.info.no.auto File 129 B 0644
module.info.pl File 132 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 118 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 124 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 128 B 0644
module.info.ru File 0 B 0644
module.info.ru.auto File 185 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 139 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 126 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 127 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 211 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 163 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 181 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 229 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 165 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 109 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 115 B 0644
open-ports.pl File 2.37 KB 0755
restart.cgi File 346 B 0755
save_forward.cgi File 1.55 KB 0755
save_ifaces.cgi File 643 B 0755
save_port.cgi File 1.13 KB 0755
save_rules.cgi File 796 B 0755
save_serv.cgi File 1.03 KB 0755
start.cgi File 326 B 0755
stop.cgi File 324 B 0755
zone_form.cgi File 968 B 0755