Get WiFi Password from Command Line

By  on  

I met Guillermo Rauch several years ago in the #mootools-dev room on IRC.  He jumped into the MooTools project and made great things happen; he also coded MooTools' plugins forge.  Since then he's gone on to create amazing things, most recently releasing HyperTerm, an excellent terminal app for Mac.  I was recently browsing his GitHub repo list and found a goldmine of work but one quickly stuck out:  wifi-password.

Have you ever been at a coworking location, a bar or restaurant, or your friend's house and someone asks you for the wifi password?  You don't remember, of course, and the signs posting it are no longer up.  What do you do?  You grab wifi-password!

Once you've cloned wifi-password, you run the utility while you're connected to the network:

./wifi-password

Wait a moment and the wifi password is output to your command line:

Wifi Password

I can think of dozens of instances when this would've done me well.  Being able to retrieve passwords from any app or network is incredibly useful when on the go!

Recent Features

  • By
    5 Awesome New Mozilla Technologies You’ve Never Heard Of

    My trip to Mozilla Summit 2013 was incredible.  I've spent so much time focusing on my project that I had lost sight of all of the great work Mozillians were putting out.  MozSummit provided the perfect reminder of how brilliant my colleagues are and how much...

  • By
    CSS vs. JS Animation: Which is Faster?

    How is it possible that JavaScript-based animation has secretly always been as fast — or faster — than CSS transitions? And, how is it possible that Adobe and Google consistently release media-rich mobile sites that rival the performance of native apps? This article serves as a point-by-point...

Incredible Demos

  • By
    Implement the Google AJAX Search API

    Let's be honest...WordPress' search functionality isn't great. Let's be more honest...no search functionality is better than Google's. Luckily for us, Google provides an awesome method by which we can use their search for our own site: the Google AJAX Search API.

  • By
    Sexy Opacity Animation with MooTools or jQuery

    A big part of the sexiness that is Apple software is Apple's use of opacity. Like seemingly every other Apple user interface technique, it needs to be ported to the web (</fanboy>). I've put together an example of a sexy opacity animation technique...

Discussion

  1. Maxime

    You can also just do the following:

    cd etc/NetworkManager/system-connections/
    
    ls -a
    
    sudo cat WIFI_SSID_Name
    

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!