Concepts / Wireless and network types

Wireless and network types

WPS

Also called Wi-Fi Protected Setup, WPS PIN, push button

A shortcut for joining a WPA network by button or PIN, whose PIN mode is easily guessed.

The problem

Typing a long WPA passphrase into a printer with no keyboard is hard, so access points offer a shortcut that also lets attackers in.

  1. WPS lets a device join without the passphrase: press a button on the access point, or enter its 8-digit PIN.
  2. The last digit is only a checksum, and the AP checks the first four digits and the next three separately, saying which half was wrong.
  3. So an attacker needs at most 10,000 + 1,000 = 11,000 tries, not 100 million.
  4. Many APs never lock out; once the PIN falls, the AP hands over the WPA passphrase itself.
Two halves make the PIN easy to guess
Two halves make the PIN easy to guess

The router confirms the first four digits on their own, then the next three; the last digit is a checksum. That is at most 10,000 plus 1,000 tries, after which the router hands over the WPA password.

Guess first

accessPoint uses WPA2 with a strong 20-character passphrase but leaves the WPS PIN on. How hard is it to get in?

Show answer

As hard as the PIN: about 11,000 guesses, after which the AP gives away the strong passphrase.

In short

WPS (Wi-Fi Protected Setup) lets a device join a Wi-Fi network without typing the password: press a button on the router, or enter an 8-digit PIN. The router confirms the PIN in two halves, so an attacker needs at most about 11,000 tries, and many routers never lock out. Once the PIN falls, the router hands over the WPA password. Turn the PIN mode off.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab