Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

public function toggleConfig(Request $request, $option) { if (!(config("\x61..

Decoded Output download

<?  public function toggleConfig(Request $request, $option) 
    { 
        if (!(config("app.demo") == true && config("app.debug") !== true)) { 
            goto ukcZw; 
        } 
        return response("error", 444); 
        ukcZw: 
        if (!DB::table("options")->where("option_name", $option)->update(["option_value" => DB::raw("NOT option_value")])) { 
            goto yoftJ; 
        } 
        Artisan::call("cache:clear"); 
        return response("success", 200); 
        yoftJ: 
        return response("error", 405); 
    } ?>

Did this file decode correctly?

Original Code

public function toggleConfig(Request $request, $option)
    {
        if (!(config("\x61\x70\x70\56\x64\145\x6d\157") == true && config("\141\x70\x70\56\x64\x65\142\165\147") !== true)) {
            goto ukcZw;
        }
        return response("\145\162\162\x6f\162", 444);
        ukcZw:
        if (!DB::table("\157\x70\164\x69\x6f\156\x73")->where("\157\x70\164\151\157\156\x5f\156\x61\x6d\x65", $option)->update(["\157\x70\x74\x69\x6f\156\137\x76\x61\x6c\165\x65" => DB::raw("\x4e\117\x54\x20\157\x70\164\x69\x6f\x6e\137\x76\141\154\165\145")])) {
            goto yoftJ;
        }
        Artisan::call("\143\141\x63\150\x65\x3a\143\x6c\x65\141\162");
        return response("\163\165\x63\143\145\163\163", 200);
        yoftJ:
        return response("\145\162\162\157\x72", 405);
    }

Function Calls

None

Variables

None

Stats

MD5 25f7a429a19c603d2f0c136dd88c4211
Eval Count 0
Decode Time 44 ms