Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php use Symfony\Component\Console\Command\SignalableCommandInterface; use Symfony\Compo..
Decoded Output download
<?php
use Symfony\Component\Console\Command\SignalableCommandInterface;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ChoiceQuestion;
use Symfony\Component\Console\SingleCommandApplication;
$vendor = __DIR__;
while (!file_exists($vendor.'/vendor')) {
$vendor = \dirname($vendor);
}
require $vendor.'/vendor/autoload.php';
(new class() extends SingleCommandApplication implements SignalableCommandInterface {
public function getSubscribedSignals(): array
{
return [SIGINT];
}
public function handleSignal(int $signal, int|false $previousExitCode = 0): int|false
{
exit(0);
}
})
->setCode(function(InputInterface $input, OutputInterface $output) {
$this->getHelper('question')
->ask($input, $output, new ChoiceQuestion('', ['y']));
return 0;
})
->run()
;
?>
Did this file decode correctly?
Original Code
<?php
use Symfony\Component\Console\Command\SignalableCommandInterface;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ChoiceQuestion;
use Symfony\Component\Console\SingleCommandApplication;
$vendor = __DIR__;
while (!file_exists($vendor.'/vendor')) {
$vendor = \dirname($vendor);
}
require $vendor.'/vendor/autoload.php';
(new class() extends SingleCommandApplication implements SignalableCommandInterface {
public function getSubscribedSignals(): array
{
return [SIGINT];
}
public function handleSignal(int $signal, int|false $previousExitCode = 0): int|false
{
exit(0);
}
})
->setCode(function(InputInterface $input, OutputInterface $output) {
$this->getHelper('question')
->ask($input, $output, new ChoiceQuestion('', ['y']));
return 0;
})
->run()
;
Function Calls
None |
Stats
MD5 | dd2f70ca0678b370ac67d9f7c778e42a |
Eval Count | 0 |
Decode Time | 96 ms |