PlaneShift

Support => Technical Help: Problems BEFORE entering the game => Topic started by: MCM on April 29, 2023, 06:36:34 am

Title: Link broken to md5 checking tool in the site
Post by: MCM on April 29, 2023, 06:36:34 am
I have troubles with my internet line, and wanted to verify the package I downloaded. I tried to click on your :
"Tip: You can check if the file you downloaded is exactly the same as the one we have here downloading this tool (https://www.planeshift.it/download/md5sum.exe).", which is located just under the Windows client downloading lines, in the download page of the site planeshift.it.
This leads to a 404 page, and no tool to check the md5 sum is available here.
Title: Re: Link broken to md5 checking tool in the site
Post by: Talad on May 01, 2023, 05:57:10 am
Hi, I updated the page now! Thanks for the notice.
Title: Re: Link broken to md5 checking tool in the site
Post by: Seytra on September 17, 2023, 03:07:24 pm
Even Windows has an integrated MD5 (or SHA for the matter) tool, it's just hidden inside a multi-tool binary: certutil.
Usage: certutil -hashfile <file> MD5
Where "MD5" is the algorithm to use (it uses SHA1 by default, so don't forget to append that). "<file>" is the full path name of the file to be checked.

Example:
certutil -hashfile "e:\PSUnreal-Windows-0.7.36.zip" MD5

It doesn't seem to be able to check against a supplied sum, so you have to compare the output manually. For anything other than maliciously modified files, looking at the first and last three bytes suffices and speeds things up a lot. To effectively combat maliciousness you really can't use MD5 in the first place, SHA256 would be minimum (better SHA512) because MD5 is prone to collision attacks.
Also, you would have to provide the checksum via a different method / website than the corresponding file, because if an attacker can modify the webpage to change the provided binary or the link to it, then it's trivial to modify the checksum to match that.