I’m trying to make simple Go program that’d reveal the password of Wifi network user is connected to.
When I enter this command manually, through the terminal I got prompt that ask me for user credentials, and after I fill them password is displayed with few other infos.
You have an error in your exec.Command “security find-generic-password” is two arguments and not one and also you don’t need to quote AirPort network password because then the quotes will be sent into the program. You can also call security directly without using bash. Like this: