简体   繁体   English

如何在Mac上找到主密码?

[英]How to find the Master Password on a Mac?

I have a master password set up on my mac, and I have forgotten it. 我在Mac上设置了主密码,但我忘记了。 I found the file path /etc/master.passwd though I am not sure if this is the right file. /etc/master.passwd的文件路径,但不确定是否是正确的文件。 I do not want to reset the master password, only figure out what it is. 我不想重置主密码,只想知道它是什么。

It is probably possible to try, especially if you recall something of the password. 可能可以尝试,尤其是当您想起某些密码时。 But it will take time to have the right tools and to do it, even weeks. 但是,即使是数周的时间,拥有正确的工具并进行操作仍需要花费时间。 Nobody can say that before trying. 在尝试之前,没人能说出来。 And some basic linux understanding is needed for the following instructions. 以下说明需要一些基本的Linux理解。

One of the best tool to try is this one http://www.openwall.com/john/doc/FAQ.shtml and you can find it in the KALI Linux distribution http://www.kali.org/ 最好的工具之一就是这个http://www.openwall.com/john/doc/FAQ.shtml ,您可以在KALI Linux发行版http://www.kali.org/中找到它

Once you upload your /etc/passwd and your master.passwd on KALI Linux, you can use unshadow to create a single file from the two (call it crackable.passwd) and then you can run 在KALI Linux上上传/ etc / passwd和master.passwd之后,您可以使用unshadow从这两个文件中创建一个文件(称为crackable.passwd),然后可以运行

john --rules -w:/path/to/my/wordlist crackable.passwd

In a file called /path/to/my/wordlist you need to put as much words (newline separated) you can remember on your password. 在名为/ path / to / my / wordlist的文件中,您需要在密码上输入尽可能多的单词(用换行符分隔)。 The --rules option does some mangling and permutations for you (on single words mostly, uppercase/lowercase, adding some numbers, adding special chars, etc...) but you might need to customize them. --rules选项可以为您进行一些修饰和排列(大多数情况下是单个单词,大写/小写,添加一些数字,添加特殊字符等),但是您可能需要自定义它们。 This is why I say it needs time to understand what you are doing. 这就是为什么我说需要时间来了解您在做什么的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM