pwnagotchi icon indicating copy to clipboard operation
pwnagotchi copied to clipboard

[BUG] Hash does not match the Hash of the zip.

Open hubertron opened this issue 3 years ago • 3 comments

Describe the bug Hash provided on Github release does not match the Hash of the zip.

To Reproduce

❯ shasum -a 256 pwnagotchi-raspbian-lite-v1.5.5.sha256
6b63fc3bead497e5a52dcc374327674d43409b904d1183011aee24a251ea19ff  pwnagotchi-raspbian-lite-v1.5.5.sha256
❯ shasum -a 256 pwnagotchi-raspbian-lite-v1.5.5.zip
608b7cc683ab60a4442b8b329332e7b923f29bea930f0e36e1eb2ff3a82f2b6b  pwnagotchi-raspbian-lite-v1.5.5.zip
❯ cat pwnagotchi-raspbian-lite-v1.5.5.sha256
4d4c0ad50f8bcac92827de42fc653a0f53045fc39866aae89e0e6cc42596f788  pwnagotchi-raspbian-lite-v1.5.5.img

Expected behavior Hash's should match

Environment (please complete the following information):

  • Pwnagotchi version 1.5.5

Additional context File integrity looks ok but hashes don't match. Hesitant to build given this is the case.

hubertron avatar Feb 15 '22 23:02 hubertron

I unzipped in VM and those hashes match.. Just not the zip. A malicious ZIP could exist though..

hubertron avatar Feb 15 '22 23:02 hubertron

The hash of the .img inside the zip should match the text of the .sha256 file. Documentation does not make this clear for users unfamiliar with checksums but you dont want the hash of the .sha256 file as obviously that would not match the hash of a different file.

TavisMolyneux avatar Mar 10 '22 01:03 TavisMolyneux

Yeah hash the disk image file, not the zipped disk image. This is a user error.

databonanza avatar Jun 16 '22 15:06 databonanza