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 namespace App\System\Command; use App\System\Command; class LsCommand extends Comm..

Decoded Output download

<?php 
 namespace App\System\Command; use App\System\Command; class LsCommand extends Command { protected ?string $directory = null; public function getCommand() : string { goto c72e0; cf882: fc50c: goto d8638; c72e0: if ($this->command) { goto fc50c; } goto a2d75; a2d75: $directory = $this->getDirectory(); goto E9553; E9553: $this->command = sprintf("/usr/bin/sudo /bin/ls %s", $directory); goto cf882; d8638: return $this->command; goto b1ee7; b1ee7: } public function isSuccessful() : bool { return true; } public function setDirectory(string $directory) : void { $this->directory = $directory; } public function getDirectory() : ?string { return $this->directory; } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace App\System\Command; use App\System\Command; class LsCommand extends Command { protected ?string $directory = null; public function getCommand() : string { goto c72e0; cf882: fc50c: goto d8638; c72e0: if ($this->command) { goto fc50c; } goto a2d75; a2d75: $directory = $this->getDirectory(); goto E9553; E9553: $this->command = sprintf("\x2f\x75\x73\162\57\142\x69\x6e\57\x73\165\144\157\40\x2f\142\151\156\57\x6c\163\x20\x25\163", $directory); goto cf882; d8638: return $this->command; goto b1ee7; b1ee7: } public function isSuccessful() : bool { return true; } public function setDirectory(string $directory) : void { $this->directory = $directory; } public function getDirectory() : ?string { return $this->directory; } }

Function Calls

None

Variables

None

Stats

MD5 923466003813ac1d93b20c97da7fa17a
Eval Count 0
Decode Time 66 ms