[ Avaa Bypassed ]




Upload:

Command:

www-data@3.145.17.123: ~ $
#!/usr/bin/perl
# upload.cgi
# Convert a WAV file to rmd format

require './vgetty-lib.pl';
&ReadParseMime();
&error_setup($text{'upload_err'});
$in{'wav'} || &error($text{'upload_emessage'});

$temp1 = &transname();
open(TEMP, ">$temp1");
print TEMP $in{'wav'};
close(TEMP);
if (&rmd_file_info($temp1)) {
	# Already in RMD format .. just use
	$rmdfile = $temp1;
	}
else {
	# Convert to PVF format
	$temp2 = &transname();
	$out = &backquote_logged("wavtopvf $temp1 $temp2 2>&1");
	$ec = $?;
	unlink($temp1);
	if ($ec) {
		unlink($temp2);
		&error(&text('upload_ewav', "<pre>$out</pre>"));
		}

	# Convert to RMD format
	@formats = &list_rmd_formats();
	$format = $formats[$in{'format'}];
	$rmdfile = &transname();
	$out = &backquote_logged("pvftormd $format->{'code'} $format->{'bits'} $temp2 $rmdfile 2>&1");
	$ec = $?;
	unlink($temp2);
	if ($ec) {
		unlink($rmdfile);
		&error(&text('upload_epvf', "<pre>$out</pre>"));
		}
	}

# Add to the index
@conf = &get_config();
$dir = &messages_dir(\@conf);
$in{'wav_filename'} =~ s/^.*[\/\\]//;
$in{'wav_filename'} =~ s/\.wav$//i;
if (-r "$dir/$in{'wav_filename'}.rmd") {
	&error(&text('upload_esame', "$in{'wav_filename'}.rmd"));
	}
$index = &messages_index(\@conf);
open(INDEX, "<$index");
@index = map { chomp; $_ } <INDEX>;
close(INDEX);
if (!@index) {
	$bak = &find_value("backup_message", \@conf);
	push(@index, $bak) if (-r "$dir/$bak");
	}
push(@index, "$in{'wav_filename'}.rmd");
system("mv $rmdfile $dir/$in{'wav_filename'}.rmd");
&open_lock_tempfile(INDEX, ">$index");
&print_tempfile(INDEX, map { "$_\n" } @index);
&close_tempfile(INDEX);
&webmin_log("upload", undef, undef,
	    { 'file' => "$in{'wav_filename'}.rmd" });

# Save the format type
$config{'format'} = $in{'format'};
&write_file("$module_config_directory/config", \%config);
&redirect("list_messages.cgi");


Filemanager

Name Type Size Permission Actions
images Folder 0755
lang Folder 0755
backup_config.pl File 923 B 0755
config File 63 B 0644
config.info File 109 B 0644
config.info.ca File 131 B 0644
config.info.cs File 124 B 0644
config.info.de File 119 B 0644
config.info.es File 131 B 0644
config.info.hu File 127 B 0644
config.info.ms File 111 B 0644
config.info.nl File 113 B 0644
config.info.no File 108 B 0644
config.info.pl File 133 B 0644
config.info.ru File 169 B 0644
config.info.uk File 172 B 0644
delete.cgi File 1.32 KB 0755
edit_options.cgi File 4.86 KB 0755
edit_vgetty.cgi File 2.78 KB 0755
email.pl File 1018 B 0755
index.cgi File 1.41 KB 0755
install_check.pl File 387 B 0755
list_messages.cgi File 2.49 KB 0755
list_received.cgi File 1.87 KB 0755
list_vgetty.cgi File 1.18 KB 0755
listen.cgi File 511 B 0755
log_parser.pl File 749 B 0755
module.info File 172 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 113 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 187 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 192 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 199 B 0644
module.info.ca File 116 B 0644
module.info.ca.auto File 15 B 0644
module.info.cs File 25 B 0644
module.info.cs.auto File 82 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 112 B 0644
module.info.de File 91 B 0644
module.info.de.auto File 15 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 225 B 0644
module.info.es File 41 B 0644
module.info.es.auto File 95 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 122 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 182 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 117 B 0644
module.info.fr File 0 B 0644
module.info.fr.auto File 127 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 133 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 116 B 0644
module.info.hu File 28 B 0644
module.info.hu.auto File 100 B 0644
module.info.it File 0 B 0644
module.info.it.auto File 118 B 0644
module.info.ja File 0 B 0644
module.info.ja.auto File 145 B 0644
module.info.ko File 0 B 0644
module.info.ko.auto File 119 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 122 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 125 B 0644
module.info.ms File 120 B 0644
module.info.ms.auto File 15 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 115 B 0644
module.info.nl File 25 B 0644
module.info.nl.auto File 78 B 0644
module.info.no File 25 B 0644
module.info.no.auto File 86 B 0644
module.info.pl File 32 B 0644
module.info.pl.auto File 95 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 131 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 140 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 124 B 0644
module.info.ru File 51 B 0644
module.info.ru.auto File 142 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 108 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 100 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 112 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 260 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 116 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 185 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 211 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 140 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 97 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 106 B 0644
save_options.cgi File 3.9 KB 0755
save_vgetty.cgi File 3.09 KB 0755
upload.cgi File 1.79 KB 0755
vgetty-lib.pl File 4.31 KB 0755
vgetty_apply.cgi File 228 B 0755