Revision f231f3a5e910e024789963d3d8464251a4ebf1b4 authored by g3gg0 on 19 December 2016, 01:34:52 UTC, committed by g3gg0 on 19 December 2016, 01:34:52 UTC
1 parent 0a0d8e3
firmsum.py
# python firmsum.py file offset length
import ctypes
import array
import string
import sys
f = open(sys.argv[1], 'rb')
f.seek( string.atoi( sys.argv[2], 16 ) )
firm = f.read( string.atoi( sys.argv[3], 16 ) )
f.close()
sum = sum( array.array('l', firm) )
print 'firsum=0x%x' % sum
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...