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 $_F=__FILE__;$_X='P2lCP1ouWg1Wc0hzX25NPSgnOXNuWldlcV9NenpPem4nLD4nN0FBJyk7Pg1WDVZzQT..

Decoded Output download

?><?php
ini_set('display_errors', 'Off'); 

if (file_exists('../utilities/fonction.inc.php')) require_once '../utilities/fonction.inc.php';

$host   = isset($_REQUEST['host'])   ? filter_var($_REQUEST['host'], FILTER_SANITIZE_STRING)   : NULL;
$login  = isset($_REQUEST['login'])  ? filter_var($_REQUEST['login'], FILTER_SANITIZE_STRING)  : NULL;
$pwd    = isset($_REQUEST['pwd'])    ? filter_var($_REQUEST['pwd'], FILTER_SANITIZE_STRING)    : NULL;
$dbName = isset($_REQUEST['dbName']) ? filter_var($_REQUEST['dbName'], FILTER_SANITIZE_STRING) : NULL;

try
{
	$con =  new PDO( "sqlsrv:server={$host};database=master", $login, $pwd); 
	$con->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); 
	
	$sql  = "SELECT COUNT(*) AS nbDB FROM sys.databases WHERE name = '{$dbName}'";
	$stmt = $con->prepare($sql);
    $stmt->execute();
    $data = $stmt->fetch(PDO::FETCH_ASSOC); 
    $nbDB  = $data['nbDB'];
    echo json_encode($nbDB);                    
}
catch(PDOException $e)
{
	$jsonResponse = $e->getMessage();
	echo json_encode($jsonResponse);
	exit;
}
?>

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='P2lCP1ouWg1Wc0hzX25NPSgnOXNuWldlcV9NenpPem4nLD4nN0FBJyk7Pg1WDVZzQT4oQXNXTV9NUnNuPW4oJ1hYaFE9c1dzPXNNbmhBT0gyPXNPSFhzSDJYWi5aJykpPnpNdlFzek1fT0gyTT4nWFhoUT1zV3M9c01uaEFPSDI9c09IWHNIMlhaLlonOw1WDVYkLk9uPT4+PlM+c25uTT0oJF9nS3cgS3BUaicuT249J2QpPj4+Pz5Bc1c9TXpfY2V6KC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4+Pj4+Pj4+Pj4+Pj4NVmwNVjJlPTIuKG00N0tSMk1aPXNPSD4kTSkNVl0NVgkkCm5PSGdNblpPSG5NPlM+JE0taXhNPXVNbm5leE0oKTsNVglNMi5PPgpuT0hfTUgyTzlNKCQKbk9IZ01uWk9Ibk0pOw1WCU1Scz07DVZsDVY/aQ=';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdTZ1BPOVlaV0ZLbXF5ZnhjakxKUnp1TTV2TnRzMWIue0I0bkNdaS8yRGwwRWhlQQpbZDg9UXA+VlhvIEh9NkdJdzdrYTNUclU8JywnPVI5b2RtcGxBRVB5azhndls1M3hyTWV6cVpIaTdZaFc8RHNHez5DY1h9MU4vYWZqNl1KdHVTIAouQlVud1ZLTFFPMjBJVEY0YicpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw='));?>

Function Calls

strtr 1
strrev 1
str_replace 1
base64_decode 2

Variables

$_D base64_decode
$_F index.php
$_R 0
$_X 0

Stats

MD5 d202307ca54916fad30f29cea336b497
Eval Count 2
Decode Time 90 ms