日期:2014-05-17  浏览次数:21007 次

获取win7无线网络配置文件密码
怎样才能获取无线网络配置文件的明文密码啊

比如:
<?xml version="1.0"?>
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
<name>jerry</name>
<SSIDConfig>
<SSID>
<hex>6A65727279</hex>
<name>jerry</name>
</SSID>
</SSIDConfig>
<connectionType>ESS</connectionType>
<connectionMode>auto</connectionMode>
<MSM>
<security>
<authEncryption>
<authentication>WPA2PSK</authentication>
<encryption>AES</encryption>
<useOneX>false</useOneX>
</authEncryption>
<sharedKey>
<keyType>passPhrase</keyType>
<protected>true</protected>
<keyMaterial>01000000D08C9DDF0115D1118C7A00C04FC297EB010000006633EE13BB810142822E79C8C372337E0000000002000000000010660000000100002000000062EAC54175BA8BE6E62015AD4CBCC9E2CF252B7D83494CF6C243E4572F54139E000000000E8000000002000020000000200BA44E66D776A19C43D06BAD5BF8EBFD2CF15A04985AD0BAE726C4D259F00210000000E718D8D200054F4569A832C9F8DBAF4440000000578BE7D17A357109BA0011973D8763F37D740C5139DEDA02632252209BBD9D970D30B94C047F6A6C5901FEA9CABA53B4651859F88D21867F882EEBD404BB3A59</keyMaterial>
</sharedKey>
</security>
</MSM>
</WLANProfile>

密码是加密了的,我想写程序直接获取明文密码,怎么获取啊
------解决方案--------------------
去找了下,编辑的话可以设置protected为false,然后keyMaterial里面放明文密码
http://msdn.microsoft.com/en-us/library/windows/desktop/aa370032(v=vs.85).aspx
要解密的话,得调用API,在这页上有写,http://msdn.microsoft.com/en-us/library/windows/desktop/ms706987(v=vs.85).aspx ,你自己看看吧