Solved Checksum verification
-
Example: Snom PA1 firmware page: http://wiki.snom.com/Firmware/V8_7_5_75_MRU_PA1
wget http://downloads.snom.com/fw/snomPA1-8.7.5.75-SIP-f.bin
but then I need to build a checksum file....
echo "a5a13fa3cce0127a4fb3dc211c58f36437e27f504cf64a9f13233b08d63791ba snomPA1-8.7.5.75-SIP-f.bin" > test256.sum
Then I can test it.
sha256sum snomPA1-8.7.5.75-SIP-f.bin -c test256.sum sha256sum: snomPA1-8.7.5.75-SIP-f.bin: no properly formatted SHA256 checksum lines found snomPA1-8.7.5.75-SIP-f.bin: OK
-
@stacksofplates said in Checksum verification:
Is it just the checksum on a page or is there content around the checksum?
on a page as you can see.
-
@JaredBusch said in Checksum verification:
@stacksofplates said in Checksum verification:
Is it just the checksum on a page or is there content around the checksum?
on a page as you can see.
that wasn't here when I asked. There's not a way as far as I know but I think you can do this:
#!/usr/bin/env bash sum=$1 file=$2 file_sum=$(sha256sum $file | awk '{print $1 }') diff <(echo $1) <(echo "$file_sum")
Then just do
script.sh copiedSum file.txt
-
Not elegant, but I don't personally know of another way. If you don't get output, they are the same.
-
@stacksofplates said in Checksum verification:
that wasn't here when I asked.
Right, I know. I meant that as in now there is an example as you can see it is jsut on the page...
-
@JaredBusch said in Checksum verification:
@stacksofplates said in Checksum verification:
that wasn't here when I asked.
Right, I know. I meant that as in now there is an example as you can see it is jsut on the page...
Ah thought maybe I was getting some sarcasm. My bad.
-
@stacksofplates said in Checksum verification:
@JaredBusch said in Checksum verification:
@stacksofplates said in Checksum verification:
Is it just the checksum on a page or is there content around the checksum?
on a page as you can see.
that wasn't here when I asked. There's not a way as far as I know but I think you can do this:
#!/usr/bin/env bash sum=$1 file=$2 file_sum=$(sha256sum $file | awk '{print $1 }') diff <(echo $1) <(echo "$file_sum")
Then just do
script.sh copiedSum file.txt
Damn. well i guess I could go find the md5/sh256 code and submit a pull req.. but bleh.. so much work.
-
Maybe something like this?
echo 'a5a13fa3cce0127a4fb3dc211c58f36437e27f504cf64a9f13233b08d63791ba snomPA1-8.7.5.75-SIP-f.bin' | sha256sum -c
-
@stacksofplates said in Checksum verification:
@JaredBusch said in Checksum verification:
@stacksofplates said in Checksum verification:
that wasn't here when I asked.
Right, I know. I meant that as in now there is an example as you can see it is jsut on the page...
Ah thought maybe I was getting some sarcasm. My bad.
S'ok, I can see I worded it badly.
-
Did the piping example I posted above satisfy your switch requirement even though it isn't a switch?
Or maybe you're looking for something else?
-
@Pete-S said in Checksum verification:
Did the piping example I posted above satisfy your switch requirement even though it isn't a switch?
Or maybe you're looking for something else?
Was busy dealing with the firmware update itself.
Yes. That works simply enough. Still annoyed that they don't have a switch..