Difference between revisions of "HP BIOS Hacking"

From wiki.N4VX.net
Jump to navigation Jump to search
Line 17: Line 17:
 
|-
 
|-
 
| align="right" | (not) Chip Select    || CS    || <font size="+2">→</font> || style="background: #DDDDDD;" | 1 || align="left" style="background: #DDDDDD;" | /CS      || align="right" style="background: #DDDDDD;" | VCC        || style="background: #DDDDDD;" | 8 || <font size="+2">←</font> || +3.3v || align="left" | Supply
 
| align="right" | (not) Chip Select    || CS    || <font size="+2">→</font> || style="background: #DDDDDD;" | 1 || align="left" style="background: #DDDDDD;" | /CS      || align="right" style="background: #DDDDDD;" | VCC        || style="background: #DDDDDD;" | 8 || <font size="+2">←</font> || +3.3v || align="left" | Supply
|-| align="right" | Master In, Slave Out || MISO  || <font size="+2">←</font> || style="background: #DDDDDD;" | 2 || align="left" style="background: #DDDDDD;" | DO (IO1)  || align="right" style="background: #DDDDDD;" | /HOLD (IO3) || style="background: #DDDDDD;" | 7 || <font size="+2">←</font> || +3.3v || align="left" | (not) hold (see datasheets)
+
|-
 +
| align="right" | Master In, Slave Out || MISO  || <font size="+2">←</font> || style="background: #DDDDDD;" | 2 || align="left" style="background: #DDDDDD;" | DO (IO1)  || align="right" style="background: #DDDDDD;" | /HOLD (IO3) || style="background: #DDDDDD;" | 7 || <font size="+2">←</font> || +3.3v || align="left" | (not) hold (see datasheets)
 
|-
 
|-
 
| align="right" | (not) Write Protect  || +3.3v || <font size="+2">→</font> || style="background: #DDDDDD;" | 3 || align="left" style="background: #DDDDDD;" | /WP (IO2) || align="right" style="background: #DDDDDD;" | CLK        || style="background: #DDDDDD;" | 6 || <font size="+2">←</font> || CLK  || align="left" | The SPI clock
 
| align="right" | (not) Write Protect  || +3.3v || <font size="+2">→</font> || style="background: #DDDDDD;" | 3 || align="left" style="background: #DDDDDD;" | /WP (IO2) || align="right" style="background: #DDDDDD;" | CLK        || style="background: #DDDDDD;" | 6 || <font size="+2">←</font> || CLK  || align="left" | The SPI clock

Revision as of 01:53, 10 May 2020

<<Back<<

BIOS Hacking

Using the Bus Pirate I have been successful in recovering several HP ProBook laptops that have BIOS Administrator passwords set. Below is a rough outline of the process.

25L6406e.jpg
  1. Gain physical access to the BIOS chip and identify the manufacturer and model number of the IC. Mine was a 25L6406E, yours may not be.
  2. Obtain a datasheet for your particular IC and determine the pinout for all the necessary pins required for flashing.
  3. Connections

The table below shows how a typical SPI flash chip (sitting in the center of the table) needs to be connected (NB: not all flash chips feature all of the pins below, but in general you should always connect all input pins of ICs to some defined potential (usually GND or VCC), ideally with a pull-up/down resistor in between). Most SPI flash chips require a 3.3V supply voltage, but there exist some models that use e.g. 1.8V. Make sure the device in question is compatible before connecting any wires. NB: Some rather rare SPI flash chips (e.g. Atmel AT45DB series) have a completely different layout, please beware.

Description Bus Pirate Dir. Flash chip Dir. Bus Pirate Description
(not) Chip Select CS 1 /CS VCC 8 +3.3v Supply
Master In, Slave Out MISO 2 DO (IO1) /HOLD (IO3) 7 +3.3v (not) hold (see datasheets)
(not) Write Protect +3.3v 3 /WP (IO2) CLK 6 CLK The SPI clock
Ground GND 4 GND DI (IO0) 5 MOSI Master Out, Slave In

I hope to start a small library of BIOS binaries for the models I have recovered and the procedure used to recover a locked system.

HP ProBook & EliteBook

EliteBook Revolve 810

ProBook 6470b

ProBook 6560b

Sources