Why do programmers not lack the network? Three steps to teach you to crack WiFi password, simple enough!

Step 1:
We need to know what to use. A module in Python, pywifi, can be installed directly with pip install pywifi. I saw that some people said that it can't be used, but I tried it and it's no problem. If any of you If you encounter problems, you can leave a message in the comment area or privately chat with me, I am very happy to help you solve the problem.

Step 2:
We need to know whether we are connected to WiFi or not, how do we see it?

picture

It's time to disconnect

The editor also just learned it today, so I tried it. Ifaces.status() returns a connection status, if it is not connected, it returns 0, and if it is connected, it returns 4. The latter const.IFACE_CONNECTED is a constant in this module. It is used to judge the connection status, which is 4.

Step 3:
We need to find a way to connect our WiFi, so how do we need to do it?

Just add a little code before the if statement of the code we just wrote. These are the processes of connecting to WiFi, which seem to be very troublesome. In fact, if you look at its source code, you will find that it is very simple (it only involves the underlying The place is not easy to understand, but we don't need to touch the bottom layer)

picture

 

Connected to WiFi successfully

Step 4:
It seems to be exposed just now, I just asked my roommate, is it also for the demonstration effect, don't worry~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~

In addition, I originally used 5 seconds, but I found that 1 second is enough

Well, now design brute force cracking (can only crack simple ones, if complex passwords need to use a password table, such as a rainbow table and the like)
 

picture

completed code

This code is completed, but the efficiency is not good. The main reason is not that the password is too strong, but that we always have to sleep for one second. Today's explanation is here, and tomorrow I will change the efficiency problem (in fact, you only need the thread to come The judgment is very simple, you can try it yourself), and make it a ready-to-use finished product tomorrow.

  *If you can use it, you can take it directly. In my QQ technical exchange group, you can take it away by yourself. The group number is 605018913

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324357357&siteId=291194637