Decoded Output
Download<?php
namespace App\Rules;
use App\Config\ps_config;
use Illuminate\Contracts\Validation\InvokableRule;
class DomainCheck implements InvokableRule
{
public function __invoke($attribute, $value, $fail)
{
goto VqiY2;
VqiY2:
$currentURI = $_SERVER["HTTP_REFERER"];
goto UVngX;
vnayt:
$fail(__("domain_checking"));
goto Ajcla;
Ajcla: Y1I8k:
goto hocuQ;
PPA12:
if (!($value !== $domain)) {
goto Y1I8k;
}
goto vnayt;
UVngX:
$findStringIndex = strpos($currentURI, "/install") ? strpos($currentURI, "/install") : strpos($currentURI, "/admin");
goto FD0Iq;
FD0Iq:
$domain = substr($currentURI, 0, $findStringIndex);
goto PPA12;
hocuQ:
}
} ?>
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
None
Variables
None
Stats
| MD5 | 3d741a1c12f2ed4c |
|---|---|
| Eval Count | 0 |
| Decode Time | 60 ms |
Original Code
<?php
namespace App\Rules;
use App\Config\ps_config;
use Illuminate\Contracts\Validation\InvokableRule;
class DomainCheck implements InvokableRule
{
public function __invoke($attribute, $value, $fail)
{
goto VqiY2;
VqiY2:
$currentURI = $_SERVER["\110\x54\124\120\137\122\105\106\105\122\x45\x52"];
goto UVngX;
vnayt:
$fail(__("\144\x6f\x6d\x61\151\x6e\x5f\143\x68\145\x63\x6b\151\x6e\x67"));
goto Ajcla;
Ajcla: Y1I8k:
goto hocuQ;
PPA12:
if (!($value !== $domain)) {
goto Y1I8k;
}
goto vnayt;
UVngX:
$findStringIndex = strpos($currentURI, "\x2f\151\156\x73\164\x61\154\154") ? strpos($currentURI, "\x2f\x69\x6e\163\x74\x61\154\x6c") : strpos($currentURI, "\x2f\141\x64\155\x69\x6e");
goto FD0Iq;
FD0Iq:
$domain = substr($currentURI, 0, $findStringIndex);
goto PPA12;
hocuQ:
}
}