<<  >> (p.2)
    Author Topic: Check md5sum before running bitcoin  (Read 1458 times)
    Steve (OP)
    Hero Member
    *****
    Offline Offline

    Activity: 868
    Merit: 1008



    View Profile WWW
    June 18, 2011, 04:16:07 AM
     #1

    I'm sure it's only a matter of time before a virus targets the bitcoin executable.  I was thinking it would be a good idea to check the md5sum as a precaution prior to running the client.  I launch bitcoin from a shell script, so this check is pretty easy to add (replace "--help" with the params you use to launch bitcoin):

    Code:
    #!/bin/bash
    export EXPECTED_HASH="MD5 (bitcoin) = cff1d720be1387a5d443d7b7cb4a8e0a"
    export HASH=`md5 bitcoin`
    if [ "$HASH" == "$EXPECTED_HASH" ]; then
        ./bitcoin --help
    else
        echo Warning! The Bitcoin executable may have been tampered with!!!
    fi

    (gasteve on IRC) Does your website accept cash? https://bitpay.com
Page 1
Viewing Page: 2