python scripts to decode and extract Nikon firmwares - DSLR Hack development - CHDK Forum

python scripts to decode and extract Nikon firmwares

  • 1 Replies
  • 7383 Views
python scripts to decode and extract Nikon firmwares
« on: 27 / November / 2011, 17:06:54 »
Advertisements
Hi,

This is based on work by http://simeonpilgrim.com. I invented nothing, but this is open source and ready to use. Do not forget credit and feel free to update it !

to decrypt a package:
Code: [Select]
python nikon_fir_dec.py D3S_0101.bin D3S_0101_ext.bin
to dump / parse the package content:
Code: [Select]
python nikon_fir_dump.py -c D3S_0101_ext.bin
Dump decrypted Nikon firmwares v0.2
based on work by http://simeonpilgrim.com

--- header ---
0x0000: ? = 91873f9a04d225c0dc2abdbe4bb4e594ed1e372231432bcf4d8ef76be9e1fb45
0x0020: nb_record = 2
0x0024: 1st record offset = 0x70
0x0030: ---  record name  |  offset  | length ---
  0x0030: ad3s010100.bin   0x00000070 0x00080002 0 0
  0x0050: bd3s101c.bin     0x00080072 0x00700000 0 0
--- contents ---
  0x00000070:  0101000009120415443353204669726d ...
               ... e250000fe25007000000000fc000 0e6e , length = 0x80002, sum = 0x0e6e
  0x00080072:  9f8050000000c011150187109f8f0000 ...
               ... ffffffffffffffffffffffffffff e76e , length = 0x700000, sum = 0xe76e
--- footer ---
0x00780072:  6f73 0000000000000000000000000000
package sum = 0x00000000
-c to check sums
-x to extract firmware files

Tested with D5100, D3100, D7000 and D3S firmwares (which contains Fujitsu FR and Toshiba TX19A code)

who will start CHDK for the yellow ones ;-)

Indy

*

Offline Coutts

  • *****
  • 538
  • www.flickr.com/couttsphotog
    • Flickr
Re: python scripts to decode and extract Nikon firmwares
« Reply #1 on: 28 / November / 2011, 09:49:36 »
i don't see any debug strings at first glance, looking at d7k v1.02 firmware
« Last Edit: 28 / November / 2011, 10:11:23 by Coutts »
Canon 5d
Canon 50mm f/1.8
Sigma 24mm f/1.8

Flickr

 

Related Topics


SimplePortal © 2008-2014, SimplePortal