Hack A Wpa2 Wifi Using Mac
Yesterday, my friend Victor wanted to crack a wifi network (his, of course) using his MacBook Pro.
I told him to use the excellent VirtualBox images of Kali Linux from Offensive Security and aircrack-ng.
Just for fun, I have coded a simple python script which tries different patterns of numbers and or characters to hack a wifi network. I am using the mac command “networksetup” to log onto wireless network but simply you can replace it with the corresponding command on windows or linux. In this tutorial I will tell you how to crack wpa/wpa2 wi-fi in kali linux using aircrack-ng. To do this, first you should install kalinux or you can use live kali linux. To crack Wi-Fi, first, you need a computer with kali linux and a wireless card which supports monitor/injection mode.
I had just forgotten that:
- Using advanced wireless features is impossible from a virtual machine
- Even if he used Kali Linux with a dual boot, installing the wireless drivers to make it work with the airport card is tiresome.
- Most (not
airmon-ng
) aircrack-ng tools can be installed on macOS with MacPorts, butairodump-ng
andaireplay-ng
crash.
So PLEASE, if you want to do other advanced networking things than network sniffing or what is described in this article, do yourself a favour and buy an USB adapter to use with the virtual machine.
There is a list on the website of aircrack-ng
, and I think the Alfa AWUS051NH v2 is great.Some people say it is expensive, but last time I checked on Google Shopping, it cost less than half an Apple mouse.
There are 3 steps:
- Identify the target acces point: name (= BSSID), MAC address (= SSID) and channel (~ radio frequency)
- Sniff the channel in monitor mode to retrieve:
- a beacon (easy)
- a handshake (= four-way handshake), or some frames of it (hard)
- Crack the password using the dump
What makes the retrieval of the handshake hard is that it appears only when somebody connects to the access point.
The good news is that you can deauthentificate people from the wifi network - it’s called wifi jamming and it’s useful to impress a girl and piss off people at Starbucks.When they reconnect, they re-send the handshake. That adds a Deauth step.
“Install”
Scan
It saves the .cap
capture file and displays the path.
If you don’t have the beacon or the handshake, it will fail accordingly.
For wordlists, see below.
As I said, aireplay-ng
doesn’t work on a MacBook Pro.The catch is that aireplay-ng
can do a lot of other things besides deauth attacks.
You might read that airport cards do not support packet injection, but packet injections are for WEP attacks and nobody uses WEP anymore. We only want to send some deauthentification frames.
Use JamWiFi. A ready-to-use application is provided there.
In fact, you can indentify the target with it too, and it has a really nice GUI.
Once you have selected the access point, you can deauth one or multiple users. Stop after about 50 “Deauths”, or else the persons might have trouble to reconnect during several minutes.
It might not work it you are too far from the target as your airport card is far less powerful than the router.
Using airport
presents some issues. You cannot know if you got the beacon and the handshake until you stop the capture and try with aircrack-ng
.
You capture a lot of unuseful packets too.
app to reflect iphone on mac wireless Using tcpdump
is more efficient.
When you launch those lines, the first tcpdump
easily captures a beacon and the second waits for the handshake.
Use JamWiFi to deauth some users, and when tcpdump
shows you it got 4 frames or more, Ctrl-C. It appears you can use less that 4 frames, but it depends on the frames you got (for instance 1,2 or 2,3 are sufficient). Anyway you should normally get at least 4. If nothing shows, try to deauth another user.
Now you have everything in capture.cap
. You can also run aircrack-ng
on it.
Like aireplay-ng
, aircrack-ng
offers so many features that it cannot be the best in everything.
We can really speed up the process by using hashcat.
Install with brew
Convert with cap2hccapx
hashcat
doesn’t take cap files, only hccapx files.
Just install hashcat-utils and use cap2hccapx
Alternatively, use this online tool.
Crack
This page provides some examples.
To use with a dictionnary:
You have a lot of other options, like brute force:
Refer to the documentation fot more patterns.
Speed
hashcat
works on the GPU.
On my MacBook Pro, it yields a performance of 5kH/s: it tests 5000 passwords in a second.
On a Tesla K20m, the speed is 75kH/s. I managed to crack the 5 last lowercase letters of a wifi password in about 1 minute (26**5 // 75000 = 158 seconds to test them all).
We can see here that a GTX 1080 breaks 400kH/s.
I recommend:
For more efficiency, target the networks with silly names (good examples are “mozart”, “I love cats”, “Harry and Sally”), and avoid the ones called “National Security Agency”, “sysadmin” and “sup3r h4x0r”.
To find a password, you have to be lucky and have a good idea of its shape.
A lot of default wifi passwords are composed of 8 or 10 hexadecimal digits.
In average (worst case divided by 2) and according to the above benchmark, with a GTX 1080:
- 8 hexadecimal characters take 90 minutes.
- 10 hexadecimal characters take 16 days.
- 12 hexadecimal characters take 11 years.
If you only want free wifi, just do MAC spoofing on a hotspot that uses web login.
How to Hack Wi-Fi Password Using CMD |
Wi-Fi is the best and the easiest method to connect with the internet. Here in this article, I am going to tell you how you can hack Wi-Fi password of your friends or neighbors easily using CMD.
CMD stands for Command Prompt and Command Prompt is the reliable way to check security issues with any device related to computer. CMD was also being used an Operating System before the development of Microsoft Windows that system was called DOS.
If you look back in the history of hacking the most popular hackers also used to use CMD for hacking and cracking some big companies. But now the trend has been changing. CMD has the same power but the companies have become more and more secure so it’s not easy to hack anything using CMD now, but fortunately you can still hack Wi-Fi passwords using CMD.CMD (Command Prompt) cannot hack all kind of networks but it is still able to hack WEP Wi-Fi networks easily and the best thing is if your victim network is using an old model of modem and the encryption of his network is WEP then this hack can work 100% and I give you guarantee that you will be connected to a Wi-Fi network in next 5 minutes. Below is some information which you should know before starting this hack.What are WEP and WPA?
WEP stands for Wired Equivalent Privacy. It is used to set security key on wireless networks like Wi-Fi networks so they cannot be accessed by unauthorized persons, this encryption method was introduced in 1999 and it used 128 and 256-bit encryption to secure the passwords. Hacking into 256-bit encryption is not easy that’s why 128 bit is super easy and users can easily hack Wi-Fi passwords which have old modems because they use 128-bit encryption method.
WPA stands for Wireless Protected Access. It is also used to implement a security key on wireless devices but this encryption is only 256 bit so it is not easy to access passwords using CMD from this method, but there are certain methods which if followed can hack this encryption method, that’s why in 2006 the upgraded version of WPA was introduced and was called as WPA2. WPA2 Also used the same encryption method for securing your wireless networks but it is more secure and easy than any other. If you want to secure your wireless network then you should use this encryption method because it is the best then any other.
Hack A Wpa2 Wifi Using Mac Pro
Disclaimer: This article is just for the sake of information that how someone can hack your Wi-Fi password easily using CMD (Command Prompt), I don’t mean that you hack someone’s Wi-Fi network using this technique. If you do anything illegal then the admin of this blog will not be held responsible for any action that may be taken on you. So do everything on your own behalf.
How to Hack Wi-Fi Password Using CMD
We have introduced you a lot about hacking Wi-Fi password using CMD below are some simple and easy to implement steps which you can follow to hack Wi-Fi passwords. But remember I do not give you guarantee that this hack will work for you.
First of all, you need to open CMD as this method is based on CMD so you should open it first with administrator’s rights. Go to start, then All Programs, then accessories, then right click on CMD icon and select run as Administrator. You can also use Windows + R keys to open CMD but it may not open in administrator’s mode.
Now turn on the Wi-Fi adapter of your laptop and look is there any signal present, if yes then move towards the command prompt and paste below command.
The purpose of this command is to display the list of all available Wi-Fi networks on your Command Prompt window.
Then type the below command by replacing the wifi name with your desired network which you want to hack.
Wpa2 Wifi Password
Wait for a single second and pray for the hacking and that’s it you have successfully hacked the Wi-Fi network using Command Prompt.
But remember most of you will be failed because some routers are powerful enough that you cannot hack them using Command Prompt you need some other methods to hack them.Final Words
This method is just for knowledge purpose. Our aim is not to teach wrong activities to students. So, we suggest you to if you want to use this method just for educational purpose, then go for it. Otherwise never use this method. Many people want internet connection but because of low budget, they can’t afford the fee of internet but they want internet badly. So, by implementing these steps, you can hack any of your neighbor’s WiFi with your system. We never guaranty that this method works always perfect. Some routers can’t be hacked because people are aware from these techniques now and they keep strong privacy in their routers but still you can try it. A lot of people want to hack wifi so here is the method. There is no any other proper method. Basically internet becomes the most important part of our daily life and we can’t live without using it. Everyone use social media through internet. Many people are working on internet and they are earning a good income. There are other many benefits of using it which we may not explain here because of time. Make sure you have read the guide properly because if you leave any of the above step, you’ll fail and your time will be waste. So, first learn and understand each and everything and then start apply this method. You can share this post with your loved ones and let them also enjoy the hacking. If you have any question or you want to appreciate our efforts, you can tell us in the comment section.
More from my site
Hi. Training report pdf. This is Faizan Gul. I am an Engineering Student and tech enthusiast. I love to practice new things and then write about them. In this blog, i would be writing about how to tech guides, tricks and tips and Tech Gadgets Reviews.