Checking the new (6+) CWM backups blobs integrity (solution inside)

InfX

Senior Member
May 1, 2008
885
216
73
I wanted a way to validate the SHA256 of the files in the new CWM backups, yet couldn't find anything readily available to do this, ending up creating a simple bat file, combining a dir command to list the blobl files, sed with regex to parse the hashes and the normal sha256deep hash checker to do this.

Just in case someone else may need this, here it is:

Code:
@echo off
echo Listing blobs...
dir blobs /a-d /s /b | sed -nr "s/^.*([0-9A-Fa-f]{3})\\([0-9A-Fa-f]{61})$/\1\2  \1\/\2/p" > blobsck.txt
echo Checking blobs SHA256, listing bad blobs below...
sha256deep -j1 -r -x blobsck.txt blobs/*
Attached: The bat file (with comments) + win32 version of sed and sha256deep. Just unpack into the copied clockworkmod directory, next to the blobs dir, and run the bat.

@moderatorshttp://forum.xda-developers.com/member.php?u=1662773 - I know the S3 forum probably isn't the right place for this, but since i use it with my S3, only tested it on S3 backups and don't know any better place to put this in, i am posting here. Feel free to move wherever you find appropriate.
 

Attachments

Last edited: