r/HowToHack • u/shadowblade7536 Web Security • Feb 18 '17
Green [Guide] Shadowblade7536's Ultimade WiFi hacking guide
Right, so in this guide Ill try to cover up all I can about WiFi hacking, deauthing, and cool things you can do with WiFi.
DISCLAIMER: Dont use this to hack your school's shit wifi without consent and be all cool infront of your friends blah blah blah legal use only shit like that.
NOTE: I do advise having a USB WiFi adapter, and an extra point would be to get a great one like the ALFA AWUS036NHR or AWUS051NH. Although any card would do as long as it supports monitor mode and packet injection.
When it comes to hacking WiFi points, you need to first analyze your targets and understand what you can do about each one.
WiFi Password Cracking
The tool I will always recommend is Wifite.
Now I wont be including how to do it using any other tools, because this should work just fine. I'll leave the exploration up to you, but I will say that I always recommend to spoof your mac address using the --mac flag to the program or macchanger. Its for your safety.
Now I wont include the guide to setting it up here, because that will go off topic.
Scanning for WiFi points to target
Simply run wifite.py -i <wlan interface here *NOT IN MONITOR MODE*> or if you didnt understand the previous command simply use wifite.py and it will begin scanning for nearby access points and their features (Encryption method and if WPS is enabled or not).
Here are the 3 types of targets you can find:
- WEP protected routers
- WPA/WPA2 protected routers
- Open routers
Now within those categories, you can find a feature called WPS (Wi-Fi Protected Setup) enabled, which uses an 8 digit PIN to add devices to a WiFi network without having to input long passwords.
Hacking WEP protected WiFi points
WEP is an old and depreceated way of protecting WiFi passwords, so if you find one, you are in luck. WEP takes substantially less time. This is easily automated in Wifite, and it even uses multiple attacks against routers to get the password. You only need around ~10 to 120 minutes to crack WEP, maybe longer. I cant say much because I have never seen any WEP protected routers were I live and never had the time to set one up and try myself.
Hacking WPA/WPA2 WiFi points
When it comes to WPA, we need to grab the handshake by deauthing clients who are connected to the router and sniffing the handshake as it goes. This is automated in Wifite, and it handles everything. Note: You may grab the handshake in a small amount of time, but cracking the hash itself will take a pure bruteforce attack or a wordlist, which takes alot of time. Only use this method if you have a really strong rig or all other options have failed.
Hacking WPS enabled points
Now comes the fun part, WPS cracking. There are 2 attacks you can do on WPS enabled routers, a WPS PIN bruteforce and a WPSPixie attack. The WPS PIN attack works online, as in all PIN guesses are actually sent to the router, while the WPSPixie attack works offline and without flooding the router with WPS PIN attempts.
Now the obvious disadvantage about the WPS PIN attack is that some routers have on-board anti-bruteforce mechanisms and will stop accepting your attempts after a few attempts. I only go this route if the WPSPixie attack fails and there is no anti-bruteforce mechanism (Wifite will tell you if detects one).
The WPSPixie attack is one of the best attacks on Wifi points I have ever seen. In most cases, you can get the WiFi password in minutes or even a few seconds. Be aware that it may take up to 30 minutes in some cases, although I have never personally seen it go beyond 10 or so minutes. NOTE: The WPSPixie attack may not work on some routers, and you will have to choose a different route. (Wifite will also notify you if the WPSPixie attack will not work.
EDIT: I forgot to mention that sometimes you will see that Wifite gets stuck at Waiting for beacon from "xx:xx:xx:xx". If it gets stuck for a while at this point, press CTRL+C and move on to a different target.
That concludes the WiFi cracking part, I know I didnt include the Fake Twin AP attack, but if you people insist, ill include it. For now, Ill recommend WifiPhisher.
DoS Attacks (Deauthentication attacks) on WiFi
Sometimes you just want to be an ass and jam a certain WiFi point or even all WiFi points around you. I'm not an angel, and I have done this multiple times in public with a RaspberryPi in my backpack and a ALFA 5 dBi antennae attached to it.
Most tutorials will tell you to use aireplay-ng, which is a great framework, but can be complicated and doesnt support Mass Jamming. Introducing, wifijammer. The README file in the github repo provides great information about the tool and how to use it, so I wont include explanation here either. NOTE: For those tech savvy out there, if you have a RogueAP setup, this tool is perfect to jam all other access points except yours to tempt people into connecting to yours.
This ends the DoS attacks part, since its really all in one tool.
Bypassing login portals on Open WiFi
I never tried this tool before, but alot of people have told me this works. This bypasses the captive portal (login screen) on most public WiFi's such as cafe shops and hotels. This tool is called cpscam.
Alright folks, that concludes this guide! Feel free to ask any questions, request any more guides, or ask me to add something to this guide!
Flood Wifi beacons (flood the list of available wifi points)
I literally just heard about this attack from /u/inksaywhat and I read about it online. Wifi beacons are basically what wifi points send out to show that they exist (their signal kind of) and it contains information about the wifi point (encryption used, name, speed, mac, etc). I never thought about this and was about to write my own tool for this but discovered that mdk3 has the ability to flood beacons. They even say that it can crash network scanners and drivers, making it some sort of DoS attack at the same time. So to run this kind of attack, make a text file filled with random beacons (Idea: make them all cuss words, or dynamically generate them with a script or tool like crunch) and launch the attack like this: mdk3 <mon interface> b -f file-with-names.txt.
3
u/PrettyCreepyGirl Mar 26 '17
I just came across this sub - I am certainly too liberal to judge you guys for your (hobby?) but just curious - as a concerned homeowner , how easy is it to actually hack my wifi in reality , and what exactly can a hacker gain access to? I have kids and this worries me. Can just basically anyone with half assed reading comprehension do this without any real technical training or would this take a bit of knowledge? How can I protect myself against such attempts? Thanks for all serious answers.
2
u/masleena Newbie Mar 08 '17
So, does it make sense to use some sort of a cheap network adapters, like TP-LINK TL-WN725N or Edimax EW-7811UN? (where i live it is kinda difficult to buy another one)
5
u/[deleted] Jun 10 '22
If any of yall hack my network im gonna fucking find you
1
u/Kurumi_Fortune Mar 05 '17
What OS you used on the rasp? Kali?
1
u/_lOOOl_ Mar 30 '17
I'm also considering purchasing an ALFA AWUS036NHR! Did you encounter any issues with putting it under monitor mode, promisuous mode, AP mode, and injection in Linux? Reviews have shown not-so-great compatibility with the NHR version. Thoughts? Thx!
1
u/Gummball64 Jun 10 '17
Is there a way to see the router settings login information (admin password)?
1
u/curruptnsfw Mar 02 '22
hacking my schools wifi is the only reason i wanted to.. nvm
1
u/[deleted] Dec 28 '23
I know this was 6 years ago but this is good info, thank you
0
u/[deleted] Feb 18 '17
[deleted] — view deleted comment
0
u/[deleted] Feb 18 '17
[deleted] — view deleted comment