Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Give the Evil Twin Internet Access.
- Thanks to KaliTutorials for howto.
- ow we need to provide internet access to the fake AP. This can be done in various ways. In this tutorial, we will consider that we have an interface x0 which has internet connectivity. Now, if you are connected to net via wireless, replace x0 with wlan1 or wlan0, a 3G modem will show up as ppp0. Nevertheless, you just have to know which interface is providing you with internet, and you can route the internet access to your client.
- Interfaces
- x0 - This has internet access
- at0 - This is create by airbase-ng (wired face of the wireless access point). If you can somehow give internet access to at0, then the clients connected to your fake wireless network can connect to the net.
- evil - This is an interface that we will create, whose job will be to actually bridge the networks.
- Creating evil
- We will use Bridge control utility provided by Kali, brctl. Execute the following code-
- brctl addbr evil
- This will create the bridge. Now we have to specify which two interfaces have to be bridged-
- brctl addif evil x0
- brctl addif evil at0
- We can assign an IP to the interfaces and bring them up using-
- ifconfig x0 0.0.0.0 up
- ifconfig at0 0.0.0.0 up
- Also bring up the evil interface (the interfaces aren't always up by default so we have to do this many times)
- ifconfig evil up
- Now to auto configure all the complicated DHCP settings, we'll use dhclient
- dhclient3 evil &
- Finally, all the configurations have been completed. You can execute ifconfig and see the results, which will show you all the interfaces you have created.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement