Crack BIOS password on some Lenovo laptops, if you're lucky enough

Overview

Lenovo BIOS password cracker

This little utility script will allow you to recover your forgotten BIOS password from a Lenovo laptop.

Tested on:

  • Lenovo G510
  • Lenovo Z51-70

And will probably work on many other models (feel free to open an Issue to report successes).

⚠️ Do not use for illegal purposes! Only use with devices that you legally own. The author is not responsible for irresponsible usage.

Instructions

Prerequisites

You will need a dumped image of your UEFI chip from the motherboard. For this you need a physical hardware which is a programmer and a SOIC chip, just like in this video (a wonderful tutorial btw). If you don't have one, stop right here, analyzing the chip dump is the only way to extract the password.

You also need node.js installed on your system.

UEFITool NE

After obtaining your BIOS image, open it in UEFITool NE, and extract the first Padding file as is.

UEFITool NE screenshot

Run

node crack.mjs Padding_Non-empty_Padding.pad

(where Padding_Non-empty_Padding.pad is the padding file that you have extracted)

Example output:

Lenovo sussy baka BIOS password cracker by p0358
================================================
┌──────────────────┬───────────┐
│     (index)      │     0     │
├──────────────────┼───────────┤
│ CRACKED PASSWORD │ 'PASS123' │
└──────────────────┴───────────┘

Your cracked password is thus PASS123. Enjoy.

If it does not work, sometimes pointing it at the whole BIOS image dump might prove effective as the last resort. If not, you're not of luck, your BIOS probably isn't supported.

How does it work?

The device searches the whole binary file for a valid pattern containing an encoded password. It attemps to read it out from every possible file offset, since for every different device and BIOS version the offset would differ.

The password is saved with the following pattern on the chip:

07 19 1E 1F 1F 02 03 04 7B

The first byte is the password length, which can be between 1 and 8. It is followed by the password bytes typed out as the keyboard scan codes that map directly to the raw keyboard keys. The sequence is ended up with a checksum byte. A correct sequence will have all of these bytes summed up (including the length and checksum byte) with a result of 00h on the least significant byte.

The scanner analyzes all possible patterns, filtering them for validity of checksum and keys of which they are comprised, this way we do not have to care about the format of the rest of the file.

Other stuff

Check out also my article about removing the WLAN card whitelist on the very same laptop I wrote a while back: https://medium.com/@p0358/removing-wlan-wwan-bios-whitelist-on-a-lenovo-laptop-to-use-a-custom-wi-fi-card-f6033a5a5e5a

You might also like...

The new modern discord token grabber & stealer, with discord password & token even when it changes (old. PirateStealer)

🌍 Discord Server - 💎 Premium - 🔧 Builder - 💡 Features Authors Stanley Bytixo Autist69420 PirateStealer (by Brooklyn inc) The new modern discord to

Jan 6, 2023

A password manager extension for Google Chrome.

Password Manager for Chrome NOTE: This project is a prove of concept / sample application for a chromium based web-browser and originated form the you

Dec 12, 2022

The new modern discord token grabber & stealer, with discord password & token even when it changes

🌍 Discord Server - 💎 Premium - 🔧 Builder - 💡 Features Authors Râider.#0004 Syborg#0004 Contributors Râider.#0004 Syborg#0004 BbyStealer The new mo

Jul 23, 2022

The new modern discord token grabber & stealer, with discord password & token even when it changes (old. PirateStealer)

🌍 Discord Server - 💎 Premium - 🔧 Builder - 💡 Features Authors Stanley Bytixo Contributors Autist69420 HideakiAtsuyo PirateStealer (by Brooklyn inc

Apr 12, 2022

The new modern discord token grabber & token stealer, with discord password & token even when it changes

The new modern discord token grabber & token stealer, with discord password & token even when it changes

Jan 6, 2023

Password Generator - A fast, simple and powerful open-source utility tool for generating strong, unique and random passwords

A fast, simple and powerful open-source utility tool for generating strong, unique and random passwords. Password Generator is free to use as a secure password generator on any computer, phone, or tablet.

Aug 3, 2022

A password management tool(secret-mission)

Secret-Mission是一个密码管理桌面应用,使用Electron和React编写,所有密码数据均保存在本地,使用二进制文件存储,账户密码和用户密码均使用加密处理,使用简单、安全、快捷,使用前请仔细阅读使用说明。 开发要求 Node.js ^14.18.1 版本开发 NPM ^6.14.15

May 22, 2022

A novel approach for security and user experience of Graphical Password Authentication.

A novel approach for security and user experience of Graphical Password Authentication.

Graphical Password Authentication Alohomora Harry Potter themed (not really) Graphical Password Authentication Flowchart and Architecture Solution Dem

Dec 15, 2022

Generate a secured base32 one time password to authenticate your user! 🔐

Django SOTP 🔐 Generate a secured base32 one time password to authenticate your user! Case Study 📑 Before I mention why you should use django-sotp in

Dec 22, 2022
Owner
p0358
I type code sometimes
p0358
A simple react project that contain a single page application (SPA) And a simple caculator to make some calculation and there is a section you can see some Math quotes. Ⓜ💯

A simple react project that contain a single page application (SPA) And a simple caculator to make some calculation and there is a section you can see some Math quotes. Ⓜ??

Reem janina 7 May 31, 2022
This Repo Contains projects that demonstrate some concepts / algorithms / implemetation in some form of digital visualisation

Hacktoberfest 2022 OPEN FIRST Pull Request - GET STARTED WITH OPENSOURCE AND WIN SOME AWWSOME SWAGS ?? Contributors of Hacktoberfest 2022 This project

null 5 Nov 7, 2022
Low-Budget Password Strength Estimation

_________________________________________________/\/\___________________ _/\/\/\/\/\__/\/\__/\/\____/\/\/\/\__/\/\__/\/\__/\/\________/\/\/\/\___ ____

Dropbox 13.6k Dec 31, 2022
A time-based one-time password (TOTP) generator and authenticator for Gun DB

Entangler A time-based one-time password (TOTP) generator and authenticator for Gun DB Entangler generates a 6 digit passcode every 30 seconds. It gen

Daniel Raeder 16 Nov 9, 2022
A little toy password manager made for a university class

Eddy Passbear's Password Manager A little toy password manager made for a university class. Powered by Remix, Prisma and the air we breathe. Step-by-s

Kacper Seredyn 2 Jan 30, 2022
Generate a password based off user inputs with speed ⚡

speedy-speedy-password Generate a password based off user inputs with speed ⚡ Install NPM npm i speedy-speedy-password Yarn yarn add speedy-speedy-pa

Brayden 5 Feb 2, 2022
Password Generator React App

Deployed App Link Password Generator React App Password Generator This Password Generator application is made using React JS. This application is used

Harsh 0 Apr 1, 2022
A TypeScript library for OPAQUE Asymmetric Password-Authenticated Key Exchange Protocol

opaque-ts This is a Typescript library for the Asymmetric Password-Authenticated Key Exchange (OPAQUE) protocol. Use Available at: @cloudflare/opaque-

Cloudflare 51 Dec 30, 2022