Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anyway this can support creating wifi profile of WPA2-enterprise profile with PEAP #7

Closed
chrisloup opened this issue Jan 25, 2022 · 3 comments

Comments

@chrisloup
Copy link

anyway this can support creating wifi profile of WPA2-enterprise profile with PEAP? it seems there appears to be no way to so without using the native windows GUI?

@buscseik
Copy link
Owner

I can try, but I need an example of the wifi profile.
Could you export your one and share with me?
Command to export the wifi profile:
netsh wlan export profile name="ProfileName" key=clear folder=c:\Wifi

@chrisloup
Copy link
Author

ill get it for you once i get into the office probably next week . i heard peap credentials are in an xml

@thewade
Copy link

thewade commented Feb 3, 2023

The PEAP credentials are not stored in the WLAN profile, and you will not see them if you export the profile.

They are stored in the Windows registry at:
HKLM\SOFTWARE\Microsoft\Wlansvc\UserData\Profiles{GUID}

You can find tools to encode and decode this on the web. Once set you do not need to enter the credentials for the profile.

There is also WlanSetProfileEapXmlUserData in wlanapi.h but from what I read that does not store the credentials.

Reference:
https://stackoverflow.com/questions/15478107/saving-windows-wireless-profile-credentials
https://learn.microsoft.com/en-us/windows/win32/api/wlanapi/nf-wlanapi-wlansetprofileeapxmluserdata
https://learn.microsoft.com/en-us/windows/win32/eaphost/peap-ms-chapv2-user-properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants