Batch WI-FI Brute Forcer
This project is based upon the trick that, how to hack WI-FI with CMD. The main purpose behind, creating wifi hacking tool with cmd tool is to make everyone aware that how easy it is to break a simple password. And, motivate them to keep some complex passwords – to keep them protected against it.
ABOUT PASSWORD CRACKING WITH CMD
Some of you may know the concept of Brute Forcing, but I will explain it for the ones who don’t know. In case, you are already familiar with it – you are free to skip this part (although, you will definitely learn something new from it).
There are 3 types of attacks:
1) BRUTE FORCE ATTACK FOR PASSWORD CRACKING
This type of attacks are simply try all possible combinations. And, it seems weird and impractical at first. But, as computers can do billion of calculations per second – so, it is not that much impractical to try out everything. The only problem is – it needs time; HELL LOT OF TIME!
2) DICTIONARY ATTACK
In this type of password hacking attack – again we try all passwords, but this time they are stored in a text file that you have given to the program. So, the program only refers to a few password combinations to verify the accessibility of the network.
3) THE MASKED ATTACK
In masked attack; we apply a bit different approach – Here the concept is to try all possible combinations in a way programmer defines. And, in this attack hackers combine some social engineering to make it better and less hard for the dumb computer.
HOW TO HACK WIFI WITH CMD? – THE ALGORITHM
So, basically – In this part, you’ll know how it is possible to hack wifi password with CMD and it is not another fake trick to fool you guys! Let’s have a look at the basic parts of this main project:
WI-FI Brute Forcer has 3 main parts:
- Interface Detection and Selection
- WI-FI Scanning
Detecting Interfaces and Selection
netsh wlan show interfaces
With the help of built-in executable netsh.exe, so many things are possible. Program detects your physical interfaces with the command above but not by just simply running it, by a very advanced for loop which batch scripts provide that is something I love about CMD(Versatile for loops). With this for loop, interfaces are being enumerated and stored inside the global variables. Selection is up to you from this time if you have multiple interfaces. Program will choose the only option if you have just 1.
netsh wlan show networks
Netsh means so much if you consider networking with CMD. Above command is technically shows us which networks can be seen from which interfaces. The tricky loops of CMD come to play again. Algorithm enumerates every network and stores them in a file which will be printed onto the screen.
netsh wlan connect name="<SSID>" interface="<WI-FI>"
A simple command turned a script into a hacking machine. The command above just connects to a network if you use it singular. The trick under the hood is using it in a loop until a sign of connection occurs between you and the router. The program checks the connection status while running the command above so if you are connected, than the attack is successful.
How Password Lists Are Being Used Inside The Script?
Short answer: XML and String Substitution.
The method which Windows uses to connect a network is using an XML file to store SSIDs and passwords. The program is using a modified XML file to create custom importable XML files. There are placeholder texts where normal SSIDs and passwords should be.
When you select a network from a scan result, the script changes the “changethistitle” text with the selection of yours as you can see above. Then a big loop of password usage starts. The script takes the passwords from the passlist.txt one by one and basically changes the “changethiskey” text with this password. Then the script imports the XML file with CMD command below.
netsh wlan add profile filename=attempt.xml
With this import, now we are ready to try connecting. Rest of it is the job of connection command of netsh.
Brute Forcer In Action – From The Creater: TUX
THAT EXTRA MILE – IS ALWAYS GOOD!
I have provided you a key combinator app that can create random passwords with the information you gave.