Coder Social home page Coder Social logo

wifi-password's Introduction

wifi-password

People ask you for the Wi-Fi password. Answer quickly. macOS only. Windows version.

How to use

1. Install it

With bpkg:

$ bpkg install rauchg/wifi-password

With Homebrew:

$ brew install wifi-password

With Antigen:

Add antigen bundle rauchg/wifi-password to your .zshrc with your other antigen commands

With Zgen

Add zgen load rauchg/wifi-password to your .zshrc with your other zgen commands

or with curl:

curl -L https://raw.github.com/rauchg/wifi-password/master/wifi-password.sh -o ~/bin/wifi-password && chmod +x ~/bin/wifi-password

If you don't have ~/bin in your $PATH, replace it with /usr/local/bin or similar.

2. Use it:

To get the password for the WiFi you're currently logged onto:

$ wifi-password

To get it for a specific SSID:

$ wifi-password <ssid>

To put it straight in your clipboard for pasting elsewhere (OS X only):

$ wifi-password | pbcopy

License

MIT

wifi-password's People

Contributors

arielkirkwood avatar bramus avatar jwerle avatar rauchg avatar rreverser avatar unixorn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wifi-password's Issues

FOR LINUX

Any alternative available for linux

Does OS X have any kind of "remember me" feature for accessing wi-fi passwords?

First, thanks for creating this. I think it's great, especially when combined with piping to pbcopy for easy sharing.

It's unfortunate that every attempt to retrieve a password, even the same one repeatedly, requires entry of both an admin username and a password. I know this isn't your fault, but I'm wondering what potential solutions there are.

A bit of research while composing this issue shows me that my wi-fi passwords are stored in the system keychain, which when going through Keychain Access to reveal the password requires me to type

  • my admin password
  • and then both my username and password again

Some further research reveals that if I set the access control on an individual password differently in Keychain Access, my admin password is no longer required to get the wifi password.

Sorry if this is rant-y, would love to learn more about potential workarounds to this UX thorn.

Unsupport 802.1x wifi

➜  Projects security find-generic-password -ga "feei"
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
➜  Projects security find-generic-password -ga "feei-guest"
keychain: "/Library/Keychains/System.keychain"
version: 256
class: "genp"
attributes:
    0x00000007 <blob>="feei-guest"
    0x00000008 <blob>=<NULL>
    "acct"<blob>="feei-guest"
    "cdat"<timedate>=0x32303147303730373031333933315A00  "20170707013931Z\000"
    "crtr"<uint32>=<NULL>
    "cusi"<sint32>=<NULL>
    "desc"<blob>="AirPort network password"
    "gena"<blob>=<NULL>
    "icmt"<blob>=<NULL>
    "invi"<sint32>=<NULL>
    "mdat"<timedate>=0x32304137303730373031333933315A00  "20170707013931Z\000"
    "nega"<sint32>=<NULL>
    "prot"<blob>=<NULL>
    "scrp"<sint32>=<NULL>
    "svce"<blob>="AirPort"
    "type"<uint32>=<NULL>
password: "12345678"

FR: Authentication with Touch ID

Can you elaborate a bit on the authentication scheme used for the keychain prompts?

For example, I can edit my /etc/pam.d/sudo file to use Touch ID for sudo.

Would be great to do so for this.

password cleanup messes up password

Why do "clean up" the password? It just removes necessary characters and makes the password unusable:

try something like this:

sz.:):p9(=w_v.;H`qYSjP7*37#*{"MvD8%K9]&9[m-GgqWKoGeWC)`jyi\,JdXd

as a password and you see what I mean.

Could not find SSID

matilda-pro:~ atimberlake$ wifi-password

… getting password for "HOME-WIFI".
… keychain prompt incoming.
ERROR: Could not find SSID "HOME-WIFI"

What happened? Is there a verbose mode?

Authenticated via EAP-PEAP (MSCHAPv2)

Text formatting broken?

› wifi-password                                                              ~ 

\033[90m … getting password for "Henderson5_5G". \033[39m
\033[90m … keychain prompt incoming. \033[39m
\033[96m ✓ "##########" \033[39m

It seems like the text formatting is broken. Heres my system info:

OS: macOS Mojave 10.14.6 18G103 x86_64
Host: MacBookAir7,2
Kernel: 18.7.0
Shell: zsh 5.3

Password miss-displayed on MacBook Air w/ M1 processor

Getting password miss-displayed on a MacBook Air (Apple chip):

Model Name:        MacBook Air
Model Identifier:  MacBookAir10,1
Processor Name:    Apple M1

$ wifi-password --version
> 0.1.0

Working as expected on an older MacBook Pro (Intel chip).

Model Name:        MacBook Pro
Model Identifier:  MacBookPro9,2
Processor Name:    Dual-Core Intel Core i5

$ wifi-password --version
> 0.1.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.