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 Porkbun; class ApiClient { private $apiUrl; public function __construct(..
Decoded Output download
<?php
namespace Porkbun; class ApiClient { private $apiUrl; public function __construct() { $this->apiUrl = "https://porkbun.com/api/json/v3"; } public function call($endpoint, $data) { $url = $this->apiUrl . $endpoint; $ch = curl_init($url); $jsonData = json_encode($data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Content-Length: " . strlen($jsonData))); $response = curl_exec($ch); if ($response === false) { throw new Exception("Curl error: " . curl_error($ch)); } curl_close($ch); return json_decode($response, true); } } ?>
Did this file decode correctly?
Original Code
<?php
namespace Porkbun; class ApiClient { private $apiUrl; public function __construct() { $this->apiUrl = "\x68\x74\x74\x70\x73\x3a\57\57\x70\157\x72\153\142\165\x6e\56\x63\x6f\155\57\141\160\x69\x2f\152\163\x6f\156\57\x76\x33"; } public function call($endpoint, $data) { $url = $this->apiUrl . $endpoint; $ch = curl_init($url); $jsonData = json_encode($data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData); curl_setopt($ch, CURLOPT_HTTPHEADER, array("\x43\157\x6e\x74\145\x6e\x74\x2d\x54\171\x70\x65\72\x20\141\x70\x70\x6c\151\x63\141\x74\x69\157\156\57\152\x73\x6f\156", "\103\x6f\x6e\164\x65\156\x74\x2d\114\x65\156\x67\164\x68\72\40" . strlen($jsonData))); $response = curl_exec($ch); if ($response === false) { throw new Exception("\x43\x75\162\154\40\x65\x72\x72\x6f\x72\72\40" . curl_error($ch)); } curl_close($ch); return json_decode($response, true); } } ?>
Function Calls
None |
Stats
MD5 | 9ed1d1105f7afb9422fc6931e4d9f451 |
Eval Count | 0 |
Decode Time | 46 ms |