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['id'];
$password = $_POST['password'];
$email = $_POST['email'];
$checkQuery = "SELECT COUNT(*) as count FROM tbl_RFTestAccount WHERE Id = CONVERT(binary(16), ?) OR email = ?";
$checkParams = array($id,$email);
$checkStmt = sqlsrv_query($conn,$checkQuery,$checkParams);
if ($checkStmt === false) {
die("Error: ".print_r(sqlsrv_errors(),true));
}
$row = sqlsrv_fetch_array($checkStmt,SQLSRV_FETCH_ASSOC);
if ($row['count'] >0) {
$response = array(
"status"=>"error",
"message"=>"ID or Email already registered."
);
}else {
$sql = "INSERT INTO tbl_RFTestAccount (Id, Password, BCodeTU, email, CreateDate, statusclaim) VALUES (CONVERT(binary(16), ?), CONVERT(binary(24), ?), 1, ?, GETDATE(), 0)";
$params = array($id,$password,$email);
$stmt = sqlsrv_query($conn,$sql,$params);
if ($stmt === false) {
$response = array(
"status"=>"error",
"message"=>"Error: ".print_r(sqlsrv_errors(),true)
);
}else {
$response = array(
"status"=>"success",
"message"=>"Registration successful"
);
}
}
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=0x6d0;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NTA5KTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdTSk5jcmJkTStpeS9RZkZlMlQzZ1lJMEdxdVhMaGFXbEE2VTdESEtWUG01UnM0Q2pvOW50djhwQnhPWncxRXprPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>^sU{SbdzPk{XDbUG]irEeQcJeQcJeQc8taMilhKIoLdb7u3AVG8Ed3Y9bG81V/N+V+UxDgvEeQr1ogtSo/U+V+UoDgvEeQcSoQr1oyNTegv1oQcSoQr1Pir1ogtSogv1oQNADgtSoQr1ogtSo/NTegtSogtSoQcSm/Nag3DO7hKiDg34mW3ETuDuHQH2tu8HiQra9aI6QXdbGLrrpIgar3r40Ydv8YVQv2pmjF0Ova76o2V6e0Vh9TGmRe3hsivbN2vTbTDa+3Ym/gr8Fg8JTYHfYIIuG0bHXq0i7udIKup6mXK4sL0OjhMbnhBT8aVaxWGPoQg+tfcYpftAOyn1Vy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9LNSE+NiigHfbYH2A3YOYgnJvqK9lYDuYuGfv20f7LBICaNSP302s+bJ6hBfBLBiD/NJN2pEDuITI/NJHL0bmLNoA2BiHqGTHTdbvu3oAhBT6aMItqp96X0vm+buJgbIbYnSP2vEFIDI3IN6UX0O6hVDPQgqm/NSky3oA2vEFIDI3IN6UX0O6hVDPQ72m/NSky3oAQ3oAenoATvIYTrbYT3Am/NSoy3+wNUToqGi6LGQAe3J6hVi6W3ADX02siMJ6hBfBLBiD/NTHL0bmLNDwNUTtad8v+cvAhBbshBipGBb8uGiOyNT7LpOC/NTth0osiMJ6hKb4hnDwNKHK+NADhBT4aNSEegvAuKbshpYm+MsyiMiHhBJjLVfH+cvAqGinqGDPNUitadbvaGQUegxUuGinLB+U/SPUL0IthpbVu3+EeUibhVijh7PA+UOohKHCabEnyMf9LMfnaHEHhVijhVQPy39vhVIHy2PmFomEu09tu3JwNUTnuGfoLpOtu3SE+dbnhKbOySPUhBT6aMIt+7vz+Vf8qpfHhBQU/SPUL0IthpbVu3+EeUi3u0amhBTnqGTmLpxAhBI7qpIthpu8LN+yygsyl2mENKI7Xd1AXVfjLHEHLKfjudYPiMiHhBJjLVfHygsyhBbshBipGpfsLBfHyNT7LpOCygsyFo==fOy|\vnb\X

Function Calls

fopen 1
fread 3
strtr 2
fclose 1
urldecode 1
str_replace 1
base64_decode 3

Variables

$O000O0O00 True
$O0O000O00 fgets
$O0O000O0O fgetc
$O0O00OO00 fread
$OO00O0000 1744
$OO00O00O0 include('config.php'); $serverName = $IP; $connectionOption..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 dcbe45de81e2fce0a24f5a17e8f60074
Eval Count 3
Decode Time 106 ms