How to get Wi-Fi encryption mode in iOS without private libraries?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- How can I add media attachments to my push notific
The code from the answer above has been posted originally on this website: http://www.codeproject.com/Articles/621213/Non-Standard-Way-to-Get-Inaccessible-Data-from-iOS
By the way, for this code to work you need to include the appropriate header files with
#include <mach/mach.h>
so that your compiler recognizesNDR_record_t ndr
.However, this whole setup did not actually return me the encryption mode of the current WiFi, but rather the configuration of AirPort (the variable
key
in the code from above needs to be set toNSString *key = @"Setup:/Network/Interface/en0/AirPort";
before). I tried different values instead of AirPort which I got from running$scutil
in the Terminal of my Mac (such asSetup:/Network/Interface/en0/IPv4
orSetup:/Network/Interface/en0/Modem
or from this website)Hope that helps someone having similar issues...
For iOS 5:
For iOS 6: