Decoded Output
Download<?php
namespace MiniOrange\OAuth\Controller\Actions;
use Magento\Customer\Model\Session;
use Magento\Framework\App\Action\Context;
use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Framework\App\ResponseFactory;
use MiniOrange\OAuth\Helper\OAuthUtility;
use MiniOrange\OAuth\Helper\OAuthConstants;
class CustomerLoginAction extends BaseAction implements HttpPostActionInterface
{
private $user;
private $customerSession;
private $responseFactory;
private $relayState;
public function __construct(Context $ml, OAuthUtility $mb, Session $sa, ResponseFactory $N5)
{
$this->customerSession = $sa;
$this->responseFactory = $N5;
$this->oauthUtility = $mb;
parent::__construct($ml, $mb);
}
public function execute()
{
$this->oauthUtility->log_debug("CustomerLoginAction: execute");
if (isset($this->relayState)) {
goto w9;
}
$this->relayState = $this->oauthUtility->getBaseUrl() . "customer/account";
w9:
$this->oauthUtility->setStoreConfig(OAuthConstants::DEFAULT_POST_LOGOUT, $this->relayState);
$this->customerSession->setCustomerAsLoggedIn($this->user);
return $this->getResponse()->setRedirect($this->oauthUtility->getUrl($this->relayState))->sendResponse();
}
public function setUser($user)
{
$this->oauthUtility->log_debug("CustomerLoginAction: setUser");
$this->user = $user;
return $this;
}
public function setRelayState($C0)
{
$this->oauthUtility->log_debug("CustomerLoginAction: setRelayState");
$this->relayState = $C0;
return $this;
}
}
?>
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 | 1911c6a538b13716 |
|---|---|
| Eval Count | 0 |
| Decode Time | 47 ms |
Original Code
<?php
namespace MiniOrange\OAuth\Controller\Actions;
use Magento\Customer\Model\Session;
use Magento\Framework\App\Action\Context;
use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Framework\App\ResponseFactory;
use MiniOrange\OAuth\Helper\OAuthUtility;
use MiniOrange\OAuth\Helper\OAuthConstants;
class CustomerLoginAction extends BaseAction implements HttpPostActionInterface
{
private $user;
private $customerSession;
private $responseFactory;
private $relayState;
public function __construct(Context $ml, OAuthUtility $mb, Session $sa, ResponseFactory $N5)
{
$this->customerSession = $sa;
$this->responseFactory = $N5;
$this->oauthUtility = $mb;
parent::__construct($ml, $mb);
}
public function execute()
{
$this->oauthUtility->log_debug("\x43\165\163\164\x6f\x6d\145\162\x4c\157\147\151\156\101\x63\x74\x69\157\x6e\x3a\x20\145\170\145\143\x75\164\x65");
if (isset($this->relayState)) {
goto w9;
}
$this->relayState = $this->oauthUtility->getBaseUrl() . "\143\165\163\x74\157\x6d\145\x72\57\141\143\143\157\165\x6e\x74";
w9:
$this->oauthUtility->setStoreConfig(OAuthConstants::DEFAULT_POST_LOGOUT, $this->relayState);
$this->customerSession->setCustomerAsLoggedIn($this->user);
return $this->getResponse()->setRedirect($this->oauthUtility->getUrl($this->relayState))->sendResponse();
}
public function setUser($user)
{
$this->oauthUtility->log_debug("\103\x75\163\x74\x6f\x6d\145\162\114\157\147\151\156\x41\143\x74\151\157\156\x3a\40\163\x65\164\125\x73\145\x72");
$this->user = $user;
return $this;
}
public function setRelayState($C0)
{
$this->oauthUtility->log_debug("\103\165\163\x74\157\155\x65\162\114\157\x67\151\156\101\143\x74\151\x6f\156\72\x20\x73\145\164\x52\145\154\x61\171\123\164\x61\164\x65");
$this->relayState = $C0;
return $this;
}
}