Skip to content
DoS Write-up Beginner

How I Flooded Myself 🫣 — hping3 Against Apache

The author performed three denial-of-service attacks (SYN, ICMP, and UDP floods) against their own Apache server in a home lab. The SYN and ICMP floods did not disrupt the server, but the UDP flood with spoofed source addresses overwhelmed the router's connection tracking, causing the entire Wi-Fi network to fail.

january1073 Follow

Published on infosecwriteups.com

Having never conducted a DoS attack before, I built a simple lab to test three fundamental methods: SYN flood (incomplete TCP handshakes), ICMP flood (ping overload), and UDP flood (random port bombardment). Each technique overwhelms the target by saturating it with malicious traffic.

january1073, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the router's connection tracking table was exhausted by a high volume of UDP packets with spoofed source addresses, causing the router to fail.

Impact

The SYN and ICMP floods did not disrupt the Apache server, but the UDP flood with spoofed source addresses caused the router to collapse, taking down the entire Wi-Fi network and making the server unreachable.

What the attacker needed

Authorisation to test; controlled lab environment; attacker and server on same network

How it was found

  1. Set up a lab with a server running Apache in Docker, a client, and an attacker machine on the same Wi-Fi network.
  2. Start a packet capture on the server with TShark for 240 seconds.
  3. Wait 120 seconds to capture only regular traffic.
  4. From the attacker machine, run hping3 with the --flood option to send a continuous stream of packets (SYN, ICMP, or UDP) to the server.
  5. After 240 seconds, stop the capture and the attack, then analyse the captured packets.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A denial-of-service attack tries to make a computer or network unavailable by sending it more traffic than it can handle. In this experiment, the author attacked their own server to see what would happen. The first two attacks did not stop the server, but the third attack accidentally overloaded the home router, which knocked out the whole Wi-Fi network.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.