项目作者: jethrogb

项目描述 :
执行联想ThinkPad HDD密码算法
高级语言: Ruby
项目地址: git://github.com/jethrogb/lenovo-password.git
创建时间: 2015-02-27T00:37:42Z
项目社区:https://github.com/jethrogb/lenovo-password

开源协议:Other

下载


Implementation of Lenovo ThinkPad HDD password algorithm

This repository contains an implementation of the Lenovo ThinkPad HDD
encryption password hashing algorithm. This can be useful to unlock your drive
on another computer when your laptop fails.

Usage

You’ll need to save the ATA IDENTIFY block for the relevant hard drive (sda in
this case):

  1. sudo hdparm --Istdout /dev/sda > sda.ata_identify

Enter the password and store the password hash in environment variable P:

  1. P="$(ruby pw.rb sda.ata_identify)"

The script will print an error message if there’s something wrong with the
input or output.

Next, use the password for one of the security commands of
hdparm, e.g.:

  1. sudo hdparm --security-unlock "$P" /dev/sda

To scan the partitions of this drive now that it is unlocked and ready for use,
run:

  1. sudo partprobe /dev/sda

See also https://jbeekman.nl/blog/2015/03/lenovo-thinkpad-hdd-password/