ash47 / EnterpriseWifiPasswordRecover

This is a tool that recovers WPA2 Enterprise Wifi Credentials from a machine.
96 stars 23 forks source link

Storing Passwords, basically reverse-recover #14

Open mayosemmel opened 1 year ago

mayosemmel commented 1 year ago

Hello everyone,

this request might be a little offtopic but this is by far the best I have found until now regarding this topic.

I have a quite different challenge, I know the user+password but need to store it on several hundred PCs. The "several hundred" part is not the problem, but I have still no idea how to store the password by command line. And yes, I know it would be better to do it with domain credentials or certificate. We are doing this in our company network but I need to deploy a connection to a network which is administrated by someone else.

Anyway: I was perfectly able to extract the user+password from registry. But I need to store them again now and maybe someone knows a fast/easy way how to do this? I already found this: https://github.com/rozmansi/WLANSetEAPUserData but I doesn't seem to work.

Thanks a lot for any help!

PS: If this should not be discussed here because offtopic please just close the issue.

ash47 commented 1 year ago

You can use netsh to interact with wifi, something like:

NETSH WLAN SET HOSTEDNETWORK MODE=ALLOW SSID=”YOUR WIFI CONNECTION NAME” KEY=”YOUR WIFI CONNECTION PASSWORD”

Copied from here:

https://www.techworm.net/2016/10/connect-manage-delete-wi-fi-networks-using-command-prompt.html https://www.techworm.net/2016/10/connect-manage-delete-wi-fi-networks-using-command-prompt.html

On Tue, 27 Sep 2022, 6:26 pm Jan Kraus, @.***> wrote:

Hello everyone,

this request might be a little offtopic but this is by far the best I have found until now regarding this topic.

I have a quite different challenge, I know the user+password but need to store it on several hundred PCs. The "several hundred" part is not the problem, but I have still no idea how to store the password by command line. And yes, I know it would be better to do it with domain credentials or certificate. We are doing this in our company network but I need to deploy a connection to a network which is administrated by someone else.

Anyway: I was perfectly able to extract the user+password from registry. But I need to store them again now and maybe someone knows a fast/easy way how to do this? I already found this: https://github.com/rozmansi/WLANSetEAPUserData but I doesn't seem to work.

Thanks a lot for any help!

PS: If this should not be discussed here because offtopic please just close the issue.

— Reply to this email directly, view it on GitHub https://github.com/ash47/EnterpriseWifiPasswordRecover/issues/14, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4UUDW475TUMZD6IMU72ILWAKVTRANCNFSM6AAAAAAQWRDAIY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mayosemmel commented 1 year ago

Thanks for your fast reply. Correct me if I'm wrong. But as far as I understand this only works for WPA2-Personal with Pre-Shared-Key. I already found that in the beginning of my research. But I need User + Password with WPA2-Enterprise (PEAP)

oleggtro commented 1 year ago

sorry for the late response, but you're indeed right. netsh only works for WPA2-PSK. There is some tool on Azure to mass deploy these things iirc. Can't remember the name though. (This does your company require to have an active M365 E3 subscription afaik)

akulihin commented 1 year ago

Were you able to figure out how to solve this challenge?