Reader small image

You're reading from  Python Ethical Hacking from Scratch

Product typeBook
Published inJun 2021
Reading LevelIntermediate
PublisherPackt
ISBN-139781838829506
Edition1st Edition
Languages
Right arrow
Author (1)
Fahad Ali Sarwar
Fahad Ali Sarwar
author image
Fahad Ali Sarwar

Fahad has been teaching ethical hacking and penetration testing on different online platforms with a solid student base. He's passionate about cybersecurity and ethical hacking tool development. Fahad is particularly enthusiastic about Python for its simplicity and ease of use and in this book he has chosen it as a language of preference due to its features.
Read more about Fahad Ali Sarwar

Right arrow

Stealing passwords

In this section, we will see how we can steal Wi-Fi passwords stored on the victim PC. Note that we have already discussed how to execute commands on a Windows machine using our hacker program. We can take advantage of this program to retrieve Wi-Fi passwords. Note that you may not have a Wi-Fi driver installed on your virtual OS. I have this driver installed. If you want, you can use your host PC for this purpose.

In order to access the stored access points on the victim machine, you need to run the following command:

netsh wlan show profiles

If you run this command in your Command Prompt, you will see all the access points you have connected with your PC. But we want to access the passwords, not the access points. Here is the screenshot for my PC:

Figure 8.20 – Connected access points

In order to get the passwords, you have to write the name of the access point and give an additional parameter, key=clear, to the command...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Python Ethical Hacking from Scratch
Published in: Jun 2021Publisher: PacktISBN-13: 9781838829506

Author (1)

author image
Fahad Ali Sarwar

Fahad has been teaching ethical hacking and penetration testing on different online platforms with a solid student base. He's passionate about cybersecurity and ethical hacking tool development. Fahad is particularly enthusiastic about Python for its simplicity and ease of use and in this book he has chosen it as a language of preference due to its features.
Read more about Fahad Ali Sarwar