安全性:SecKeychainSearchCopyNext :(通过终端的Wi-Fi密码)


0

我试图通过终端[1]以明文方式查看(作为root)wifi密码,但得到以下错误:

sh-3.2# security find-generic-password -ga "ROUTER-NAME-HERE"
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.

sh-3.2# security find-generic-password -a lily -s "ROUTER-NAME-HERE" -g
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.

所以我用谷歌搜索错误[2],但我没有找到答案有帮助。

[1] 如何通过终端访问Wi-Fi密码?

[2] https://stackoverflow.com/questions/8303755/keychain-security-command-line-tool-works-with-find-internet-passwords-but-not-f

sh-3.2# system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: OS X 10.8.5 (12F45)
      Kernel Version: Darwin 12.5.0
      Boot Volume: lily
      Boot Mode: Normal
      Computer Name: lily’s MacBook Air
      User Name: System Administrator (root)
      Secure Virtual Memory: Enabled
      Time since boot: 12:37

sh-3.2# uname -a
Darwin lily-MacBook-Air.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64

Answers:


0

显示与此类似的无线网络的WiFi密码,将“wifinetworkname”替换为引号中的无线网络名称:

security find-generic-password -D "AirPort network password" -l "wifinetworkname" -w

哦,我没有意识到我们需要从字面上使用“AirPort网络密码”。我以为你要我输入一些密码。谢谢!
lily
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.