Giter VIP home page Giter VIP logo

alainiamburg / sniffrom Goto Github PK

View Code? Open in Web Editor NEW
280.0 20.0 34.0 20.02 MB

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: GNU General Public License v3.0

Python 100.00%
reverse-engineering hardware-hacking logic-analyzer flash-memory python i2c spi saleae-logic saleae sniffer

sniffrom's People

Contributors

alainiamburg avatar alexhude avatar ampotos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sniffrom's Issues

ZeroDivisionError: float division by zero

Python 2.7.18
Ubuntu 21.10.
SPI format: Time [s],Packet ID,MOSI,MISO
Logic 2 version 2.3.55
BIOS: MX25L6473F, 3V, 64Mb, v1.3

$python sniffROM.py test.csv -o spiflash_out.bin --summary
Parsing SPI data...

Traceback (most recent call last):
File "sniffROM.py", line 666, in
highest_byte+1, args.o, bytes_sniffed, ((bytes_sniffed / float(highest_byte)) * 100.0), bytes_sniffed_written)
ZeroDivisionError: float division by zero

Features TODO

  • Warning when a memory address is accessed more than once
  • Variable address lengths
  • Filter by command
  • Parse more commands
  • Support I2C flash chips
  • Auto lookup JEDEC ID to Mfg/Device
  • Parse Status Registers and Security Registers
  • Add visual output of rebuilt image vs captured data
  • Support additional export file formats from other logic analyzers
  • Support parsing traffic from multiple I2C slaves in a single capture file
  • Add new colors to the binary graph: for addresses with multiple read or write accesses
  • Derive clock frequency from packet timestamps

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.