> For the complete documentation index, see [llms.txt](https://hackzzz.gitbook.io/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hackzzz.gitbook.io/welcome/everything-about-and-notes/wireless-pentesting/evil-twin-attacks.md).

# Evil Twin Attacks

## Evil Twin Attack

* **An evil twin attack takes place when an attacker sets up a fake Wi-Fi access point hoping that users will connect to it instead of a legitimate one.**&#x20;
* When users connect to this access point, all the data they share with the network passes through a server controlled by the attacker.
* Can be used to obtain credentials about social media, Access Points and web pages that we create in order to trick the user to give us.

### Evil Twin attack (Captive Portal)

<figure><img src="/files/tbFpe3MD5HAj3GcXtLvU" alt=""><figcaption></figcaption></figure>

* In this example we are using **airgeddon**.
* Go for the option number **7**.

<figure><img src="/files/Fypsc5ztmzfUbz8UxudI" alt=""><figcaption></figcaption></figure>

* You can select various options depending on what your **objective/expectations** are.
* In this case to make a captive portal in order to get the ap credentials, choose option number **9**.

<figure><img src="/files/AVdkXWUSGwXiOYHF2mTn" alt=""><figcaption></figcaption></figure>

* After that, the script will let you choose what ap to attack to get the **WPA handshake** and start creating the fake ap.

<figure><img src="/files/nSkhuwgz6x4JzekKJaDw" alt=""><figcaption></figcaption></figure>

* Here I put 20 seconds to the script to get the handshake.

<figure><img src="/files/BTdmP9hthnnp9vhj3VDo" alt=""><figcaption></figcaption></figure>

* Once You have the handshake, we can start creating our ap.

<figure><img src="/files/p7aeGQcNNunwp9kVggF3" alt=""><figcaption></figcaption></figure>

* Choose the language you prefer in this part.

<figure><img src="/files/mlGK96Rtt2UsYRx8H8RG" alt=""><figcaption></figcaption></figure>

* Now once we finish the ap configuration will be seen that 5 windows pops up.
* The terminal that will contain the Wi-Fi password will be that one that says Control.

<figure><img src="/files/bHOl9tUXnrzWOR2is3vf" alt=""><figcaption></figcaption></figure>

* Here I put the password pretending to be a victim, you're seen that we get it right and fast using an Evil Twin Attack.&#x20;

{% embed url="<https://github.com/v1s1t0r1sh3r3/airgeddon>" %}

### Tools to make a Evil Twin Attack

{% embed url="<https://github.com/P0cL4bs/wifipumpkin3>" %}

{% embed url="<https://github.com/FluxionNetwork/fluxion>" %}
