Skip to content

Retrieves the passwords of previously accessed WiFi networks, in case you need to share them and you don’t remember their password.

License

Notifications You must be signed in to change notification settings

8gudbits/MyWiFiKey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyWiFiKey

Retrieves the passwords of previously accessed WiFi networks, in case you need to share them and you don’t remember their password.

Usage

MyWiFiKey [--nobanner/-n] [--help/-h]

Options

  • -h, --help → Display the help menu.
  • -n, --nobanner → Suppress the banner.

Notes

  • Passwords are extracted only if they are saved in the system.

Download exe for Windows

This tool is part of the 8gudbitsKit project. To download the executable for Windows, visit the 8gudbitsKit repository.

For the Tech People

1. Retrieving Wi-Fi Profiles

  • Executes netsh wlan show profile to list saved Wi-Fi networks.
  • Parses the output to extract SSIDs using a custom filtering method.

2. Extracting Passwords

  • 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 >.

3. Command Execution & Parsing

  • 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.

4. Output Formatting

  • Displays SSIDs and passwords in a structured table format.
  • Uses std::setw() for aligned column formatting.
  • Prints a horizontal separator for readability.

5. Command-Line Argument Handling

  • Supports --nobanner to suppress the banner.
  • Provides a structured help menu when --help is invoked.

About

Retrieves the passwords of previously accessed WiFi networks, in case you need to share them and you don’t remember their password.

Topics

Resources

License

Stars

Watchers

Forks