[ Avaa Bypassed ]




Upload:

Command:

www-data@18.188.66.142: ~ $
#!/usr/bin/perl
# edit_poll.cgi
# Display one server polled by fetchmail

require './fetchmail-lib.pl';
&ReadParse();
if ($config{'config_file'}) {
	$file = $config{'config_file'};
	}
else {
	&can_edit_user($in{'user'}) || &error($text{'poll_ecannot'});
	@uinfo = getpwnam($in{'user'});
	$file = "$uinfo[7]/.fetchmailrc";
	$uheader = &text('poll_foruser', "<tt>$in{'user'}</tt>");
	}

if ($in{'new'}) {
	&ui_print_header($uheader, $text{'poll_create'}, "");
	}
else {
	&ui_print_header($uheader, $text{'poll_edit'}, "");
	@conf = &parse_config_file($file);
	$poll = $conf[$in{'idx'}];
	}

print "<form action=save_poll.cgi method=post>\n";
print "<input type=hidden name=new value='$in{'new'}'>\n";
print "<input type=hidden name=idx value='$in{'idx'}'>\n";
print "<input type=hidden name=file value='$file'>\n";
print "<input type=hidden name=user value='$in{'user'}'>\n";

# Show server options
print "<table border width=100%>\n";
print "<tr $tb> <td><b>$text{'poll_header'}</b></td> </tr>\n";
print "<tr $cb> <td><table width=100%>\n";

print "<tr> <td><b>$text{'poll_poll'}</b></td>\n";
printf "<td><input name=poll size=30 value='%s'></td>\n",
	$poll->{'poll'};

print "<td><b>$text{'poll_skip'}</b></td>\n";
printf "<td><input type=radio name=skip value=0 %s> %s\n",
	$poll->{'skip'} ? '' : 'checked', $text{'yes'};
printf "<input type=radio name=skip value=1 %s> %s</td> </tr>\n",
	$poll->{'skip'} ? 'checked' : '', $text{'no'};

print "<tr> <td><b>$text{'poll_via'}</b></td>\n";
printf "<td colspan=3><input type=radio name=via_def value=1 %s> %s\n",
	$poll->{'via'} ? '' : 'checked', $text{'poll_via_def'};
printf "<input type=radio name=via_def value=0 %s>\n",
	$poll->{'via'} ? 'checked' : '';
printf "<input name=via size=30 value='%s'></td> </tr>\n",
	$poll->{'via'};

print "<tr> <td><b>$text{'poll_proto'}</b></td>\n";
print "<td><select name=proto>\n";
printf "<option value='' %s>%s</option>\n",
	$poll->{'proto'} ? '' : 'selected', $text{'default'};
foreach $p ('pop3', 'pop2', 'imap', 'imap-k4', 'imap-gss', 'apop', 'kpop') {
	printf "<option value=%s %s>%s</option>\n",
		$p, lc($poll->{'proto'}) eq $p ? 'selected' : '', uc($p);
	$found++ if (lc($poll->{'proto'}) eq $p);
	}
printf "<option value=%s selected>%s</option>\n", $poll->{'proto'}, uc($poll->{'proto'})
	if (!$found && $poll->{'proto'});
print "</select></td>\n";

							
print "<td><b>$text{'poll_port'}</b></td>\n";
printf "<td><input type=radio name=port_def value=1 %s> %s\n",
	$poll->{'port'} ? '' : 'checked', $text{'default'};
printf "<input type=radio name=port_def value=0 %s> %s\n",
	$poll->{'port'} ? 'checked' : '';
printf "<input name=port size=8 value='%s'></td> </tr>\n",
	$poll->{'port'};

print "<tr> <td><b>$text{'poll_auth'}</b></td>\n";
print "<td><select name=auth>\n";
printf "<option value='' %s>%s</option>\n",
	$poll->{'auth'} ? '' : 'selected', $text{'default'};
foreach $p ('password', 'kerberos_v5', 'kerberos_v4', 'gssapi', 'cram-md5', 'otp', 'ntlm', 'ssh') {
        printf "<option value=%s %s>%s</option>\n",
                $p, lc($poll->{'auth'}) eq $p ? 'selected' : '', uc($p);
        $found++ if (lc($poll->{'auth'}) eq $p);
        }
printf "<option value=%s selected>%s</option>\n", $poll->{'auth'}, uc($poll->{'auth'})
        if (!$found && $poll->{'auth'});
print "</select></td> </tr>\n";

@interface = split(/\//, $poll->{'interface'});
print "<tr> <td valign=top><b>$text{'poll_interface'}</b></td><td colspan=3>\n";
printf "<input type=radio name=interface_def value=1 %s> %s<br>\n",
	@interface ? '' : 'checked', $text{'poll_interface_def'};
printf "<input type=radio name=interface_def value=0 %s> %s\n",
	@interface ? 'checked' : '', $text{'poll_interface_ifc'};
print "<input name=interface size=8 value='$interface[0]'> ",
      "$text{'poll_interface_ip'}\n";
print "<input name=interface_net size=15 value='$interface[1]'> /\n";
print "<input name=interface_mask size=15 value='$interface[2]'></td> </tr>\n";

print "</table></td></tr></table>\n";

# Show user options
@users = @{$poll->{'users'}};
push(@users, undef) if ($in{'new'} || $in{'adduser'});
$i = 0;
foreach $u (@users) {
	print "<br><table border width=100%>\n";
	print "<tr $tb> <td><b>$text{'poll_uheader'}</b></td> </tr>\n";
	print "<tr $cb> <td><table width=100%>\n";

	print "<tr> <td><b>$text{'poll_user'}</b></td>\n";
	printf "<td><input name=user_$i size=15 value='%s'></td>\n",
		$u->{'user'};

	print "<td><b>$text{'poll_pass'}</b></td>\n";
	print "<td>",&ui_password("pass_$i", $u->{'pass'}, 15),"</td> </tr>\n";

	print "<tr> <td><b>$text{'poll_is'}</b></td> <td colspan=3>\n";
	printf "<input name=is_$i size=60 value='%s'></td> </tr>\n",
		join(" ", @{$u->{'is'}}) || $remote_user;

	print "<tr> <td><b>$text{'poll_keep'}</b></td> <td colspan=3>\n";
	printf "<input type=radio name=keep_$i value=1 %s> %s\n",
		$u->{'keep'} eq '1' ? 'checked' : '', $text{'yes'};
	printf "<input type=radio name=keep_$i value=0 %s> %s\n",
		$u->{'keep'} eq '0' ? 'checked' : '', $text{'no'};
	printf "<input type=radio name=keep_$i value='' %s> %s (%s)\n",
		$u->{'keep'} eq '' ? 'checked' : '', $text{'default'},
		$text{'poll_usually'};
	print "</td> </tr>\n";

	print "<td><b>$text{'poll_fetchall'}</b></td> <td colspan=3>\n";
	printf "<input type=radio name=fetchall_$i value=1 %s> %s\n",
		$u->{'fetchall'} eq '1' ? 'checked' : '', $text{'yes'};
	printf "<input type=radio name=fetchall_$i value=0 %s> %s\n",
		$u->{'fetchall'} eq '0' ? 'checked' : '', $text{'no'};
	printf "<input type=radio name=fetchall_$i value='' %s> %s (%s)\n",
		$u->{'fetchall'} eq '' ? 'checked' : '', $text{'default'},
		$text{'poll_usually'};
	print "</td> </tr>\n";

	print "<td><b>$text{'poll_ssl'}</b></td> <td colspan=3>\n";
	printf "<input type=radio name=ssl_$i value=1 %s> %s\n",
		$u->{'ssl'} eq '1' ? 'checked' : '', $text{'yes'};
	printf "<input type=radio name=ssl_$i value=0 %s> %s\n",
		$u->{'ssl'} eq '0' ? 'checked' : '', $text{'no'};
	printf "<input type=radio name=ssl_$i value='' %s> %s (%s)\n",
		$u->{'ssl'} eq '' ? 'checked' : '', $text{'default'},
		$text{'poll_usually'};
	print "</td> </tr>\n";

	print "<tr> <td><b>$text{'poll_preconnect'}</b></td>\n";
	$u->{'preconnect'} =~ s/'/&#39;/g;
	printf "<td colspan=3><input name=preconnect_$i size=50 value='%s'></td> </tr>\n", $u->{'preconnect'};

	print "<tr> <td><b>$text{'poll_postconnect'}</b></td>\n";
	$u->{'postconnect'} =~ s/'/&#39;/g;
	printf "<td colspan=3><input name=postconnect_$i size=50 value='%s'></td></tr>\n", $u->{'postconnect'};

	print "</table></td></tr></table>\n";
	$i++;
	}

print "<table width=100%><tr>\n";
if ($in{'new'}) {
	print "<td><input type=submit value='$text{'create'}'></td>\n";
	}
else {
	print "<td><input type=submit value='$text{'save'}'></td>\n";
	if (!$in{'adduser'}) {
		print "<td align=middle><input type=submit name=adduser ",
		      "value='$text{'poll_adduser'}'></td>\n";
		}
	print "<td align=middle><input type=submit name=check ",
	      "value='$text{'poll_check'}'></td>\n";
	print "<td align=right><input type=submit name=delete ",
	      "value='$text{'delete'}'></td>\n";
	}
print "</tr></table>\n";

if (!$fetchmail_config && $config{'view_mode'}) {
	&ui_print_footer("edit_user.cgi?user=$in{'user'}", $text{'user_return'},
			 "", $text{'index_return'});
	}
else {
	&ui_print_footer("", $text{'index_return'});
	}


Filemanager

Name Type Size Permission Actions
images Folder 0755
lang Folder 0755
CHANGELOG File 468 B 0644
acl_security.pl File 1.63 KB 0755
backup_config.pl File 838 B 0755
cgi_args.pl File 696 B 0755
check.cgi File 1.54 KB 0755
check.pl File 2.47 KB 0755
config File 113 B 0644
config-cobalt-linux File 113 B 0644
config-coherent-linux File 113 B 0644
config-corel-linux File 113 B 0644
config-debian-linux File 113 B 0644
config-gentoo-linux File 113 B 0644
config-mandrake-linux File 113 B 0644
config-msc-linux File 113 B 0644
config-open-linux File 113 B 0644
config-openSUSE-Linux-15.0-ALL File 113 B 0644
config-openmamba-linux File 113 B 0644
config-redhat-linux File 113 B 0644
config-slackware-linux File 113 B 0644
config-sol-linux File 113 B 0644
config-suse-linux File 113 B 0644
config-syno-linux File 137 B 0644
config-trustix-linux File 113 B 0644
config-turbo-linux File 113 B 0644
config-united-linux File 113 B 0644
config.info File 603 B 0644
config.info.bg File 1.14 KB 0644
config.info.ca File 705 B 0644
config.info.cs File 386 B 0644
config.info.de File 726 B 0644
config.info.es File 277 B 0644
config.info.it File 746 B 0644
config.info.nl File 707 B 0644
config.info.no File 647 B 0644
config.info.pl File 777 B 0644
config.info.ru File 544 B 0644
config.info.uk File 551 B 0644
config.info.zh_TW File 265 B 0644
defaultacl File 41 B 0644
edit_cron.cgi File 1.95 KB 0755
edit_global.cgi File 2.72 KB 0755
edit_poll.cgi File 7.16 KB 0755
edit_user.cgi File 549 B 0755
feedback_files.pl File 266 B 0755
fetchmail-lib.pl File 8.02 KB 0755
index.cgi File 4.63 KB 0755
install_check.pl File 355 B 0755
log_parser.pl File 1.35 KB 0755
module.info File 213 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 154 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 198 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 241 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 254 B 0644
module.info.ca File 153 B 0644
module.info.ca.auto File 18 B 0644
module.info.cs File 44 B 0644
module.info.cs.auto File 132 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 154 B 0644
module.info.de File 152 B 0644
module.info.de.auto File 23 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 274 B 0644
module.info.es File 39 B 0644
module.info.es.auto File 133 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 167 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 222 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 160 B 0644
module.info.fr File 0 B 0644
module.info.fr.auto File 181 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 214 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 177 B 0644
module.info.hu File 133 B 0644
module.info.hu.auto File 18 B 0644
module.info.it File 39 B 0644
module.info.it.auto File 128 B 0644
module.info.ja File 34 B 0644
module.info.ja.auto File 157 B 0644
module.info.ko File 33 B 0644
module.info.ko.auto File 163 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 189 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 161 B 0644
module.info.ms File 138 B 0644
module.info.ms.auto File 18 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 166 B 0644
module.info.nl File 34 B 0644
module.info.nl.auto File 136 B 0644
module.info.no File 32 B 0644
module.info.no.auto File 126 B 0644
module.info.pl File 151 B 0644
module.info.pl.auto File 18 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 175 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 184 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 162 B 0644
module.info.ru File 44 B 0644
module.info.ru.auto File 201 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 168 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 169 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 172 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 306 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 166 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 254 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 226 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 139 B 0644
module.info.zh_TW File 33 B 0644
module.info.zh_TW.auto File 115 B 0644
prefs.info File 41 B 0644
save_cron.cgi File 1.73 KB 0755
save_global.cgi File 1.53 KB 0755
save_poll.cgi File 3.33 KB 0755
start.cgi File 1015 B 0755
stop.cgi File 730 B 0755