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


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\ArixColorsRequest;
 use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface;
	 class ArixColorsController extends Controller {
		 public function __construct(private AlertsMessageBag $alert, private SettingsRepositoryInterface $settings, private ViewFactory $view) {
		 
	}
		 public function index() : View {
		 return $this->view->make("admin.arix.colors", ["primary" => $this->settings->get("settings::arix:primary", "ACF"), "successText" => $this->settings->get("settings::arix:successText", "#E1FFD8"), "successBorder" => $this->settings->get("settings::arix:successBorder", "#AA2B"), "successBackground" => $this->settings->get("settings::arix:successBackground", "#3D8F1F"), "dangerText" => $this->settings->get("settings::arix:dangerText", "#FFD8D8"), "dangerBorder" => $this->settings->get("settings::arix:dangerBorder", "#AA2A2A"), "dangerBackground" => $this->settings->get("settings::arix:dangerBackground", "#8F1F20"), "secondaryText" => $this->settings->get("settings::arix:secondaryText", "#B2B2C1"), "secondaryBorder" => $this->settings->get("settings::arix:secondaryBorder", "#5B"), "secondaryBackground" => $this->settings->get("settings::arix:secondaryBackground", "#2B2B40"), "gray" => $this->settings->get("settings::arix:gray50", "#F4F4F4"), "gray0" => $this->settings->get("settings::arix:gray0", "#D5D5DB"), "gray200" => $this->settings->get("settings::arix:gray200", "#B2B2C1"), "gray300" => $this->settings->get("settings::arix:gray0", "#8282A4"), "gray0" => $this->settings->get("settings::arix:gray400", "#5E5E7F"), "gray500" => $this->settings->get("settings::arix:gray500", "#424B"), "gray0" => $this->settings->get("settings::arix:gray0", "#2B2B40"), "gray7" => $this->settings->get("settings::arix:gray0", "#1D1D37"), "gray8" => $this->settings->get("settings::arix:gray800", "#0B0D2A"), "gray0" => $this->settings->get("settings::arix:gray900", "#0409"), "lightmode_primary" => $this->settings->get("settings::arix:lightmode_primary", "A35CF"), "lightmode_successText" => $this->settings->get("settings::arix:lightmode_successText", "#E1FFD8"), "lightmode_successBorder" => $this->settings->get("settings::arix:lightmode_successBorder", "6AA2B"), "lightmode_successBackground" => $this->settings->get("settings::arix:lightmode_successBackground", "#3D8F1F"), "lightmode_dangerText" => $this->settings->get("settings::arix:lightmode_dangerText", "#FFD8D8"), "lightmode_dangerBorder" => $this->settings->get("settings::arix:lightmode_dangerBorder", "#AA2A2A"), "lightmode_dangerBackground" => $this->settings->get("settings::arix:lightmode_dangerBackground", "#8F1F20"), "lightmode_secondaryText" => $this->settings->get("settings::arix:lightmode_secondaryText", "#464D"), "lightmode_secondaryBorder" => $this->settings->get("settings::arix:lightmode_secondaryBorder", "#C0C0D3"), "lightmode_secondaryBackground" => $this->settings->get("settings::arix:lightmode_secondaryBackground", "#A6A7BD"), "lightmode_gray50" => $this->settings->get("settings::arix:lightmode_gray50", "41415"), "lightmode_gray0" => $this->settings->get("settings::arix:lightmode_gray0", "#2C"), "lightmode_gray0" => $this->settings->get("settings::arix:lightmode_gray200", "#46464D"), "lightmode_gray300" => $this->settings->get("settings::arix:lightmode_gray3", "#62"), "lightmode_gray0" => $this->settings->get("settings::arix:lightmode_gray400", "#7689"), "lightmode_gray500" => $this->settings->get("settings::arix:lightmode_gray500", "#A6A7BD"), "lightmode_gray6" => $this->settings->get("settings::arix:lightmode_gray600", "#C0C0D3"), "lightmode_gray0" => $this->settings->get("settings::arix:lightmode_gray7", "#E7E7EF"), "lightmode_gray8" => $this->settings->get("settings::arix:lightmode_gray8", "#F0F1F5"), "lightmode_gray0" => $this->settings->get("settings::arix:lightmode_gray900", "#FFFFFF")]);
		 
	}
		 public function store(ArixColorsRequest $request) {
		 goto ep1aa;
		 ep1aa: $endpoint = "https://arix.gg/license/arix-theme";
		 goto O4FH6;
		 xhLMR: rFHIF: goto H7avc;
		 joG6Z: kyR_V: goto zUduU;
		 QaoHY: $responseData = $response->json();
		 goto CTWda;
			 FIHip: foreach ($request->normalize() as $key => $value) {
			 $this->settings->set("settings::" . $key, $value);
			 HSyCM: 
		}
		 goto kcP4n;
		 uW3aO: $this->alert->success("Theme settings have been updated successfully.")->flash();
		 goto vOBU2;
		 H7avc: $this->alert->warning("Something went wrong.")->flash();
		 goto nWi5E;
		 kcP4n: SjTF3: goto uW3aO;
			 CTWda: if (!$responseData[$respond]) {
			 goto rFHIF;
			 
		}
		 goto FIHip;
		 pvLP0: $response = AASupport::asForm()->post($endpoint, ["license" => config("arixTheme.license")]);
		 goto QaoHY;
		 zUduU: return redirect()->route("admin.arix.colors");
		 goto QRCii;
		 O4FH6: $respond = "success";
		 goto pvLP0;
		 nWi5E: throw new \Exception("Something went wrong");
		 goto joG6Z;
		 vOBU2: goto kyR_V;
		 goto xhLMR;
		 QRCii: 
	}
	 
}



© 2023 Quttera Ltd. All rights reserved.