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 /* This file is protected by copyright law and provided under license. Reverse engin..
Decoded Output download
include('config.php');
$serverName = $IP;
$connectionOptions = array(
"Database"=>"RF_User",
"Uid"=>$ID,
"PWD"=>$PW
);
$conn = sqlsrv_connect($serverName,$connectionOptions);
if (!$conn) {
die("Koneksi ke SQL Server gagal: ".print_r(sqlsrv_errors(),true));
}
if (isset($_COOKIE['id'])) {
$userId = $_COOKIE['id'];
}elseif (isset($_SESSION['id'])) {
$userId = $_SESSION['id'];
}else {
$userId = null;
}
if ($userId !== null) {
$emailQuery = "SELECT email FROM tbl_RFTestAccount WHERE Id = CONVERT(binary(16), ?)";
$emailParams = array($userId);
$emailStmt = sqlsrv_query($conn,$emailQuery,$emailParams);
if ($emailStmt === false) {
die("Error: ".print_r(sqlsrv_errors(),true));
}
$row = sqlsrv_fetch_array($emailStmt,SQLSRV_FETCH_ASSOC);
if ($row === false) {
die("ID pengguna tidak ditemukan.");
}
$storedEmail = $row['email'];
$confirmEmail = $_POST['confirmEmail'];
if ($confirmEmail !== $storedEmail) {
$response = array(
"status"=>"error",
"message"=>"Email tidak cocok."
);
}else {
$newPassword = $_POST['newPassword'];
$updateQuery = "UPDATE tbl_RFTestAccount SET password = CONVERT(binary(24), ?) WHERE Id = CONVERT(binary(16), ?)";
$updateParams = array($newPassword,$userId);
$updateStmt = sqlsrv_query($conn,$updateQuery,$updateParams);
if ($updateStmt === false) {
$response = array(
"status"=>"error",
"message"=>"Error: ".print_r(sqlsrv_errors(),true)
);
}else {
$response = array(
"status"=>"success",
"message"=>"Password berhasil diubah."
);
}
}
}
header('Content-Type: application/json');
echo json_encode($response);
sqlsrv_close($conn);
;
Did this file decode correctly?
Original Code
<?php /* This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited. */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0x820;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NGY4KTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdTSk5jcmJkTStpeS9RZkZlMlQzZ1lJMEdxdVhMaGFXbEE2VTdESEtWUG01UnM0Q2pvOW50djhwQnhPWncxRXprPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>peirEeQcJeQcJeQc8taMilhKIoLdb7u3AVG8Ed3Y9bG81V/N+V+UxDgvEeQr1ogtSo/U+V+UoDgvEeQcSoQr1oyNTegv1oQcSoQr1Pir1ogtSogv1oQNADgtSoQr1ogtSo/NTegtSogtSoQcSm/Nag3DO7hKiDg34mW3ETuDuHQH2tu8HiQra9aI6QXdbGLrrpIgar3r40Ydv8YVQv2pmjF0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GpfsLBfHyNT7LpOCygsyFo==d{jtEtsFI|akR}
Function Calls
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | 7453d7a8a625a1271400d2aed1b0adcd |
Eval Count | 3 |
Decode Time | 93 ms |