incredible! Python crawling with Wi-Fi, traveled the world can not even

Today, from the principle of WiFi connectivity, combined with the code to find out more of how to use python to crack WiFi .

Python really is omnipotent, simply because there are a large number of Python libraries, countless ready-made wheels allow you to do many, many applications are very convenient. wifi with our lives, everywhere.

01. How to connect wifi

First, our computer is how to connect wifi it? Take our laptops, our notebook computer has a wireless network card, as shown below:

incredible!  Python crawling with Wi-Fi, traveled the world can not even

When we connect WiFi, wireless card will automatically help us to scan the WiFi signal nearby, and will return some information WiFi signal, including the network's name (SSID), signal strength, encryption and authentication methods. When this information during our operations is invisible. When we want to specify WiFi connection, we need to be the role of certification, the certification is to protect access wifi, pay attention to password authentication is not our input here, but we enter the password is encrypted way.

That is, we enter the amount WiFi password, one way encrypted transmission. We commonly used method is WPA or WPA2PSK, mainly for personal or family networks, is not very high security requirements of the user. We will certainly encounter many problems when I learn python, as well as the pursuit of new technologies, here's what we recommend Python resource sharing Qiuqiu skirt: There are installation packages within 855,408,893, learning videos. Here is a gathering place for learners Python, zero-based, advanced, are welcome daily to share some of the learning method and the need to pay attention to small details.

As shown below.

incredible!  Python crawling with Wi-Fi, traveled the world can not even

incredible!  Python crawling with Wi-Fi, traveled the world can not even

When we enter a password, you'll be prompted to tell us some information about hints, tips of this information is in fact designated certified encryption. We click "Yes", the fun you can get online.

02. analogue access using pywifi

pywifi This library is required in advance by a third-party pip install it, and then we use pywifi module to simulate this process. First, the computer determines whether the state is a WiFi connection, the code as shown in FIG.

incredible!  Python crawling with Wi-Fi, traveled the world can not even

The first is to create a pywifi of the object, and then assign the information to computer wireless network card ifaces. Then determines ifaces state (States) is connected to the computer to know the wireless network.

We mentioned above wireless card returns information of the wireless signal, then we take a look at the output we scan wireless signal in the vicinity and their information.

incredible!  Python crawling with Wi-Fi, traveled the world can not even

As shown in FIG left, we output the name of the wireless signal and its corresponding encryption. The second code data is actually one of the configuration file. Here we profile can be understood as a radio signal information stored in the file of our connection, which contains the name of the wireless signal, password, authentication and so forth.

03. hack wifi password

Next, we will use pywifi to operate to crack WiFi passwords. We modeled the process of manually entering a password, and verify if the password is wrong, we would not stop more slippery password test until it succeeds. Part of the code is as follows:

incredible!  Python crawling with Wi-Fi, traveled the world can not even

Program, we first of all from the console reads the amount we want to crack WiFi name and password for this in good WiFi, stop reading WiFi password from our pre-set, and then configure the profile information, including the name of WiFi certification mode and WiFi password. If the password is wrong, then it continues to replace the WiFi password verification, validation until the correct date. The figure is the result of an experiment.

incredible!  Python crawling with Wi-Fi, traveled the world can not even

The break above method is also called brute force method is very time-consuming and not always correct. But this is a trial and error process, if successful can not say.

Of course, this brute needs to have a sample database, such as hundreds of thousands of samples to crack the code. By so plenty of time, can be used to try. This article is from a technical point of view to explain how to use python to play WiFi, learn Pywifi the library! I do not recommend any destructive operations and any improper behavior.

Guess you like

Origin blog.51cto.com/14445003/2419991