Retrieves the passwords of previously accessed WiFi networks, in case you need to share them and you don’t remember their password.
MyWiFiKey [--nobanner/-n] [--help/-h]
-h, --help
→ Display the help menu.-n, --nobanner
→ Suppress the banner.
- Passwords are extracted only if they are saved in the system.
This tool is part of the 8gudbitsKit project. To download the executable for Windows, visit the 8gudbitsKit repository.
- Executes
netsh wlan show profile
to list saved Wi-Fi networks. - Parses the output to extract SSIDs using a custom filtering method.
- Runs
netsh wlan show profile "<SSID>" key=clear
to retrieve stored passwords. - Searches for the
"Key Content"
field in the output to extract the password. - If no password is found, returns
< NULL >
.
- Uses
_popen()
to execute system commands and capture output. - Processes command output using
stringstream
for efficient parsing. - Filters and formats extracted data for clean display.
- Displays SSIDs and passwords in a structured table format.
- Uses
std::setw()
for aligned column formatting. - Prints a horizontal separator for readability.
- Supports
--nobanner
to suppress the banner. - Provides a structured help menu when
--help
is invoked.