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 eval("?>".base64_decode("PD9waHAgZXZhbCgiPz4iLmJhc2U2NF9kZWNvZGUoIlBEOXdhSEFnWlhaaGJ..
Decoded Output download
?>b'<?php
error_reporting(E_ERROR | E_PARSE);
date_default_timezone_set("Asia/Kolkata"); //India time (GMT+5:30)
require_once(\'dbconfig.php\');
try {
$conn = new PDO("$driver:host=$servername;dbname=".$dbname, $username, $password);
// set the PDO error mode to exception
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$conn->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_BOTH);
$wsql = $conn->prepare("select * from settings WHERE weburl = ?");
$wsql->execute([$_SERVER[\'SERVER_NAME\']]);
$webdata=$wsql->fetch();
$sms_obj = json_decode($webdata[\'smsapi\']);
$msql = $conn->prepare("select * from settings WHERE id = ?");
$msql->execute([\'1\']);
$mw_data=$msql->fetch();
$pg_obj = json_decode($mw_data[\'pgapi\']);
$site_short = rtrim(preg_replace(\'#([^ ])[^ ]* *#i\', \'$1\',$webdata[\'webname\'])," ");
$order_id =rand(100000,999999);
$pin_id =rand(1000,9999);
$pay_id = "PY".rand(1000,9999);
$date_time =date(\'Y-m-d\', time());
$date =date(\'m/d/Y\', time());
}
catch(PDOException $e)
{
echo "Connection failed: " . $e->getMessage();
}
if (substr($_SERVER[\'SERVER_NAME\'], 0, 4) === \'www.\')
{
header(\'Location: \'.$socket.\'\' . substr($_SERVER[\'SERVER_NAME\'], 4)); exit();
}
?>'
Did this file decode correctly?
Original Code
<?php eval("?>".base64_decode("PD9waHAgZXZhbCgiPz4iLmJhc2U2NF9kZWNvZGUoIlBEOXdhSEFnWlhaaGJDZ2lQejRpTG1KaGMyVTJORjlrWldOdlpHVW9JbEJFT1hkaFNFRm5XbGhhYUdKRFoybFFlalJwVEcxS2FHTXlWVEpPUmpscldsZE9kbHBIVlc5SmJFSkZ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