Wednesday, June 24, 2020

How to get the WiFi password from a saved profile on Windows

Sometime you forgot the WiFi password for some place you have visited, and you do have a saved profile on your Windows laptop. With a couple of commands, you can get it. First, open a command prompt. Run the following command to show a list of saved profiles.

netsh wlan show profiles

The list may look like below.

Profiles on interface Wi-Fi:

Group policy profiles (read only)

User profiles
    All User Profile     : My Home
    All User Profile     : Guest

Say, you want to get the password for "My Home". Add the profile name to the end of the previous command and followed with key=clear.

netsh wlan show profiles "My Home" key=clear

In the output, you will see a section of Security settings. The Key Content value is the password in clear text.

Security settings
    Authentication         : WPA2-Personal
    Cipher                 : CCMP
    Authentication         : WPA2-Personal
    Cipher                 : GCMP
    Security key           : Present
    Key Content            : MyWiFiPassword

As you can see,  it's very easy to get the password. When guests coming to your house and asking for your WiFi password, don't think that the guests won't know the password if you type it in yourself on their devices.

Friday, June 19, 2020

How to highlight text in a web page

When you share a URL to a long article, sometimes you want to highlight certain text to make your point.

Chrome has the text highlight feature.

For example, a plain link to a Wikipedia article.
If you want to highlight a short sentence, you can put #:~:text= at the end of URL and followed by the text to be highlighted.

If you want to highlight a long paragraph, the URL may become too long to share. In this case, you can put start text and end text with a comma in the middle. That is, #:~:text=startText,endText.,finally%20to%20humans
For more details, visit the the link.

Wednesday, June 17, 2020

How to make external drives spin down automatically on Ubuntu 20.10

 The following steps have been tested on Raspberry Pi 3. When using Raspberry Pi as a file server, it would save energy and extend an extern...