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

Signing you up...

Thank you for signing up!

PHP Decode

namespace App\Helpers; class ShellCommandHelper { public static function execute($command,..

Decoded Output download

<?  namespace App\Helpers; class ShellCommandHelper { public static function execute($command, $isDebug = true) { try { goto dFIldTVp1rZUFBZc; w5D9ZXobGsZ2fUJG: ciylEZJRRMYAoDRf: goto aJLAnAp_JGSlrN6M; SkjjtqfiTwwVoAeI: if (!($output === null)) { goto ciylEZJRRMYAoDRf; } goto C6Gs7oqmXZDk38VY; C6Gs7oqmXZDk38VY: throw new \Exception('Failed to execute shell command: ' . $command . ' -> ' . $output, 500); goto w5D9ZXobGsZ2fUJG; OH4prO0PaXbmtnX0: O3vE1ofmaThe4oX_: goto i7n7IuCwCXlSmKOs; SSFnQ8gCyKRP_oNf: OW7YZrr9yhLibW4W: goto SkjjtqfiTwwVoAeI; k4tYWao7KDJ10NPc: if ($isDebug) { goto O3vE1ofmaThe4oX_; } goto fDWFUsZyCy_dKgK5; fDWFUsZyCy_dKgK5: $output = shell_exec($command); goto I4Hjv1TkR88b4VYT; aJLAnAp_JGSlrN6M: return $output; goto X1kLaONjEGcnzBxC; I4Hjv1TkR88b4VYT: goto OW7YZrr9yhLibW4W; goto OH4prO0PaXbmtnX0; i7n7IuCwCXlSmKOs: $output = shell_exec($command . " 2>&1"); goto SSFnQ8gCyKRP_oNf; dFIldTVp1rZUFBZc: $output = null; goto k4tYWao7KDJ10NPc; X1kLaONjEGcnzBxC: } catch (\Exception $e) { throw $e; } } } 
 ?>

Did this file decode correctly?

Original Code

namespace App\Helpers; class ShellCommandHelper { public static function execute($command, $isDebug = true) { try { goto dFIldTVp1rZUFBZc; w5D9ZXobGsZ2fUJG: ciylEZJRRMYAoDRf: goto aJLAnAp_JGSlrN6M; SkjjtqfiTwwVoAeI: if (!($output === null)) { goto ciylEZJRRMYAoDRf; } goto C6Gs7oqmXZDk38VY; C6Gs7oqmXZDk38VY: throw new \Exception('Failed to execute shell command: ' . $command . ' -> ' . $output, 500); goto w5D9ZXobGsZ2fUJG; OH4prO0PaXbmtnX0: O3vE1ofmaThe4oX_: goto i7n7IuCwCXlSmKOs; SSFnQ8gCyKRP_oNf: OW7YZrr9yhLibW4W: goto SkjjtqfiTwwVoAeI; k4tYWao7KDJ10NPc: if ($isDebug) { goto O3vE1ofmaThe4oX_; } goto fDWFUsZyCy_dKgK5; fDWFUsZyCy_dKgK5: $output = shell_exec($command); goto I4Hjv1TkR88b4VYT; aJLAnAp_JGSlrN6M: return $output; goto X1kLaONjEGcnzBxC; I4Hjv1TkR88b4VYT: goto OW7YZrr9yhLibW4W; goto OH4prO0PaXbmtnX0; i7n7IuCwCXlSmKOs: $output = shell_exec($command . " 2>&1"); goto SSFnQ8gCyKRP_oNf; dFIldTVp1rZUFBZc: $output = null; goto k4tYWao7KDJ10NPc; X1kLaONjEGcnzBxC: } catch (\Exception $e) { throw $e; } } }

Function Calls

None

Variables

None

Stats

MD5 f3abcab718baabd097631dfc5cfa60b0
Eval Count 0
Decode Time 63 ms