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
/
libs
/
CXS
/
Edit File:
CommonComponent.php
<?php /** * CommonComponent, Common Component * * @copyright Copyright (c) 2007 DotRoll Kft. (http://www.dotroll.com) * @author Zoltán Istvanovszki <zoltan.istvanovszki@dotroll.com> * @since 2017.06.15. * @package CXS_2.0 */ namespace CXS; use Phalcon\Di\Injectable; abstract class CommonComponent extends Injectable { /** * Panel type * * @var string */ protected $panelType; /** * Hostname * * @var string */ protected $hostname; /** * Log a message and append to a requeue job * * @param string $msg Message */ protected function push(string $msg, bool $print = false) { $this->append($msg); $this->log($msg); if ($print === true) { \ZebraZ::l($msg); } } /** * Append a message to requeue job * * @param string $msg Message */ protected function append(string $msg) { $this->dispatcher->setParam('jobResponse', $this->dispatcher->getParam('jobResponse') . $msg . \PHP_EOL); } /** * Put message to log * * @param string $msg Message */ protected function log(string $msg) { $this->di->get('logger')->info($msg); } /** * Get hostname * * @return string */ protected function getHostname(): string { if (!empty($this->hostname)) { return $this->hostname; } return $this->hostname = \gethostname(); } /** * Get technical panel type * * @return string */ protected function getType(): string { if (!empty($this->panelType)) { return $this->panelType; } return $this->panelType = \strpos($this->getHostname(), '.dadmin.hu') !== false ? 'DirectAdmin' : 'cPanel'; } /** * Check hash * * @param string $hash Username * @return mixed */ protected function checkHash(string $hash) { if (empty($hash)) { $this->push("Parameter HASH missing!"); return false; } $posix = \posix_getpwnam($hash); if (empty($posix['uid'])) { $this->push("$hash user no exist this server"); return false; } return $posix['uid']; } }
Simpan