Phaeilo / bootloader-crimes

Bootstrap disposable Windows VMs configured through a web app

Home Page:https://bootloader-crimes.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ISO hash failing due to case sensitivity (Microsoft provides uppercase, sha265sum expects lowercase)

UweKrause opened this issue · comments

Nice talk at the camp, thank you and thank you for releasing this script!

I had issues with the hash validation:

Micosoft shares the hashes in uppercase:
image

The sha256sum tool expects them to be lowercase.

echo "$ISO_HASH /mnt/scratch/win.iso" | sha256sum -c -

The solution is to provide the sha256sum to lowercase.

(I just want to open this issue to inform potential others, I might add a PR.)

Follow up question:
Would you consider to allow to skip the iso hash check, for example when there is no hash provided at the web form?

Same issue, same thought. (I tried empty and it still failed.)

It even fails with the defaults in the form, which is a bit surprising.

Possibly the same issue?

vbox

By the way, how to find out the ISO for another language?

The hash that works for me using the default ISO URL is c8dbc96b61d04c8b01faf6ce0794fdf33965c7b350eaa3eb1e6697019902945c and I could not find it anywhere. Had to compute it.

❯ wget 'https://go.microsoft.com/fwlink/p/?LinkID=2206317&clcid=0x409&culture=en-us&country=US'
--2023-11-19 12:29:24--  https://go.microsoft.com/fwlink/p/?LinkID=2206317&clcid=0x409&culture=en-us&country=US
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving go.microsoft.com (go.microsoft.com)... 2600:1419:bc00:384::2c1a, 2600:1419:bc00:390::2c1a, 23.200.222.127
Connecting to go.microsoft.com (go.microsoft.com)|2600:1419:bc00:384::2c1a|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://software-static.download.prss.microsoft.com/dbazure/888969d5-f34g-4e03-ac9d-1f9786c66749/22631.2428.231001-0608.23H2_NI_RELEASE_SVC_REFRESH_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso [following]
--2023-11-19 12:29:25--  https://software-static.download.prss.microsoft.com/dbazure/888969d5-f34g-4e03-ac9d-1f9786c66749/22631.2428.231001-0608.23H2_NI_RELEASE_SVC_REFRESH_CLIENTENTERPRISEEVAL_OEMRET_x64FRE_en-us.iso
Resolving software-static.download.prss.microsoft.com (software-static.download.prss.microsoft.com)... 2606:2800:157:3ac:1a2e:26c9:99c:8f9, 152.199.52.147
Connecting to software-static.download.prss.microsoft.com (software-static.download.prss.microsoft.com)|2606:2800:157:3ac:1a2e:26c9:99c:8f9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6209064960 (5.8G) [application/octet-stream]
Saving to: ‘index.html?LinkID=2206317&clcid=0x409&culture=en-us&country=US’

index.html?LinkID=2206317&clci 100%[==================================================>]   5.78G  81.8MB/s    in 81s     

2023-11-19 12:30:45 (73.5 MB/s) - ‘index.html?LinkID=2206317&clcid=0x409&culture=en-us&country=US’ saved [6209064960/6209064960]

❯ sha256sum index.html\?LinkID\=2206317\&clcid\=0x409\&culture\=en-us\&country\=US 
c8dbc96b61d04c8b01faf6ce0794fdf33965c7b350eaa3eb1e6697019902945c  index.html?LinkID=2206317&clcid=0x409&culture=en-us&country=US