Skip to content

Commit

Permalink
LibremKey/Nitrokey Pro without tpm: PoC extended to extract from cbfs…
Browse files Browse the repository at this point in the history
… and measure modules containing the following keywords: fallback|heads|microcode|cmos|data|config|bootblock
  • Loading branch information
tlaurion committed Dec 29, 2018
1 parent 4f90888 commit 100751d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion initrd/bin/flash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ flash_rom() {
#flashrom $FLASHROM_OPTIONS -r "${ROM}" 1&>2 >/dev/null \
#|| die "$ROM: Read failed"
#sha256sum ${ROM} | cut -f1 -d ' '
cbfs --list | grep -E 'fallback|heads|microcode|bootblock' | while read CBFS_FILES; do cbfs -r $CBFS_FILES; done | sha256sum | cut -f1 -d ' '
cbfs --list | grep -E 'fallback|heads|microcode|cmos|data|config|bootblock' | while read CBFS_FILES; do cbfs -r $CBFS_FILES; done | sha256sum | cut -f1 -d ' '
else
cp "$ROM" /tmp/${CONFIG_BOARD}.rom
sha256sum /tmp/${CONFIG_BOARD}.rom
Expand Down
2 changes: 1 addition & 1 deletion initrd/bin/unseal-hotp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ else
# sha256sum ${ROM_IMAGE} | cut -f1 -d ' ' | cut -c 1-20 | tr -d '\n' > $HOTP_SECRET
#else
#flash.sh -s ${ROM_IMAGE} | cut -c 1-20 | tr -d '\n' > $HOTP_SECRET
cbfs --list | grep -E 'fallback|heads|microcode|bootblock' | while read CBFS_FILES; do cbfs -r $CBFS_FILES; done | sha256sum | cut -f1 -d ' ' | cut -c 1-20 | tr -d '\n' > $HOTP_SECRET
cbfs --list | grep -E 'fallback|heads|microcode|cmos|data|config|bootblock' | while read CBFS_FILES; do cbfs -r $CBFS_FILES; done | sha256sum | cut -f1 -d ' ' | cut -c 1-20 | tr -d '\n' > $HOTP_SECRET
#fi
fi

Expand Down

0 comments on commit 100751d

Please sign in to comment.