Advertisement
Guest User

Give internet access from evil twin

a guest
Aug 27th, 2015
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. Give the Evil Twin Internet Access.
  2. Thanks to KaliTutorials for howto.
  3.  
  4. 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.
  5. Interfaces
  6.  
  7. x0 - This has internet access
  8. 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.
  9. evil - This is an interface that we will create, whose job will be to actually bridge the networks.
  10.  
  11. Creating evil
  12.  
  13. We will use Bridge control utility provided by Kali, brctl. Execute the following code-
  14.  
  15. brctl addbr evil
  16.  
  17. This will create the bridge. Now we have to specify which two interfaces have to be bridged-
  18.  
  19. brctl addif evil x0
  20.  
  21. brctl addif evil at0
  22.  
  23. We can assign an IP to the interfaces and bring them up using-
  24.  
  25. ifconfig x0 0.0.0.0 up
  26.  
  27. ifconfig at0 0.0.0.0 up
  28.  
  29. Also bring up the evil interface (the interfaces aren't always up by default so we have to do this many times)
  30.  
  31. ifconfig evil up
  32.  
  33. Now to auto configure all the complicated DHCP settings, we'll use dhclient
  34.  
  35. dhclient3 evil &
  36.  
  37. 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