[ Avaa Bypassed ]




Upload:

Command:

www-data@3.137.198.25: ~ $
#!/usr/bin/perl
# save_file.cgi
# Save, create or delete a file editor

require './custom-lib.pl';
&ReadParse();

$access{'edit'} || &error($text{'file_ecannot'});
if ($in{'delete'}) {
	$edit = &get_command($in{'id'}, $in{'idx'});
	&delete_command($edit);
	&webmin_log("delete", "edit", $edit->{'id'}, $edit);
	&redirect("");
	}
elsif ($in{'clone'}) {
	&redirect("edit_file.cgi?id=$in{'id'}&idx=$in{'idx'}&clone=1&new=1");
	}
else {
	&error_setup($text{'file_err'});
	if (!$in{'new'}) {
		$edit = &get_command($in{'id'}, $in{'idx'});
		}
	else {
		$edit = { 'id' => time() };
		}

	# parse and validate inputs
	$in{'edit'} =~ /\S/ || &error($text{'file_eedit'});
	$edit->{'edit'} = $in{'edit'};
	$in{'desc'} =~ /\S/ || &error($text{'file_edesc'});
	$edit->{'desc'} = $in{'desc'};
	$in{'html'} =~ s/\r//g;
	$in{'html'} =~ s/\n*/\n/;
	$cmd->{'html'} = $in{'html'};
	if ($in{'owner_def'}) {
		$edit->{'user'} = $edit->{'group'} = undef;
		}
	else {
		(@u = getpwnam($in{'user'})) || &error($text{'file_euser'});
		(@g = getgrnam($in{'group'})) || &error($text{'file_egroup'});
		$edit->{'user'} = $in{'user'};
		$edit->{'group'} = $in{'group'};
		}
	if ($in{'perms_def'}) {
		$edit->{'perms'} = undef;
		}
	else {
		$in{'perms'} =~ /^[0-7]{3}$/ || &error($text{'file_eperms'});
		$edit->{'perms'} = $in{'perms'};
		}
	$edit->{'beforeedit'} = $in{'beforeedit'};
	$edit->{'before'} = $in{'before'};
	$edit->{'after'} = $in{'after'};
	$edit->{'order'} = $in{'order_def'} ? 0 : int($in{'order'});
	$edit->{'usermin'} = $in{'usermin'};
	$edit->{'envs'} = $in{'envs'};
	&parse_params_inputs($edit);
	&save_command($edit);
	&webmin_log($in{'new'} ? "create" : "modify", "edit",
		    $cmd->{'id'}, $cmd);

	if ($in{'new'} && $access{'cmds'} ne '*') {
		$access{'cmds'} .= " ".$edit->{'id'};
		&save_module_acl(\%access);
		}
	&redirect("");
	}


Filemanager

Name Type Size Permission Actions
help Folder 0755
images Folder 0755
lang Folder 0755
CHANGELOG File 2.9 KB 0644
acl_security.pl File 1.03 KB 0755
backup_config.pl File 683 B 0755
cgi_args.pl File 1.14 KB 0755
config File 42 B 0644
config-ALL-linux File 42 B 0644
config.info File 490 B 0644
config.info.ca File 500 B 0644
config.info.cs File 326 B 0644
config.info.de File 575 B 0644
config.info.es File 338 B 0644
config.info.fr File 669 B 0644
config.info.hr File 0 B 0644
config.info.it File 448 B 0644
config.info.ko File 266 B 0644
config.info.ms File 534 B 0644
config.info.nl File 580 B 0644
config.info.no File 548 B 0644
config.info.pl File 612 B 0644
config.info.ru File 158 B 0644
config.info.sk File 0 B 0644
config.info.tr File 269 B 0644
config.info.uk File 165 B 0644
custom-lib.pl File 16.71 KB 0755
defaultacl File 25 B 0644
edit_cmd.cgi File 3.69 KB 0755
edit_file.cgi File 2.67 KB 0755
edit_sql.cgi File 2.64 KB 0755
feedback_files.pl File 208 B 0755
form.cgi File 1.29 KB 0755
index.cgi File 4.14 KB 0755
log_parser.pl File 553 B 0755
module.info File 165 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 145 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 200 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 277 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 297 B 0644
module.info.ca File 130 B 0644
module.info.ca.auto File 22 B 0644
module.info.cs File 33 B 0644
module.info.cs.auto File 145 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 158 B 0644
module.info.de File 149 B 0644
module.info.de.auto File 26 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 299 B 0644
module.info.es File 32 B 0644
module.info.es.auto File 116 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 147 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 223 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 170 B 0644
module.info.fr File 34 B 0644
module.info.fr.auto File 142 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 196 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 169 B 0644
module.info.hu File 26 B 0644
module.info.hu.auto File 151 B 0644
module.info.it File 31 B 0644
module.info.it.auto File 112 B 0644
module.info.ja File 34 B 0644
module.info.ja.auto File 163 B 0644
module.info.ko File 32 B 0644
module.info.ko.auto File 154 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 164 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 153 B 0644
module.info.ms File 136 B 0644
module.info.ms.auto File 15 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 148 B 0644
module.info.nl File 25 B 0644
module.info.nl.auto File 123 B 0644
module.info.no File 33 B 0644
module.info.no.auto File 120 B 0644
module.info.pl File 139 B 0644
module.info.pl.auto File 16 B 0644
module.info.pt File 32 B 0644
module.info.pt.auto File 129 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 170 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 168 B 0644
module.info.ru File 48 B 0644
module.info.ru.auto File 253 B 0644
module.info.sk File 33 B 0644
module.info.sk.auto File 136 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 146 B 0644
module.info.sv File 23 B 0644
module.info.sv.auto File 119 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 295 B 0644
module.info.tr File 23 B 0644
module.info.tr.auto File 140 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 285 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 271 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 195 B 0644
module.info.zh File 30 B 0644
module.info.zh.auto File 91 B 0644
module.info.zh_TW File 27 B 0644
module.info.zh_TW.auto File 97 B 0644
prefs.info File 26 B 0644
run.cgi File 3.89 KB 0755
save.cgi File 1.5 KB 0755
save_cmd.cgi File 2.44 KB 0755
save_file.cgi File 1.79 KB 0755
save_sql.cgi File 1.53 KB 0755
sql.cgi File 1.5 KB 0755
sqlform.cgi File 962 B 0755
view.cgi File 1.43 KB 0755