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 require __DIR__ . "\57\56\x2e\x2f\x2e\x2e\57\x2e\x2e\x2f\166\145\x6e\144\157\162\x..

Decoded Output download

<?php 
 require __DIR__ . "/../../../vendor/autoload.php"; class Geral { private $token; private $secret = false; public function run(string $endpoint, array $data = array()) { if (empty($this->token)) { throw new Exception("Token is missing!"); } $data += array("parse_mode" => "HTML", "protect_content" => $this->secret); $ch = curl_init("https://api.telegram.org/bot" . $this->token . "/" . $endpoint); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $result = curl_exec($ch); curl_close($ch); return json_decode($result); } public function __setToken($token) { $this->token = $token; $this->adminSettings(); } private function adminSettings() { $adm = (new Administration())->findById(1); if (isset($adm) && $adm->private_messages == 1) { return $this->secret = true; } } } ?>

Did this file decode correctly?

Original Code

<?php
 require __DIR__ . "\57\56\x2e\x2f\x2e\x2e\57\x2e\x2e\x2f\166\145\x6e\144\157\162\x2f\x61\165\164\157\154\157\141\144\x2e\x70\150\160"; class Geral { private $token; private $secret = false; public function run(string $endpoint, array $data = array()) { if (empty($this->token)) { throw new Exception("\124\x6f\153\145\x6e\40\x69\163\x20\x6d\151\163\163\x69\x6e\147\41"); } $data += array("\x70\141\162\x73\145\x5f\155\157\144\x65" => "\x48\x54\115\114", "\160\162\157\x74\x65\143\x74\x5f\x63\157\156\x74\x65\x6e\164" => $this->secret); $ch = curl_init("\150\164\164\x70\x73\x3a\x2f\57\141\160\151\56\164\x65\154\145\x67\x72\x61\x6d\x2e\x6f\x72\x67\x2f\142\157\164" . $this->token . "\57" . $endpoint); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $result = curl_exec($ch); curl_close($ch); return json_decode($result); } public function __setToken($token) { $this->token = $token; $this->adminSettings(); } private function adminSettings() { $adm = (new Administration())->findById(1); if (isset($adm) && $adm->private_messages == 1) { return $this->secret = true; } } }

Function Calls

None

Variables

None

Stats

MD5 efd9247698c187f10a91ee5d4ca9caea
Eval Count 0
Decode Time 51 ms