Skip to content

Lookup tables for SHA256-hashed MAC addresses

Notifications You must be signed in to change notification settings

Bazukakape/mac-minitables

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mac-minitables Build Status

This project is a small proof-of-concept, showing why hashing MAC-addresses does not provide anonymity. I.e. the hashing of MAC-addresses is easily reversible.

Usage

# Clone the repository
git clone https://github.com/dsprenkels/mac-minitables.git

# Build the app
cargo build --release

# Generate the lookup-tables for a bunch of popular prefixes
# THIS WILL TAKE A REALLY LONG TIME
./target/release/mac-minitables compute --table-dir tables/ lists/popular_addrs.txt

# Compute the sha256 hash of a MAC address
./target/release/mac-minitables hash A0:39:F7:1E:22:86 | tee address-hash.txt

# Do a lookup in the tables and find a preimage of the hash
./target/release/mac-minitables lookup --table-dir tables/ "$(cat address-hash.txt)"

About

Lookup tables for SHA256-hashed MAC addresses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%