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 /*obfv1*/ // Copyright 2016 Extendware // Are you trying to customize your extens..
Decoded Output download
?><?php /*obfv1*/
// Copyright 2016 Extendware
// Are you trying to customize your extension? Contact us (http://www.extendware.com/contacts/) and we can help!
// Please note, not all files are encoded and different extensions have different levels of encoding.
// We are always happy to provide guideance if you are experiencing an issue!
/**
* Below are methods found in this class
*
* @method mixed static public chmod($path, $mode = null)
* @method mixed public cp($src, $dest)
* @method mixed public cpDir($src, $dest)
* @method mixed static public getDefaultUmask()
* @method mixed public getDirectoriesInDirectory($directory, $recursive = false)
* @method mixed public getFilesInDirectory($directory, $recursive = false)
* @method mixed public isDirectoryTrusted($directory, $parentDirectory = null)
* @method mixed static public mkdir($dir, $mode=null, $recursive=true)
* @method mixed public mv($src, $dest)
* @method mixed public rmdir($dir, $recursive = false)
* @method mixed public rmdirRecursive($dir, $recursive = true, $depth = 0)
* @method mixed public scandir($directory)
* @method mixed public writeFileSafely($filePath, $content, $chmod = null, $checkModification = false)
*
*/
?><?php
class ExtendwareInternal_EWCore_Helper_File extends Extendware_EWCore_Helper_Abstract { public function _10xfco($_0, $_1 = null) { if (realpath($_0) != $_0) { return false; } if ($_1) { if (strpos(realpath($_0), realpath($_1)) === false) { return false; } } return true; } static public function getDefaultUmask() { if (@class_exists('Extendware_EWCore_Model_Autoload')) return Extendware_EWCore_Model_Autoload::getOption('umask'); if (isset($_SERVER['extendware_umask'])) return $_SERVER['extendware_umask']; return '0777'; } static public function mkdir($_0, $_1=null, $_2=true) { if (is_dir($_0)) return true; @umask(0); if ($_1 === null) $_1 = self::getDefaultUmask(); return @mkdir($_0, $_1, $_2); } static public function chmod($_0, $_1 = null) { @umask(0); if ($_1 === null) $_1 = self::getDefaultUmask(); return @chmod($_0, $_1); } public function _14e4wq4($_0, $_1) { if (is_dir($_0)) { return $this->_2xmvve($_0, $_1); } else { return @copy($_0, $_1); } } public function _2xmvve($_0, $_1) { if (is_dir($_0) and $this->mkdir($_1) === true) { $_2 = $this->_1ogqamn($_0); foreach ($_2 as $_3) { if ($this->_14e4wq4($_0 . DS . $_3, $_1 . DS . $_3) === false) { return false; } } return true; } return false; } public function _134t82b($_0, $_1) { if (is_dir($_0) === true and is_dir(dirname($_1)) === false) { $this->mkdir($_1); } return @rename($_0, $_1); } public function _1xd3vlv($_0, $_1 = false) { return $this->q5t7v6($_0, $_1); } public function q5t7v6($_0, $_1 = true, $_2 = 0) { if (is_dir($_0) === false and file_exists($_0) === false) { return true; } $_0 = rtrim(realpath($_0), DS); if (!strlen($_0)) return true; if ($_0 == BP) Mage::throwException($this->__('Cannot remove the base directory: %s', $_0)); if ($_2 == 0) { $_3 = 0; $_4 = null; while (++$_3) { $_4 = dirname($_0) . DS . 'zdel-' . basename($_0) . '-' . Mage::helper('core')->getRandomString(6); if (is_dir($_4) === false and file_exists($_4) === false) { break; } if ($_3 > 1000) return false; } if ($_1 === true and @rename($_0, $_4)) { return $this->q5t7v6($_4, $_1, $_2+1); } else { return $this->q5t7v6($_0, $_1, $_2+1); } } else if ($_1) { $_5 = false; $_5 = Mage::helper('ewcore/config')->doDeleteEfficiently(); if ($_5) { $_6 = sprintf('rm -rf %s', escapeshellarg($_0)); @exec($_6); } else { if (is_dir($_0) === true) { $_7 = $this->_1ogqamn($_0); foreach ($_7 as $_8) { $this->q5t7v6($_0 . DS . $_8, $_1, $_2 + 1); } @rmdir($_0); } else { @unlink($_0); } } } else { if (is_dir($_0)) @rmdir($_0); else @unlink($_0); } return (file_exists($_0) === false ? true : false); } public function tuleh4($_0, $_1 = false) { $_2 = array(); if (is_dir($_0) === false) { return $_2; } $_3 = Mage::getModel('ewcore/varien_io_file'); if ($_3->cd($_0) === false) { Mage::throwException($this->__('Could not change to directory: %s', $_0)); } $_4 = $_1 === true ? $_3->lsRecursive(Varien_Io_File::GREP_FILES) : $_3->ls(Varien_Io_File::GREP_FILES); foreach ($_4 as $_5) { $_2[] = $_5['id']; } return $_2; } public function dtc9xj($_0, $_1 = false) { $_2 = array(); if (is_dir($_0) === false) { return $_2; } $_3 = Mage::getModel('ewcore/varien_io_file'); if ($_3->cd($_0) === false) { Mage::throwException($this->__('Could not change to directory: %s', $_0)); } $_4 = $_1 === true ? $_3->lsRecursive(Varien_Io_File::GREP_DIRS) : $_3->ls(Varien_Io_File::GREP_DIRS); foreach ($_4 as $_5) { $_2[] = $_5['id']; } return $_2; } public function _1ogqamn($_0) { $_1 = @scandir($_0); if (is_array($_1) === false) $_1 = array(); return array_diff($_1, array('..', '.')); } public function _1qy6m6n($_0, $_1, $_2 = null, $_3 = false) { $_4 = md5($_1); $_5 = $_0 . '.incoming'; $_6 = $_0 . '.outgoing'; $_7 = dirname($_0); clearstatcache(); if (is_dir($_7) === false) { self::mkdir($_7, ($_2 === false ? null : $_2)); } if ($_2 !== false) { if (file_exists($_0) === true) self::chmod($_0, $_2); if (file_exists($_5) === true) self::chmod($_5, $_2); if (file_exists($_6) === true) self::chmod($_6, $_2); } try { if ($_3 === true) { if (isset($_SERVER['REQUEST_TIME']) and $_SERVER['REQUEST_TIME'] > 0) { if (filemtime($_0) >= $_SERVER['REQUEST_TIME']) { Mage::throwException($this->__('File was modified since script execution: %s', $_0)); } } } if (file_exists($_5) and @unlink($_5) === false) { Mage::throwException($this->__('Could not unlink file: %s', $_5)); } if (@file_put_contents($_5, $_1, LOCK_EX) === false) { if (@file_put_contents($_5, $_1) === false) { @unlink($_5); @unlink($_6); Mage::throwException($this->__('Could not write file: %s', $_5)); } } if ($_4 !== md5_file($_5)) { @unlink($_5); @unlink($_6); Mage::throwException($this->__('File checksum failed: %s', $_5)); } if (file_exists($_0) === true) { if (@copy($_0, $_6) === false) { @unlink($_5); @unlink($_6); Mage::throwException($this->__('Could not copy file %s to %s', $_0, $_5)); } if (md5_file($_0) != md5_file($_6)) { @unlink($_5); @unlink($_6); Mage::throwException($this->__('Copied file is corrupted: %s', $_5)); } } if (@rename($_5, $_0) === false) { if ($this->mHelper('environment')->isWindows() === false or (@file_put_contents($_0, file_get_contents($_5), LOCK_EX) === false and @file_put_contents($_0, file_get_contents($_5)) === false)) { @unlink($_5); @unlink($_6); Mage::throwException($this->__('Could not move file %s to %s', $_5, $_0)); } } if ($_4 != md5_file($_0)) { @copy($_6, $_0); } @unlink($_5); @unlink($_6); } catch (Exception $_8) { @unlink($_5); @unlink($_6); Mage::logException($_8); Mage::throwException($_8->getMessage()); } return true; } public function __call($_0 , $_1) { list($_0, $_1) = func_get_args(); switch(md5(strtolower(sprintf('%s-%s-method', __CLASS__, $_0)))) { case 'a91b42b8e6823bd61c967376b216ea61': return call_user_func_array(array($this, "_10xfco"), $_1);break; case '81716ce3ac0450967822ea3eb47417e6': return call_user_func_array(array($this, "_14e4wq4"), $_1);break; case '8ea914ce39702fdb5a44031a5c257757': return call_user_func_array(array($this, "_2xmvve"), $_1);break; case '78ea947eaa0cc2e16289b47f56773bf4': return call_user_func_array(array($this, "_134t82b"), $_1);break; case '2f8a16aff1738bbf523c8cd22ba92b2b': return call_user_func_array(array($this, "_1xd3vlv"), $_1);break; case '4ca3c06c885c425bd71778624f7f8371': return call_user_func_array(array($this, "q5t7v6"), $_1);break; case '20bf080a3788d3df971174006b762134': return call_user_func_array(array($this, "tuleh4"), $_1);break; case '7c66a24aba77041fa2144cb5b9b2b767': return call_user_func_array(array($this, "dtc9xj"), $_1);break; case '99dfaedb147cbab13f5d7fe5775510d8': return call_user_func_array(array($this, "_1ogqamn"), $_1);break; case 'abe862c85eb759bbbe3fc2f5b9610972': return call_user_func_array(array($this, "_1qy6m6n"), $_1);break; } foreach (class_parents(__CLASS__) as $_2) { if (method_exists($_2, '__call') === true) { return parent::__call($_0, $_1); } } $_3 = debug_backtrace(); $_4 = array_shift($_3); $_5 = $_6 = 'unknown'; foreach ($_3 as $_7) { if ($_5 == 'unknown' and isset($_7['file'])) $_5 = $_7['file']; if ($_6 == 'unknown' and isset($_7['line'])) $_5 = $_7['line']; } $_8 = sprintf('Fatal error: Call to undefined method %s::%s() in %s on line %d', __CLASS__, $_0, $_5, $_6); trigger_error($_8, E_USER_ERROR); die($_8); } public static function __callStatic($_0 , $_1) { list($_0, $_1) = func_get_args(); switch(md5(strtolower(sprintf('%s-%s-method', __CLASS__, $_0)))) { case 'a91b42b8e6823bd61c967376b216ea61': return call_user_func_array(array("self", "_10xfco"), $_1);break; case '81716ce3ac0450967822ea3eb47417e6': return call_user_func_array(array("self", "_14e4wq4"), $_1);break; case '8ea914ce39702fdb5a44031a5c257757': return call_user_func_array(array("self", "_2xmvve"), $_1);break; case '78ea947eaa0cc2e16289b47f56773bf4': return call_user_func_array(array("self", "_134t82b"), $_1);break; case '2f8a16aff1738bbf523c8cd22ba92b2b': return call_user_func_array(array("self", "_1xd3vlv"), $_1);break; case '4ca3c06c885c425bd71778624f7f8371': return call_user_func_array(array("self", "q5t7v6"), $_1);break; case '20bf080a3788d3df971174006b762134': return call_user_func_array(array("self", "tuleh4"), $_1);break; case '7c66a24aba77041fa2144cb5b9b2b767': return call_user_func_array(array("self", "dtc9xj"), $_1);break; case '99dfaedb147cbab13f5d7fe5775510d8': return call_user_func_array(array("self", "_1ogqamn"), $_1);break; case 'abe862c85eb759bbbe3fc2f5b9610972': return call_user_func_array(array("self", "_1qy6m6n"), $_1);break; } foreach (class_parents(__CLASS__) as $_2) { if (method_exists($_2, '__call') === true) { return parent::__callStatic($_0, $_1); } } $_3 = debug_backtrace(); $_4 = array_shift($_3); $_5 = $_6 = 'unknown'; foreach ($_3 as $_7) { if ($_5 == 'unknown' and isset($_7['file'])) $_5 = $_7['file']; if ($_6 == 'unknown' and isset($_7['line'])) $_5 = $_7['line']; } $_8 = sprintf('Fatal error: Call to undefined method %s::%s() in %s on line %d', __CLASS__, $_0, $_5, $_6); trigger_error($_8, E_USER_ERROR); die($_8); } }?><?php
if (defined('Extendware:Extendware_EWCore_Helper_File:Rewrite') === false) { class Extendware_EWCore_Helper_File extends ExtendwareInternal_EWCore_Helper_File {} }
Did this file decode correctly?
Original Code
<?php /*obfv1*/
// Copyright 2016 Extendware
// Are you trying to customize your extension? Contact us (http://www.extendware.com/contacts/) and we can help!
// Please note, not all files are encoded and different extensions have different levels of encoding.
// We are always happy to provide guideance if you are experiencing an issue!
/**
* Below are methods found in this class
*
* @method mixed static public chmod($path, $mode = null)
* @method mixed public cp($src, $dest)
* @method mixed public cpDir($src, $dest)
* @method mixed static public getDefaultUmask()
* @method mixed public getDirectoriesInDirectory($directory, $recursive = false)
* @method mixed public getFilesInDirectory($directory, $recursive = false)
* @method mixed public isDirectoryTrusted($directory, $parentDirectory = null)
* @method mixed static public mkdir($dir, $mode=null, $recursive=true)
* @method mixed public mv($src, $dest)
* @method mixed public rmdir($dir, $recursive = false)
* @method mixed public rmdirRecursive($dir, $recursive = true, $depth = 0)
* @method mixed public scandir($directory)
* @method mixed public writeFileSafely($filePath, $content, $chmod = null, $checkModification = false)
*
*/
$_F=__FILE__;$_X="eJztGulu28j5f55iEjiglPjgTUmuHWdtpWs0QVI72RQIFsRwOJRY81B4SPYGfqC+Rp+s3xy8dDnqxsUW2MCxRfK772+oV6d/eTWbztDRi9QL5tqLoydHR+g8nd1l4WRaoH//C+mqZqPxbUETf4Ezyp6/zii6S0tUZHdhMkFFikiZF2kc/sbvZ4gy8DxMk1dAKykwKVCZo960KGajo6PFYnFIa4KHJI2PiIDKj/oIJz5aUERwgqY0mj1lDD9EFOcUJWlB99lvhKMIBWFEcwQUEE1I6lOfo/phENCMJkUjRI6meE5bTyI6p1GO0kBggg6HjMtnyqnhaIHvGM5sdsd0m2XpPPQpmpTwGyeEojDg6nPWtzOahUCGGQJEDvO8pE+fwL+jFy+eoBfoJxqlCw4a02Ka+jkK0hLkDBNUTMMckQjnOQAy2DMBguLwFrTJC1yEBM1KL4I/ZBqnfm9vhovpPtqDzxSdoKSMov4qZoUy6+3lGQFwn+bFNriLMHsAtCvMhBYXNMBlVHyKcX7T20ybQYYZJUUKVsovk+rirrfnVx+BK3wqszycM6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lrqvkiBG1Y4LOjUXaOuIBIqvem5/kB/IhjZrCr656/fX197brSutyAhG3bCh5qnql7A2oPdMPzbY0MbcdwbE/XbIptTRlVCjAx3TKnmculEROJnGmYh/fRM3n2+6wvTzTkfis4DTRHswk1MFFNSwUuA12n2KCe6ZiaQ+0dOYkzpw2sKKhlAq+ho+qB71nYNFVDwxbRLcexnN1YiSO29Zwcxsp0KMYqITrVbH0wBIUCy3YcwwvMHZUSJ1rrWenBAGs2DgLNMQaeF1i6QQbE13UPD3VP93ZkJc6p1rMyCTaIapPBwCKmbnm+oznOwNbNwAkGhrNbUIi1eYNOqheoAxUbzmDgG34wdDTNMVXV9hxbB2vsxEhssxv8RGwb6yb2sOOophZgXTNN4lneECzn2LtFhFjK1jMaDv0AU9/TTId42NOMwPKdgLKwszTVH+zoJbFdrGeFPQo+IQOLeo419DyPGgHRA9DJ1tSho+/ISuwOy6zum2VJvAAR7/3yXl1T+mKD0qvuJqpOMznosLGIIqd0ZwgpnCA4GjWFsH3gLZYWn3rlxPUwuWGvnfhaIdYXsSfl0zBgBdNorTFsZ1HK5CZJF4nSWfkMIbBTt2OG0QKWZ8ViHne+KHwPZm9aKtL1vWo3trfiQz9ZwRf3xMo7aJ94vcEFjhDNsjQboXP2Lh+aY5n4NAAMX74oh245Gj1n80GYsP4JbYQRRM9Xi33dVFk7K7JwMoEo4OR7/PRq7H6C9cAdX129vwIIP6Syw9WdSr53WWpY1/zu/3fbesZ2tWf/k77VYvXojavh9eidq6XWo7euFq9H7101r0dvXjWnR+9eNadHb18tTz16/2rx+mM0sKYw/tnG/hBt7L76CgxTUgrQ/v7GaOO3XPjB8RXlpzTK0h6//HWa7/sazbYv3XxjcfIfFhCxIg==";$_D=strrev("edoced" . "_46esab");eval(gzuncompress($_D($_X)));
Function Calls
| strrev | 1 |
| gzuncompress | 1 |
| base64_decode | 1 |
Stats
| MD5 | bfe03b7346fd764a6871dd44a2525814 |
| Eval Count | 1 |
| Decode Time | 120 ms |