The Wayback Machine - https://web.archive.org/web/20240925185655/https://www.geeksforgeeks.org/brute-forcing-wps-pins-with-reaver-in-linux/
Open In App

Brute-Forcing WPS Pins with Reaver in Linux

Last Updated : 08 Sep, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Reaver is a free and open-source tool that can be used to brute-force WPS PINs. Reaver works by sending a series of deauthentication packets to the target Wi-Fi router. These deauthentication packets force the router to disconnect all connected devices. Once all devices are disconnected, Reaver then attempts to connect to the router using the WPS PIN. If the PIN is incorrect, Reaver will try the next PIN in the list. This process continues until the correct PIN is found.

The primary method employed by Reaver involves initiating a series of deauthentication packets sent to the targeted Wi-Fi router. By flooding the router with these deauthentication packets, Reaver effectively forces the router to disconnect all devices connected to it. This disruption in the connection enables Reaver to exploit the weaknesses in the WPS protocol.

Once the router has disconnected all devices, Reaver proceeds to systematically attempt to establish a connection with the router by guessing the WPS PIN. The WPS PIN is typically an eight-digit numeric code used to authenticate devices to the router without the need for a lengthy passphrase. Reaver operates by cycling through a list of possible PIN combinations, attempting each one until it either successfully connects or exhausts all the options.

What is WPS?

Wi-Fi Protected Setup (WPS) is a security standard that allows you to connect devices to a wireless network without having to enter a long, complex password. WPS was created to make it easier to set up wireless networks for home users, but it has been criticized for being less secure than traditional methods of authentication.

WPS Attack Algorithm:

There are two main types of WPS attack algorithms:

Online and Offline

Online to crack the PIN code by sending requests to the access point over the network. Offline attacks, on the other hand, do not require access to the network, and instead rely on captured handshake data.The most common online WPS attack algorithm is Reaver. Reaver works by sending a series of requests to the access point, and then analyzing the responses to determine the PIN code. The attack is typically successful within a few hours, depending on the complexity of the PIN code. There are also a number of offline WPS attack algorithms available. One of the most common is Pixie Dust. Pixie Dust works by exploiting a vulnerability in the WPS protocol that allows an attacker to obtain the PIN code without having to interact with the access point. The attack is typically successful within a few minutes.

What is Brute Force Attack?

A brute force attack is a method of trying every possible combination of characters until the correct one is found. This can be used to crack passwords, PINs, and other security measures.

For example, if an attacker wants to gain access to a computer system, they might try to brute-force the password by entering every possible combination of letters, numbers, and symbols until they find the correct one. This can be a very time-consuming process, but it is possible if the attacker has enough time and resources.

Brute forcing a WPS PIN is a method of trying every possible combination of 8 digits until the correct one is found. This can be used to gain access to a Wi-Fi network that has WPS enabled.

WPS (Wi-Fi Protected Setup) is a feature that allows users to easily set up a Wi-Fi network by entering a PIN instead of a complex password. However, WPS has been shown to be vulnerable to brute-force attacks. To brute-force a WPS PIN, an attacker can use a tool like Reaver.

Features of Reaver:

1. WPS PIN Recovery

2. Automated Brute-Force

3. Pixie Dust Attack Support

4. Advanced Configuration Options

5. Status Monitoring

Brute-Forcing WPS Pins with Reaver in Linux

Reaver is preinstalled on Kali Linux and other Linux security distributions. There is no need to download or install it separately.

Brute-Forcing WPS Pins with Reaver in Linux

Step 1: First we have to put our wireless interface in monitor mode. To do this type the following command in the terminal.

sudo airmon-ng start wlan0


Brute-Forcing WPS Pins with Reaver in Linux

As you can see in the above image wlan0 is now in monitor mode named wlan0mon.

Step 2: Now we can search for any Access Point which has WPS enabled and it is unlocked. Type the following command to do so.

sudo wash -i <interface>


Note: wlan0mon is the wireless interface which is in monitor mode.

Brute-Forcing WPS Pins with Reaver in Linux

You can see the list of APS with WPS versions and whether it’s locked or unlocked.

Step 3: Copy the BSSID of the AP which you want to get connected to by cracking WPS Pin.

Step 4: Type the following command to run reaver and see all the commands to crack WPS Pin.

reaver -h


Screenshot-from-2023-06-08-23-01-53.png

Step 5: Type the following command to run the Brute-Forcing WPS Pins with Reaver.

sudo reaver -i wlan0mon -b 4C:22:F3:FA:60:9D -S -v


-i – It states the name of the interface to be used.

-b – It states the bssid of the Victim AP.

-S – It tells the tool to use small DH (Diffie–Hellman) keys to improve crack speed.

-v – It Display non-critical warnings.

Brute-Forcing WPS Pins with Reaver in Linux

Now the tool will try all the possible pins to crack the WPS Pin of the target. Once the correct pin found, It will display it and you can now connect to the network without the password.

Brute-Forcing WPS Pins with Reaver in Linux

As you can see, the Pin has been cracked.

Here are some of the things to keep in mind when using Reaver:

  • Reaver can only be used against APs that support WPS.
  • Reaver is a brute-force attack, so it can take a long time to crack the WPS PIN.
  • Reaver can be detected by some APs, which may cause the AP to lock its WPS functionality.
  • Using Reaver to crack the WPS PIN of an AP is illegal in some jurisdictions.

Conclusion:

Reaver is a powerful tool that can be used to test the security of Wi-Fi networks by exploiting vulnerabilities in the Wi-Fi Protected Setup (WPS) feature. While it can be a valuable tool for educational and research purposes, it is important to use it responsibly and ethically. The primary purpose of Reaver’s development was to raise awareness about the security flaws in WPS implementations and encourage manufacturers and users to adopt more secure authentication methods. Disabling WPS on Wi-Fi routers and employing stronger authentication, such as WPA2-PSK or WPA3, is crucial for ensuring the security of wireless networks.



Similar Reads

URLBrute – Tool to Brute Forcing Website Sub-Domains and Directories
Brute-Forcing is the technique of matching the credentials like Usernames, Passwords, OTPs for unauthenticated access to the target domain. The list of words are been tested against the target to get the exact credentials. All this process is done through automated tools. URLBrute is an automated tool developed in the Golang language which can be b
2 min read
Haklistgen - Turns Any Junk Text Into A Usable Wordlist For Brute-Forcing
Haklistgen is an automated tool that aims to create a powerful custom wordlist for brute-forcing. All the words in this wordlist are turned into junk text into a usable wordlist. Haklistgen tool is developed in the Golang language and it's faster to use. It supports integrating with other tools like httpx, subfinder, anew, etc. Haklistgen tool is a
2 min read
WPS Office for Kali Linux
Kali Linux is one of the most favorable Operating Systems for Penetration Testing and Ethical Hacking. Several tools are offered by Kali Linux to test the Target application in terms of security perspective. Although Kali Linux has various tools for Testing purposes, there are no office productive applications for editing documents. In Windows OS w
5 min read
CrawlBox - Easy Way to Brute-force Web Directory
Directory brute force is used to find hidden and often forgotten directories on a site to try to compromise. Some various automated tools and scripts retrieve the status of the directory which is brute-forced from custom wordlists. CrawlBox tool is a Python language-based tool, which is the command line in use. CrawlBox tool is an advanced tool tha
4 min read
W3brute - Automatic Web Application Brute Force Attack Tool
Brute-Forcing is an automated process through which Usernames, Passwords can be detected by querying the possible credentials on the target domain login pages. We can also brute-force hidden files and directories on the target server by specifying the possible word list which contains the phrases that will be tested on the domain. This process save
3 min read
SubBrute – Tool For Subdomain Brute Force
SubBrute is a free and open-source tool available on GitHub. SubBrute uses DNS Scan for finding subdomains of the target domain. This feature of SubBrute provides an extra layer of anonymity for security researchers. This tool is free means you can download and use this tool free of cost. SubBrute is used for reconnaissance of subdomains. SubBrute
2 min read
Brutex - Open Source Tool for Brute Force Automation
Brutex is a free and open-source tool available on GitHub. This tool is basically made to make the work of penetration tester easier. This tool is a package of three different tools which are Nmap, Hydra, DNSenum. Once you start scanning your target using brutex tool the tool will start scanning using Nmap and after scanning, brutex will force all
1 min read
Brutespray - Port Scanning and Automated Brute Force Tool
Brute-Forcing is the technique of matching the credentials like Usernames, Passwords, OTPs for unauthenticated access to the target domain. The list of words are been tested against the target to get the exact credentials. All this process is done through automated tools. Brutespray is an automated tool that is used to perform brute-forcing for eve
3 min read
0xWPBF – WordPress Users Enumerate and Brute Force Attack
WordPress is a popular CMS which is been used by many web-based applications for providing the service to the end-users. WordPress CMS contains the version which is been updated due to resolved bugs and CVEs. The outdated version can make the Web-based Application vulnerable to cyber threats. Identification of Versions and detection of hidden files
2 min read
Blazy – Open Source Modern Login Brute-forcer
Brute-Forcing is the most lengthy password cracking process, but the Blazy tool is not just a brute-force tool, it can also check for CSRF (Cross-Site Request Forgery), Clickjacking, Cloudflare hosts, and even for WAF Vulnerabilities in the target application. Blazy tool is a multi-threading tool and consists of a good error detection system. Blazy
2 min read
How to use Hydra to Brute-Force SSH Connections?
Let's explore using Hydra to brute-force SSH. One of the most popular tools in a hacker's toolbox is Hydra. It is a great tool for brute force attacks, and you can use it both as a blue team to audit and test ssh passwords against popular password lists like rockyou.txt and crack station wordlists and as a red team to break into computers. What is
5 min read
Brute Force Attack in Metasploit
A Brute Force Attack is one of the most famous and widely known types of cyber attack out there. a brute force attack is a type of attack that uses a trial-and-error method to guess login credentials, and encryption keys, or find a hidden webpage. If someone repeatedly and unsuccessfully tries to log in to an account or network, it appears to be a
7 min read
Difference Between Arch Linux and Kali Linux
Arch Linux is an open-source Linux-based Operating System that is freely available for use. It belongs to the Pacman-based Linux family. It is a light weighted OS for daily use and could even be used by professionals. It was first released in March 2002. It is a beginner-friendly Linux Operating System. Features of Arch Linux: Minimalist approach:
4 min read
Neofetch In Linux – Snap cool screenshots of your Linux
Neofetch is a fancy, highly customizable, and aesthetic command-line system information screenshot utility tool. Written in the Bash scripting language, it works inside a terminal window, on triggering up the command it by default displays the operating system, software, and hardware of your system on the right side of the column alongside an ASCII
4 min read
Exodus - Copy Linux Binaries From One Linux System
Exodus is an easy-to-implement program, that is used for bundling dependencies, and also helps to effectively copy Linux ELF binaries from one to another machine securely, and this is very handy when you don't have root access, also if there are issues in the availability of the packages in the Linux distribution, Commonly Server oriented distribut
3 min read
Basic CentOS Linux Commands in linux
CentOS is a free and open-source operating system that aims to provide a stable reliable, and community-supported platform for servers and other enterprise applications. In this article, we will be covering CentOS Linux basics commands and functions of CentOS and also we will look into the advanced commands. These CentOS commands allow you to manag
3 min read
Linux on Azure – Linux Distributions
Azure, the cloud computing platform from Microsoft, offers a playground for deploying and managing your Linux-based operating systems. Think of it as a canvas of boundless resources, security, and scalability, painted onto which you can unleash the boundless creativity and flexibility of Linux. This powerful synergy unlocks a world of opportunity,
10 min read
Linux Virtualization : Resource throttling using cgroups
In Linux Virtualization – Chroot Jail article, we discussed about kernel namespaces and process jailing. To understand this article, you may not need to read the earlier one, but I strongly suggest that you go through it once before diving into resource throttling. It should help tremendously in understanding what's going on. What are cgroups? cgro
9 min read
Kali Linux - Password Cracking Tool
Password cracking is a mechanism that is used in most of the parts of hacking. Exploitation uses it to exploit the applications by cracking their administrator or other account passwords, Information Gathering uses it when we have to get the social media or other accounts of the C.E.O. or other employees of the target organization, Wifi Hacking use
5 min read
select command in Linux with examples
select command in Linux is used to create a numbered menu from which a user can select an option. If the user enters a valid option then it executes the set of command written in select block and then ask again to enter a number, if a wrong option is entered it does nothing. If user enters nothing and simply press 'enter' the option menu gets print
1 min read
XSS-Freak - XSS Scanner Fully Written in Kali Linux
XSS or Cross-Site Scripting is the most emerging security flaw in Web Applications. When the arbitrary or malicious JavaScript is executed by the web application then it is said to be an XSS Vulnerable Website. There are various XSS Scanners through which we can detect the XSS on the target domain. XSS-Freak is an XSS Scanner developed in the Pytho
3 min read
Tracing memory usage in Linux
Memory is a critical resource in computing because its usage affects the performance and stability of a system. It's necessary to trace the memory usage of the system in order to determine the program that consumes all CPU resources or the program that is responsible for slowing down the activities of the CPU. Tracing memory usage also becomes nece
3 min read
How to install and configure Docker on Arch-based Linux Distributions(Manjaro) ?
In this article, we are going to see how to install and configure Docker on Arch-based Linux Distributions. Docker is an open-source containerization platform used for building, running, and managing applications in an isolated environment. A container is isolated from another and bundles its software, libraries, and configuration files. Containers
2 min read
atrm command in Linux with examples
atrm command is used to remove the specified jobs. To remove a job, its job number is passed in the command. A user can only delete jobs that belong to him. Only superuser can delete any job even if that belongs to another user. Syntax: atrm [-V] job [job...] Options: -V : Used to print the version number atrm -V job : Job number of the job which i
1 min read
expand Command in LINUX with examples
Whenever you work with files in LINUX there can be a situation when you are stuck with a file containing many tabs and whatever you need to do with a file requires that file with no tabs but with spaces. In this situation, the task looks quite simple if you are dealing with a small file but what if the file you are dealing with is very big or you n
3 min read
Internal and External Commands in Linux
The UNIX system is command-based i.e things happen because of the commands that you key in. All UNIX commands are seldom more than four characters long. They are grouped into two categories: Internal Commands : Commands which are built into the shell. For all the shell built-in commands, execution of the same is fast in the sense that the shell doe
4 min read
Cool Custom Welcome Messages on Linux terminal
There is a Linux hack which can be used to display a custom message on the terminal every time we open it. This can be done by manipulating the .bashrc shell script. What is .bashrc ? It is a shell script that Bash runs whenever it is started interactively. You can put any command in that file that you could type at the command prompt. Steps on how
3 min read
Useful and time saving bash commands in Linux
There are many useful bash scripts that can make things easier. Many things can be done just using the terminal. Here is a list of some of such useful bash scripts through which we can do things that cannot be done manually. 1. Counting the number of files(or directory) in a given directory: Go to the directory in which you want to count the number
3 min read
rcp Command in Linux with examples
There comes a time while using LINUX when there is a need to copy some information stored in a file to another computer. This can be done simply using rcp command line utility . Obviously there exists some other methods to complete the above mentioned task which are more secure (like scp or rsync) but this command lets you do this in the simple way
4 min read
Process Control Commands in Unix/Linux
Process control commands in Unix are: bg - put suspended process into background fg - bring process into foreground jobs - list processes bg Command : bg is a process control command that resumes suspended process while keeping them running in the background. User can run a job in the background by adding a "&amp;" symbol at the end of the command.
3 min read
Article Tags :