Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Retrieve and save all WiFi networks and passwords on the device. Cross platform windows, linux, macOS
Retrieve and save all WiFi networks and passwords on the device.
On windows uses the netsh subprocess.
On linux reads the NetworkManager files or wpa_supplicant.conf.
Cross platform:
there is also a GUI version of this tool that can be found here - WifiPasswords-GUI
NOTE: requires sudo privileges on linux only if NetworkManager is not used.
NOTE: Macos requires admin authentication for each password read, this can result in a lot of prompts for the get_passwords() function. I am currently looking for a solution for this.
Installed via pip using: pip install wifipasswords
from wifipasswords import WifiPasswords
passwords = WifiPasswords().get_passwords()
connected_passwords = WifiPasswords().get_currently_connected_passwords()
print(passwords)
print(connected_passwords)
WifiPasswords().save_wpa_supplicant('.', passwords, True, 'GB')
Provides a command line interface callable after installation with:
python3 -m wifipasswords
wifipasswords
~ $ wifipasswords
To see command line options run wifipasswords -h
Can be packaged to an EXE on windows with:
pyinstaller --clean --noconsole --onefile -i <icon> wifipasswords_exe.py
The wifipasswords_exe.py file is the same as the main.py file in the package except will pause after console output is finished to prevent the terminal from auto-closing if the EXE is run directly.
Test locally with pytest -v ./tests
Currently github test runners do not have nmcli interface to access wifi data so test locally.
Creation date: 10-02-2019
Dependencies: colorama
Copyright (C) 2019-2022 Joe Campbell
GNU GENERAL PUBLIC LICENSE (GPLv3)
This program is free software: you can redistribute it and / or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see < https: // www.gnu.org/licenses/>.
FAQs
Retrieve and save all WiFi networks and passwords on the device. Cross platform windows, linux, macOS
We found that wifipasswords demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.