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"=>"BILLING",
"Uid"=>$ID,
"PWD"=>$PW
);
$conn = sqlsrv_connect($serverName,$connectionOptions);
if (!$conn) {
die("Koneksi ke SQL Server gagal: ".print_r(sqlsrv_errors(),true));
}
$id = isset($_COOKIE['id']) ?$_COOKIE['id'] : '';
if (empty($id)) {
die("Fail: Error");
}
$query = "INSERT INTO tbl_UserStatus (id, Status, DTStartPrem, DTEndPrem, Cash)
VALUES (?, 2, GETDATE(), DATEADD(day, 3, GETDATE()), 500000)";
$params = array($id);
$stmt = sqlsrv_query($conn,$query,$params);
if ($stmt === false) {
$response = array(
'status'=>'error',
'message'=>'Already Claim'
);
}else {
$response = array(
'status'=>'success',
'message'=>'Success'
);
}
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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uUSP+3T7LpOCy3JwNKTmu3AU3pECu04tX3JRu3JgYYoAYpInaKIn+da6upbsFUSU/VJnX0OvGB+PhBbshBipGpInhKEnhnAm/MTna0Ymygsyl2PDX02Ae3JmhBfHaNADGvfegv4iTIsVX02VG3DAenTl2vEe3vHb0namuNaa+cPAinhwNKHK+N6HLGJvW3ADX02my3JwNKTmu3AUTKbmLcPATGinLB+Uygsyl2PDhGIHhVDAe3SU3YOgTIiY+rHFIr1AadisG8ItuGigadbvaGQAydHD/NJgadbvaGQs+rTYYBT6hVT2hKI4/NJrIrICubJnu0vs+rf6hpAmc2PA+NSA+NSA+NSAIDbQIYIg+NAk/NSn/NJMTITr2ITbyNDs+rTJIrIJTr2PudbO/NSt/NJMTITr2ITbyNDm/NS8QcSoQcSm+7syiMJ6hKb4hnSE+dbnhKbOyNTmuNDwNUTtad8v+cvAhBbshBipGBb8uGiOyNT7LpOC/NT9a0InW3oDhdbnq08tygsyX0qAyNTtad8v+cvEe3JKq09tu3DAWoPDhKIthdEChpYAe3J6hVi6W3AyiBfvqGT8hnhEeUaHhVijhUhsNUa4uGftq0aHitvzivbshKI6uMDA2p96X0vVNUDwNV8HLMfH+MsyiMiHhBJjLVfH+cvAqGinqGDPNUatadbvaGQVegxVhBI7qpIthnhsNUa4uGftq0aHitvzi8f8qpfHhBQVNUDwNVvyXdI6udInyNacLpOvu0Ov/ITOhdYZ+dbohd9mqpbvX0EC/pmtLpxVygsyu0fPLnJ5hpECGpICqpEDu3ADhKIthdEChpYmFomth09thVulqp9jhpYPidfjLKxmFoPwfT_jqVkQcS@
Function Calls
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | 065291bad71a4fdb66e67bfc1c07574e |
Eval Count | 3 |
Decode Time | 78 ms |