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
    Interview with a Pornhub Web Developer

    Regardless of your stance on pornography, it would be impossible to deny the massive impact the adult website industry has had on pushing the web forward. From pushing the browser's video limits to pushing ads through WebSocket so ad blockers don't detect them, you have...

  • By
    CSS Gradients

    With CSS border-radius, I showed you how CSS can bridge the gap between design and development by adding rounded corners to elements.  CSS gradients are another step in that direction.  Now that CSS gradients are supported in Internet Explorer 8+, Firefox, Safari, and Chrome...

Incredible Demos

  • By
    LightFace:  Facebook Lightbox for MooTools

    One of the web components I've always loved has been Facebook's modal dialog.  This "lightbox" isn't like others:  no dark overlay, no obnoxious animating to size, and it doesn't try to do "too much."  With Facebook's dialog in mind, I've created LightFace:  a Facebook lightbox...

  • By
    CSS Rounded Corners

    The ability to create rounded corners with CSS opens the possibility of subtle design improvements without the need to include images.  CSS rounded corners thus save us time in creating images and requests to the server.  Today, rounded corners with CSS are supported by all of...

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!