Skip to content

A tool for passive data capture and reconnaissance of serial flash chips. It is used in conjunction with a Saleae logic analyzer to reconstruct flash memory contents and extract contextual information about device operations.

License

Notifications You must be signed in to change notification settings

MyElectronic/sniffROM

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sniffROM

A tool for passive data capture and reconnaissance of serial flash chips. It is used in conjunction with a Saleae logic analyzer to reconstruct flash memory contents and extract contextual information about device operations.

  • Supports SPI and I²C flash chips.
  • Preserves actual memory addresses of captured data.
  • Generates graphic visualization of reconstructed binary image.
  • Recognizes 100+ SPI flash commands from the following manufacturers:
    • Atmel
    • Eon
    • Fidelix
    • GigaDevice
    • Macronix
    • Numonyx
    • Spansion
    • SST
    • Winbond
usage: sniffROM.py [-h] [--addrlen [{2,3,4}]] [--endian [{msb,lsb}]]
                   [--filter [{r,w}]] [-o [O]] [--summary] [--graph] [-v]
                   input_file

sniffROM - Reconstructs flash memory contents and extracts other data from
passively sniffed commands in a Saleae logic analyzer capture file. Currently
supports SPI and I2C flash chips.

positional arguments:
  input_file            Saleae Logic SPI or I2C Analyzer Export File (.csv)

optional arguments:
  -h, --help            show this help message and exit
  --addrlen [{2,3,4}]   set length of SPI memory address in bytes (default: 3)
  --endian [{msb,lsb}]  set endianness of SPI memory bytes (default: msb)
  --filter [{r,w}]      analyze only READ or WRITE commands (default: both)
  -o [O]                flash image output file name (default: output.bin)
  --summary             print summary of sniffed commands and metadata
  --graph               show visual representation of flash layout
  -v                    increase verbosity (up to -vvv)

See Wiki for documentation

About

A tool for passive data capture and reconnaissance of serial flash chips. It is used in conjunction with a Saleae logic analyzer to reconstruct flash memory contents and extract contextual information about device operations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%