Create your own Wi-fi Password Stealer using Python

Aditya Sadana
3 min readJun 28, 2020

--

Ever wondered if you can have a tool which gets you all the information of all the wireless networks (including their passwords) ever connected on a windows machine to your email?

Well if this is so, then here’s the trick. There’s no rocket science in this trick. I would tell you a way so that you can get all the information of every wireless network ever connected on a windows machine to your hotmail/outlook account.

Note that this trick would only work if the target is a windows machine and you have a outlook/hotmail account. Also you must have a basic knowledge of Python.

So, lets get started.
First import the two python modules i.e subprocess and os by the command:

Subprocess is a module that works like a command prompt and the command you give to it in form of string can get executed in the target computer’s command prompt. After this you would need the python code that would install and import a python module that is not available by default in python to do so, write the following code after above line:

This is a module that supports sending emails through python. Next, we would make a function that would send the information we aquire through a email to us using smtplib module by using the code:

This module starts the python server for making an email and sending to a person. Next we would be getting the names of all the wireless networks stored in machine using the subprocess module. The array a will be containing the names of networks.

Now, if you print out a in the above code, you would see there are some other words too which we would not need so we will be extracting the useful information from array a to another array d with the help of code below.

Now, as we have stored names of all wireless networks now we would use the subprocess module to extract the information of each and every wireless network including their password and sending it to your hotmail account.

If you have noticed i have used result=b’ ‘. This is because if you have to send a message through email using python its type should be bytes. Python cannot send message encoded as string to your email.
Replace the arguments of send mail with your emailid and password. Thats it, your code is ready. You can now use it to target any windows machine and extract all the information of wireless networks stored on the target.
You can get the full code on my github account. Follow the link:

For such more interesting programs you can visit my personal Website:

Have a nice Day :)

--

--

Aditya Sadana
0 Followers

To know more about me and find some interesting Technical projects navigate to: https://sadanaditya.web.app