Blog

man-in-middle-attack.jpg

Creating rogue wifi AP using wifi-pumpkin + bettercap and performing SSL Man in the middle attack (MITM)

In my laptop I have two wifi interfaces wlan0 and wlan1. I am using wlan1 to create rogue AP and wlan0 is connected to internet which will be ultimately used to provide internet connectivity to rogue AP. You can also use ethernet interface to provide internet connectivity.

 

Select the wifi interface using which you want to create fake AP and click on Start Access Point, you can leave all the remaining values to default. This will create the fake access point, also configures dhcp server to assign IPs, launches dns2proxy to poison DNS.

 

Even this minimal setup is ready to perform SSL MITM by downgrading the HTTPS traffic to HTTP using sslstrip. For the case where client knows it has to connect to HTTPS, we will be using bettercap which replaces certificates on place of downgrading from HTTPS to HTTP.

To launch bettercap:

sudo bettercap -T 10.0.0.20 –interface wlan1 –no-spoofing –no-discovery –proxy –proxy-port 80 –proxy-https –proxy-https-port 443 -P POST

Now all the HTTP and HTTPS traffic will pass through bettercap and original certificates will be replaced with self signed certificate. The CA certificate used by bettercap(bettercap-ca.pem) can be found in ~/.bettercap folder. You can also install this CA certificate on victim machine’s trusted CA store to disable the self signed certificate error.

Above process helps in creating rogue wifi AP using wifi-pumpkin + bettercap and performing SSL Man in the middle attack (MITM). Below is a snapshot of bettercap decrypting traffic of a banking software.

adminCreating rogue wifi AP using wifi-pumpkin + bettercap and performing SSL Man in the middle attack (MITM)
Share this post

Join the conversation

Related Posts