26 lines
850 B
Markdown
26 lines
850 B
Markdown
1) download the MongoDB from [here](http://downloads.mongodb.org/win32/mongodb-win32-x86_64-2.4.14-rc0.zip).
|
|
|
|
2) Create a folder on the C drive ( passwordrecover )
|
|
|
|
3) Extract mongo.exe from the bin folder into the newly created C:\passwordrecover folder
|
|
|
|
4) WINDOWS + R and type cmd ( ENTER )
|
|
|
|
5) Go to the folder you just created
|
|
```shell
|
|
cd C:/passwordrecover
|
|
```
|
|
|
|
6) Run the following commands, those commands will prompt you with all the admin account.
|
|
|
|
```shell
|
|
mongo --port 27117
|
|
use ace
|
|
db.admin.find()
|
|
```
|
|
|
|
7) Now run the next command and replace <UserName> with the admin account.
|
|
```shell
|
|
db.admin.update( { "name" : "<UserName>" }, { $set : { "x_shadow" : "$6$ybLXKYjTNj9vv$dgGRjoXYFkw33OFZtBsp1flbCpoFQR7ac8O0FrZixHG.sw2AQmA5PuUbQC/e5.Zu.f7pGuF7qBKAfT/JRZFk8/" } } )
|
|
```
|
|
8) You can now login with your admin account and password password |