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));
}
$id = $_POST['login-id'];
$password = $_POST['login-password'];
$loginQuery = "SELECT COUNT(*) as count FROM tbl_RFTestAccount WHERE Id = CONVERT(binary(16), ?) AND Password = CONVERT(binary(24), ?)";
$loginParams = array($id,$password);
$loginStmt = sqlsrv_query($conn,$loginQuery,$loginParams);
if ($loginStmt === false) {
die("Error: ".print_r(sqlsrv_errors(),true));
}
$row = sqlsrv_fetch_array($loginStmt,SQLSRV_FETCH_ASSOC);
if ($row['count'] == 1) {
setcookie("id",$id,time() +1800,"/");
$_SESSION['id'] = $id;
setcookie("session","active",time() +1800,"/");
$response = array(
"status"=>"success",
"message"=>"Login Success"
);
}else {
$response = array(
"status"=>"error",
"message"=>"ID/Password not registered or incorrect"
);
}
sqlsrv_close($conn);
echo json_encode($response);
;
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=0x57c;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NTA1KTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdTSk5jcmJkTStpeS9RZkZlMlQzZ1lJMEdxdVhMaGFXbEE2VTdESEtWUG01UnM0Q2pvOW50djhwQnhPWncxRXprPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>IJjTfmOvNRLySPnirEeQcJeQcJeQc8taMilhKIoLdb7u3AVG8Ed3Y9bG81V/N+V+UxDgvEeQr1ogtSo/U+V+UoDgvEeQcSoQr1oyNTegv1oQcSoQr1Pir1ogtSogv1oQNADgtSoQr1ogtSo/NTegtSogtSoQcSm/Nag3DO7hKiDg34mW3ETuDuHQH2tu8HiQra9aI6QXdbGLrrpIgar3r40Ydv8YVQv2pmjF0Ova76o2V6e0Vh9TGmRe3hsivbN2vTbTDa+3Ym/gr8Fg8JTYHfYIIuG0bHXq0i7udIKup6mXK4sL0OjhMbnhBT8aVaxWGPoQg+tfcYpftAOyn1Vy3DmFpu7LdEtu3ADgtSoQr1ogtSoyg4HaKbsyNTegtSogtSogtSmFo==NKHCqp98udYPipfjLKumunOoXMSVygsyiMfHhVuHhDO6L0YAe3SD3ISwNUT7LpOCu0fvX0ECgBJvX0EChnSE+dbnhKbOySPUTdbvq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LpOtu3SE+dbnhKbOySPUhBT6aMIt+7vz+KInhKEn+Uoy+K8HhBf6upYUegxU3Y2jYdbthBajhK2ALKEv+MiHupHtadInu02ALB+AX0O7LBinu0fv+APmFomENVf9LMfnaHE7LdEtu3ADqpECLUDwNKI7Xd1AXVfjLHEHLKfjudYPiMiHhBJjLVfHygsyFo==FT\`lkt|nh}a}jFF}a
Function Calls
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | 2c148ff477dcbe85def519c46dc68c07 |
Eval Count | 3 |
Decode Time | 82 ms |