[ Avaa Bypassed ]




Upload:

Command:

www-data@18.117.246.69: ~ $
#!/usr/bin/perl
# edit_header.cgi
# Display extra header and body test

require './spam-lib.pl';
&ReadParse();
&set_config_file_in(\%in);
&can_use_check("header");
&ui_print_header($header_subtext, $text{'header_title'}, "");
$conf = &get_config();

print "$text{'header_desc'}<p>\n";
&start_form("save_header.cgi", $text{'header_header'},
	    "<a href='edit_simple.cgi?file=".&urlize($in{'file'}).
	    "&title=".&urlize($in{'title'}).
	    "'>$text{'header_switch'}</a>");

# Allow user-defined rules?
if (!$module_info{'usermin'}) {
	$allow = &find("allow_user_rules", $conf);
	print &ui_table_row($text{'header_allow'},
		&yes_no_field("allow_user_rules", $allow, 0));
	}

# Header tests
@header = &find("header", $conf);
print &ui_table_row($text{'header_test'},
	&edit_table("header",
	    [ $text{'header_tname'}, $text{'header_name'}, $text{'header_op'},
	      $text{'header_pat'}, $text{'header_default'} ],
	    [ map { [ &split_header($_->{'value'}) ] } @header ], [ ], \&header_conv, 2));

print &ui_table_hr();

push(@body, map { [ &split_body($_->{'value'}), 0 ] } &find("body", $conf));
push(@body, map { [ &split_body($_->{'value'}), 1 ] } &find("rawbody", $conf));
push(@body, map { [ &split_body($_->{'value'}), 2 ] } &find("fullbody", $conf));
push(@body, map { [ &split_body($_->{'value'}), 3 ] } &find("full", $conf));
print &ui_table_row($text{'header_body'},
	&edit_table("body",
	    [ $text{'header_tname'}, $text{'header_mode'}, $text{'header_op'},
	      $text{'header_pat'} ], \@body, [ ], \&body_conv, 2));

print &ui_table_hr();

@uri = &find("uri", $conf);
print &ui_table_row($text{'header_uri'},
	&edit_table("uri",
	    [ $text{'header_tname'}, $text{'header_pat'} ],
	    [ map { $_->{'words'} } @uri ], [ 20, 40 ], undef, 2));

print &ui_table_hr();

@meta = &find("meta", $conf);
print &ui_table_row($text{'header_meta'},
	&edit_table("meta",
	    [ $text{'header_tname'}, $text{'header_bool'} ],
	    [ map { $_->{'value'} =~ /^(\S+)\s*(.*)$/ ? [ $1, $2 ] : [ ] } @meta ],
	    [ 20, 40 ], undef, 2));

print &ui_table_hr();

@score = &find("score", $conf);
print &ui_table_row($text{'score_score'},
	&edit_table("score",
		    [ $text{'score_name'}, $text{'score_points'} ],
		    [ map { $_->{'words'} } @score ], [ 30, 6 ]));

@describe = &find("describe", $conf);
print &ui_table_row($text{'score_describe'},
	&edit_table("describe",
	    [ $text{'score_name'}, $text{'score_descr'} ],
	    [ map { $_->{'value'} =~ /^(\S+)\s*(.*)/ ? [ $1, $2 ] : [ ] }
	      @describe ], [ 30, 40 ]));

&end_form(undef, $text{'save'});
&ui_print_footer($redirect_url, $text{'index_return'});

# header_conv(col, name, size, value, &values)
sub header_conv
{
if ($_[0] == 0) {
	return &ui_textbox($_[1], $_[3], 20);
	}
elsif ($_[0] == 1) {
	local $h = $_[3] =~ /^exists:(\S+)$/ ? $1 : $_[3] =~ /^eval:/ ? "" : $_[3];
	return &ui_textbox($_[1], $h, 15);
	}
elsif ($_[0] == 2) {
	local $v = $_[4]->[1] =~ /^exists:/ ? 'exists' :
		   $_[4]->[1] =~ /^eval:/ ? 'eval' : $_[3];
	return &ui_select($_[1], $v,
			  [ [ '=~', $text{'header_op0'} ],
			    [ '!~', $text{'header_op1'} ],
			    [ 'exists', $text{'header_op2'} ],
			    [ 'eval', $text{'header_op3'} ] ], 1, 0, $v);
	}
elsif ($_[0] == 3) {
	return &ui_textbox($_[1], $_[4]->[1] =~ /^eval:(.*)/ ? $1 : $_[3], 20);
	}
elsif ($_[0] == 4) {
	return &ui_textbox($_[1], $_[3], 15);
	}
}

# body_conv(col, name, size, value, &values)
sub body_conv
{
if ($_[0] == 0) {
	return &ui_textbox($_[1], $_[4]->[0], 20);
	}
elsif ($_[0] == 1) {
	return &ui_select($_[1], $_[4]->[2],
			[ [ 0, $text{'header_mode0'} ],
			  [ 1, $text{'header_mode1'} ],
			  [ 2, $text{'header_mode2'} ],
			  [ 3, $text{'header_mode3'} ] ]);
	}
elsif ($_[0] == 2) {
	return &ui_select($_[1], $_[4]->[1] =~ /^eval:/ ? 1 : 0,
			  [ [ 0, $text{'header_op0'} ],
			    [ 1, $text{'header_op3'} ] ]);
	}
elsif ($_[0] == 3) {
	return &ui_textbox($_[1], $_[4]->[1] =~ /^eval:(.*)$/ ? $1 : $_[4]->[1],
			   40);
	}
}

sub split_header
{
if ($_[0] =~ /^(\S+)\s+(eval:\S+\(.*\))/) {
	return ($1, $2);
	}
elsif ($_[0] =~ /^(\S+)\s+(\S+)\s+(\S+)\s+(\/.*\/\S*)\s*(if-unset:\s*(.*))?/) {
	return ($1, $2, $3, $4, $6);
	}
else {
	return ( );
	}
}

sub split_body
{
if ($_[0] =~ /^(\S+)\s+((\/.*\/\S*)|(eval:\S+\(.*\)))/) {
	return ($1, $2);
	}
else {
	return ( );
	}
}


Filemanager

Name Type Size Permission Actions
images Folder 0755
lang Folder 0755
CHANGELOG File 2.12 KB 0644
acl_security.pl File 1.46 KB 0755
apply.cgi File 229 B 0755
backup_config.pl File 890 B 0755
cgi_args.pl File 189 B 0755
config File 236 B 0644
config-AlmaLinux-7.0-ALL File 287 B 0644
config-CentOS-Stream-Linux-8.0-ALL File 287 B 0644
config-CloudLinux-8.0-ALL File 287 B 0644
config-Oracle-Linux-8.0-ALL File 287 B 0644
config-Rocky-Linux-7.0-ALL File 287 B 0644
config-debian-linux File 246 B 0644
config-debian-linux-10.0-ALL File 294 B 0644
config-freebsd File 288 B 0644
config-pardus-linux File 224 B 0644
config-redhat-linux-24.0-ALL File 287 B 0644
config-syno-linux File 277 B 0644
config.info File 1.43 KB 0644
config.info.ca File 1.66 KB 0644
config.info.cs File 1.41 KB 0644
config.info.de File 1.67 KB 0644
config.info.el File 967 B 0644
config.info.es File 450 B 0644
config.info.fr File 482 B 0644
config.info.hu File 0 B 0644
config.info.nl File 1.45 KB 0644
config.info.no File 1.41 KB 0644
defaultacl File 71 B 0644
delete_awl.cgi File 1.17 KB 0755
deleteall_awl.cgi File 806 B 0755
deleteone_awl.cgi File 560 B 0755
edit_amavisd.cgi File 4.85 KB 0755
edit_awl.cgi File 3.54 KB 0755
edit_db.cgi File 3.17 KB 0755
edit_header.cgi File 4.21 KB 0755
edit_manual.cgi File 1.06 KB 0755
edit_priv.cgi File 1.2 KB 0755
edit_procmail.cgi File 1.87 KB 0755
edit_report.cgi File 4.3 KB 0755
edit_score.cgi File 3.18 KB 0755
edit_setup.cgi File 1.57 KB 0755
edit_simple.cgi File 1.5 KB 0755
edit_user.cgi File 2.76 KB 0755
edit_white.cgi File 4.38 KB 0755
index.cgi File 5.18 KB 0755
install_check.pl File 423 B 0755
langs File 718 B 0644
locales File 69 B 0644
log_parser.pl File 329 B 0755
module.info File 197 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 151 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 219 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 231 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 226 B 0644
module.info.ca File 114 B 0644
module.info.ca.auto File 21 B 0644
module.info.cs File 36 B 0644
module.info.cs.auto File 128 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 154 B 0644
module.info.de File 141 B 0644
module.info.de.auto File 21 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 266 B 0644
module.info.es File 40 B 0644
module.info.es.auto File 129 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 164 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 216 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 156 B 0644
module.info.fr File 40 B 0644
module.info.fr.auto File 122 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 191 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 163 B 0644
module.info.hu File 41 B 0644
module.info.hu.auto File 129 B 0644
module.info.it File 0 B 0644
module.info.it.auto File 149 B 0644
module.info.ja File 0 B 0644
module.info.ja.auto File 220 B 0644
module.info.ko File 0 B 0644
module.info.ko.auto File 185 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 190 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 162 B 0644
module.info.ms File 138 B 0644
module.info.ms.auto File 21 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 154 B 0644
module.info.nl File 34 B 0644
module.info.nl.auto File 121 B 0644
module.info.no File 35 B 0644
module.info.no.auto File 120 B 0644
module.info.pl File 0 B 0644
module.info.pl.auto File 172 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 158 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 167 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 162 B 0644
module.info.ru File 0 B 0644
module.info.ru.auto File 235 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 170 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 161 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 170 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 271 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 177 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 253 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 244 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 185 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 142 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 151 B 0644
save_amavisd.cgi File 2.54 KB 0755
save_db.cgi File 1.87 KB 0755
save_header.cgi File 2.99 KB 0755
save_manual.cgi File 727 B 0755
save_priv.cgi File 879 B 0755
save_procmail.cgi File 1.75 KB 0755
save_report.cgi File 2.14 KB 0755
save_score.cgi File 2.05 KB 0755
save_simple.cgi File 2.75 KB 0755
save_user.cgi File 1.64 KB 0755
save_white.cgi File 2.1 KB 0755
setup.cgi File 2.71 KB 0755
spam-amavis-lib.pl File 2.72 KB 0755
spam-lib.pl File 28.79 KB 0755