stacksmashing / pico-tpmsniffer

A simple, very experimental TPM sniffer for LPC bus
Other
533 stars 78 forks source link

Patch spi #4

Closed zaphoxx closed 8 months ago

zaphoxx commented 8 months ago

Hi, I updated the code to allow for tpm sniffing on LPC, SPI or SPI via the BIOS-Chip.

It currently defaults to "SPI_BIOS" and a selection option is not implemented yet because I wasnt sure how to proceed there, if either do it via hardware e.g., dip switch or similar or via software e.g., setting up a python script that would send the choice to the pico via the serial connection and output the data from the pico instead of using minicom. the later would also allow to directly save the capture key to a file for later use.

Let me know what you think. Best Manfred

zaphoxx commented 8 months ago

I realized that i made a stupid mistake and there is a bug in my code, that will sometimes lead to false results. I am currently in the process of finding a "smart" solution to fix the issue. consider me in standing in the corner feeling really dump at the moment ... once i fixed that i will resubmit a pull request.