Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Mac OSX Terminal – Get Stored Wireless (Wi-Fi) Password

Posted on January 18, 2017June 6, 2025 By David Kittell

Addition to Find & Scan Wireless Networks the additional line will require a password but then display the stored password for the defined router name.

# List all Wi-Fi - Older macOS
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s

# Newer macOS
networksetup -listpreferredwirelessnetworks en0

# Get Stored Password To Wi-Fi
security find-generic-password -ga "Router_Name" | grep "password:"
Originally Posted on January 18, 2017
Last Updated on June 6, 2025
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code Mac OS X Shell Mac OSX UNIX UNIX Shell Scripts macospasswordrecoverwi-fiwifiwireless

Post navigation

Previous post
Next post

Related Posts

Display Second Largest Value

Posted on June 26, 2014October 26, 2015

SELECT MAX(col) FROM TABLE WHERE col < ( SELECT MAX(col) FROM TABLE ) Originally Posted on June 26, 2014Last Updated on October 26, 2015 All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it…

Read More

Prevent Browser Cache

Posted on August 21, 2013October 26, 2015

Response.Expires = 0 Response.Expiresabsolute = Now() – 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "no-cache" <cfheader name="expires" value="#now()#"> <cfheader name="pragma" value="no-cache"> <cfheader name="cache-control" value="no-cache, no-store, must-revalidate"> <meta http-equiv="expires" content="Mon, 06 Jan 1990 00:00:01 GMT"> <% response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires", 0); //prevents caching at the proxy server…

Read More

Mac OSX Terminal – Create New Admin User

Posted on December 8, 2017

#!/bin/sh # CreateAdminUser.sh # # Created by David Kittell on 12/8/17. # clear userFullName=$1 userName=$2 userPassword=$3 echo "Checking If User Exists" # List Local Users # dscl . list /Users | grep -v ‘_’ if [[ $(dscl . list /Users) =~ "$userName" ]]; then echo "User Exists" else echo "User…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • PowerShell - IIS Remove Site
  • SQLite - Auto-Increment / Auto Generate GUID
  • PowerShell - FTP Upload Directory With Sub-Directories

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • PowerShell - IIS Remove Site
  • SQLite - Auto-Increment / Auto Generate GUID
  • PowerShell - FTP Upload Directory With Sub-Directories
  • Raspberry Pi - Remove Default Apps
  • PowerShell - Change Windows CD/DVD Drive Letter
©2025 David Kittell | WordPress Theme by SuperbThemes