Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


Show other level

namespace Pterodactyl\Http\Controllers\Admin\Arix;
 use Illuminate\View\View;
 use Illuminate\Support\Facades\Http as AASupport;
 use Prologue\Alerts\AlertsMessageBag;
 use Illuminate\View\Factory as ViewFactory;
 use Pterodactyl\Http\Controllers\Controller;
 use Pterodactyl\Http\Requests\Admin\Arix\ArixAdvancedRequest;
 use Pterodactyl\Http\Requests\Admin\Arix\ArixPresetRequest;
 use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface;
 use Pterodactyl\Models\Setting;
	 class ArixAdvancedController extends Controller {
		 public function __construct(private AlertsMessageBag $alert, private SettingsRepositoryInterface $settings, private ViewFactory $view) {
		 
	}
		 public function index() : View {
			 $arixSettings = Setting::query()->where("key", "like", "settings::arix:%")->get()->mapWithKeys(function (Setting $setting) {
			 $shortKey = preg_replace("/^settings::arix:/", '', $setting->key);
			 return [$shortKey => $setting->value];
			 
		}
		)->toArray();
		 return $this->view->make("admin.arix.advanced", ["profileType" => $this->settings->get("settings::arix:profileType", "gravatar"), "modeToggler" => $this->settings->get("settings::arix:modeToggler", true), "langSwitch" => $this->settings->get("settings::arix:langSwitch", true), "ipFlag" => $this->settings->get("settings::arix:ipFlag", true), "lowResourcesAlert" => $this->settings->get("settings::arix:lowResourcesAlert", false), "consolePage" => $this->settings->get("settings::arix:consolePage", true), "registration" => $this->settings->get("settings::arix:registration", false), "defaultMode" => $this->settings->get("settings::arix:defaultMode", "darkmode"), "copyright" => $this->settings->get("settings::arix:copyright", "Designed by Weijers.one"), "arixSettings" => $arixSettings]);
		 
	}
		 public function preset(ArixPresetRequest $request) {
		 goto O554616579;
		 O009849486: return response()->json(["success" => true, "applied" => $validated]);
		 goto O837921766;
		 O909385480: $this->alert->success("Preset imported and applied successfully.")->flash();
		 goto O529163537;
		 O256100524: O673482251: goto O909385480;
			 O877386202: foreach ($validated as $key => $value) {
				 $this->settings->set("settings::arix:{
				$key
			}
			", $value);
			 O418875594: 
		}
		 goto O256100524;
		 O837921766: O689424085: goto O930336982;
		 O378961182: $response = AASupport::asForm()->post($endpoint, ["license" => config("arixTheme.license")]);
		 goto O451710479;
		 O930336982: return redirect()->route("admin.arix.advanced");
		 goto O067494830;
		 O451710479: $responseData = $response->json();
		 goto O642815799;
		 O284693258: throw new \Exception("License validation failed.");
		 goto O505270167;
			 O529163537: if (!$request->wantsJson()) {
			 goto O689424085;
			 
		}
		 goto O009849486;
		 O135679491: $respond = "success";
		 goto O378961182;
		 O571381643: $validated = $request->validated();
		 goto O653491835;
		 O554616579: $endpoint = "https://arix.gg/license/arix-theme";
		 goto O135679491;
		 O237061844: $this->alert->warning("Something went wrong.")->flash();
		 goto O284693258;
		 O505270167: O916411785: goto O571381643;
			 O642815799: if ($responseData[$respond] ?? false) {
			 goto O916411785;
			 
		}
		 goto O237061844;
		 O653491835: unset($validated["preset_json"]);
		 goto O877386202;
		 O067494830: 
	}
		 public function store(ArixAdvancedRequest $request) {
		 goto O815909013;
		 O509394028: goto O171275304;
		 goto O941985015;
		 O607145224: $respond = "success";
		 goto O004984659;
		 O004984659: $response = AASupport::asForm()->post($endpoint, ["license" => config("arixTheme.license")]);
		 goto O457367114;
		 O768945181: $this->alert->warning("Something went wrong.")->flash();
		 goto O180644241;
		 O307305679: O470727023: goto O125285836;
		 O457367114: $responseData = $response->json();
		 goto O655058508;
		 O941985015: O135054930: goto O768945181;
		 O125285836: $this->alert->success("Theme settings have been updated successfully.")->flash();
		 goto O509394028;
		 O473821708: return redirect()->route("admin.arix.advanced");
		 goto O621432926;
		 O180644241: throw new \Exception("Something went wrong");
		 goto O745561104;
		 O745561104: O171275304: goto O473821708;
		 O815909013: $endpoint = "https://arix.gg/license/arix-theme";
		 goto O607145224;
			 O655058508: if (!$responseData[$respond]) {
			 goto O135054930;
			 
		}
		 goto O215558551;
			 O215558551: foreach ($request->normalize() as $key => $value) {
			 $this->settings->set("settings::" . $key, $value);
			 O065312758: 
		}
		 goto O307305679;
		 O621432926: 
	}
	 
}

namespace Pterodactyl\Http\Controllers\Admin\Arix;
 use Illuminate\View\View;
 use Illuminate\Support\Facades\Http as AASupport;
 use Prologue\Alerts\AlertsMessageBag;
 use Illuminate\View\Factory as ViewFactory;
 use Pterodactyl\Http\Controllers\Controller;
 use Pterodactyl\Http\Requests\Admin\Arix\ArixAdvancedRequest;
 use Pterodactyl\Http\Requests\Admin\Arix\ArixPresetRequest;
 use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface;
 use Pterodactyl\Models\Setting;
	 class ArixAdvancedController extends Controller {
		 public function __construct(private AlertsMessageBag $alert, private SettingsRepositoryInterface $settings, private ViewFactory $view) {
		 
	}
		 public function index() : View {
			 $arixSettings = Setting::query()->where("key", "like", "settings::arix:%")->get()->mapWithKeys(function (Setting $setting) {
			 $shortKey = preg_replace("/^settings::arix:/", '', $setting->key);
			 return [$shortKey => $setting->value];
			 
		}
		)->toArray();
		 return $this->view->make("admin.arix.advanced", ["profileType" => $this->settings->get("settings::arix:profileType", "gravatar"), "modeToggler" => $this->settings->get("settings::arix:modeToggler", true), "langSwitch" => $this->settings->get("settings::arix:langSwitch", true), "ipFlag" => $this->settings->get("settings::arix:ipFlag", true), "lowResourcesAlert" => $this->settings->get("settings::arix:lowResourcesAlert", false), "consolePage" => $this->settings->get("settings::arix:consolePage", true), "registration" => $this->settings->get("settings::arix:registration", false), "defaultMode" => $this->settings->get("settings::arix:defaultMode", "darkmode"), "copyright" => $this->settings->get("settings::arix:copyright", "Designed by Weijers.one"), "arixSettings" => $arixSettings]);
		 
	}
		 public function preset(ArixPresetRequest $request) {
		 goto O554616579;
		 O009849486: return response()->json(["success" => true, "applied" => $validated]);
		 goto O837921766;
		 O909385480: $this->alert->success("Preset imported and applied successfully.")->flash();
		 goto O529163537;
		 O256100524: O673482251: goto O909385480;
			 O877386202: foreach ($validated as $key => $value) {
				 $this->settings->set("settings::arix:{
				$key
			}
			", $value);
			 O418875594: 
		}
		 goto O256100524;
		 O837921766: O689424085: goto O930336982;
		 O378961182: $response = AASupport::asForm()->post($endpoint, ["license" => config("arixTheme.license")]);
		 goto O451710479;
		 O930336982: return redirect()->route("admin.arix.advanced");
		 goto O067494830;
		 O451710479: $responseData = $response->json();
		 goto O642815799;
		 O284693258: throw new \Exception("License validation failed.");
		 goto O505270167;
			 O529163537: if (!$request->wantsJson()) {
			 goto O689424085;
			 
		}
		 goto O009849486;
		 O135679491:  goto O378961182;
		 O571381643: $validated = $request->validated();
		 goto O653491835;
		 O554616579: $endpoint = "https://arix.gg/license/arix-theme";
		 goto O135679491;
		 O237061844: $this->alert->warning("Something went wrong.")->flash();
		 goto O284693258;
		 O505270167: O916411785: goto O571381643;
			 O642815799: if ($responseData["success"] ?? false) {
			 goto O916411785;
			 
		}
		 goto O237061844;
		 O653491835: unset($validated["preset_json"]);
		 goto O877386202;
		 O067494830: 
	}
		 public function store(ArixAdvancedRequest $request) {
		 goto O815909013;
		 O509394028: goto O171275304;
		 goto O941985015;
		 O607145224:  goto O004984659;
		 O004984659: $response = AASupport::asForm()->post($endpoint, ["license" => config("arixTheme.license")]);
		 goto O457367114;
		 O768945181: $this->alert->warning("Something went wrong.")->flash();
		 goto O180644241;
		 O307305679: O470727023: goto O125285836;
		 O457367114: $responseData = $response->json();
		 goto O655058508;
		 O941985015: O135054930: goto O768945181;
		 O125285836: $this->alert->success("Theme settings have been updated successfully.")->flash();
		 goto O509394028;
		 O473821708: return redirect()->route("admin.arix.advanced");
		 goto O621432926;
		 O180644241: throw new \Exception("Something went wrong");
		 goto O745561104;
		 O745561104: O171275304: goto O473821708;
		 O815909013: $endpoint = "https://arix.gg/license/arix-theme";
		 goto O607145224;
			 O655058508: if (!$responseData["success"]) {
			 goto O135054930;
			 
		}
		 goto O215558551;
			 O215558551: foreach ($request->normalize() as $key => $value) {
			 $this->settings->set("settings::" . $key, $value);
			 O065312758: 
		}
		 goto O307305679;
		 O621432926: 
	}
	 
}



© 2023 Quttera Ltd. All rights reserved.