Code Monkey home page Code Monkey logo

nfc-srix-tools's Introduction

NFC SRIX Tools

A repository containing tools to read/write NFC ST SRI512 and SRIX4K tags.

Known issues

  • On 32bit machines, it should give an error

TODOs

  • Complete rewrite (I made it a year and never wrote in C before)

Prerequisites

Build

You can use the provided build.sh or follow these simple steps:

mkdir build
cd build
cmake ..
make

Tools

  • srix-dump - Dump EEPROM to file
  • srix-read - Read dump file
  • srix-restore - Restore dump to tag
  • srix-reset - Reset OTP bits

Examples

srix-dump

Dump to console: ./srix-dump

Dump to file: ./srix-dump file.bin

Usage:

Usage: ./srix-dump [dump.bin] [-h] [-v] [-u] [-s] [-a] [-r] [-t x4k|512]

Optional arguments:
  [dump.bin]   dump EEPROM to file

Options:
  -h           show this help message
  -v           enable verbose - print debugging data
  -s           print system block
  -u           print UID
  -a           enable -s and -u flags together
  -r           fix read direction
  -t x4k|512   select SRIX4K or SRI512 tag type [default: x4k]

srix-read

Usage:

Usage: ./srix-read <dump.bin> [-h] [-v] [-c 1|2] [-t x4k|512]

Necessary arguments:
  <dump.bin>   path to the dump file

Options:
  -h           show this help message
  -v           enable verbose - print debugging data
  -c 1|2       erint on one or two columns [default: 1]
  -t x4k|512   select SRIX4K or SRI512 tag type [default: x4k]

srix-restore

Usage:

Usage: ./srix-restore <dump.bin> [-h] [-v] [-t x4k|512]

Necessary arguments:
  <dump.bin>   path to the dump file

Options:
  -h           show this help message
  -v           enable verbose - print debugging data
  -t x4k|512   select SRIX4K or SRI512 tag type [default: x4k]

srix-reset

Usage:

Usage: ./srix-reset [-h] [-v]

Options:
  -h           show this help message
  -v           enable verbose - print debugging data

nfc-srix-tools's People

Contributors

doudz avatar

Stargazers

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

Watchers

 avatar  avatar

nfc-srix-tools's Issues

Write counter

Hello, I’ve got a SRI512 tag & I want to write a new value on the counter in sector 5, I’ve see it’s possible with a write block but idk how with srix tools.
Thanks!

How write a dump ?

I just give a try and it looks very promising ! 👍
Is it possible to write a dump to the same srix key ? and/or another key ?

Skip confirmation

Would it be possible to add an argument to srix-restore in order to skip write confirmation ?
for example
srix-restore -y myfile

to avoid :

This action is irreversible.
Are you sure? [Y/N] y

Problem compiling on Ubuntu 20.10

I'm trying to compile on Ubuntu 20.10 but I got some problems, any tips ? (it was working on Ubuntu 20.04)

user@mypc:~/nfc-srix-tools/build$ make
make[1] : on entre dans le répertoire « /home/user/nfc-srix-tools/build »
make[2] : on entre dans le répertoire « /home/user/nfc-srix-tools/build »
make[2] : on quitte le répertoire « /home/user/nfc-srix-tools/build »
make[2] : on entre dans le répertoire « /home/user/nfc-srix-tools/build »
[  6%] Building C object CMakeFiles/srix-reset.dir/otp_reset.c.o
[ 12%] Building C object CMakeFiles/srix-reset.dir/logging.c.o
[ 18%] Building C object CMakeFiles/srix-reset.dir/nfc_utils.c.o
[ 25%] Linking C executable srix-reset
/usr/bin/ld : CMakeFiles/srix-reset.dir/logging.c.o:(.bss+0x0) : définitions multiples de « verbose_status »; CMakeFiles/srix-reset.dir/otp_reset.c.o:(.bss+0x0) : défini pour la première fois ici
/usr/bin/ld : CMakeFiles/srix-reset.dir/logging.c.o:(.bss+0x4) : définitions multiples de « verbosity_level »; CMakeFiles/srix-reset.dir/otp_reset.c.o:(.bss+0x4) : défini pour la première fois ici
/usr/bin/ld : CMakeFiles/srix-reset.dir/nfc_utils.c.o:(.rodata+0x0) : définitions multiples de « nmISO14443B »; CMakeFiles/srix-reset.dir/otp_reset.c.o:(.rodata+0x0) : défini pour la première fois ici
/usr/bin/ld : CMakeFiles/srix-reset.dir/nfc_utils.c.o:(.rodata+0x8) : définitions multiples de « nmISO14443B2SR »; CMakeFiles/srix-reset.dir/otp_reset.c.o:(.rodata+0x8) : défini pour la première fois ici
/usr/bin/ld : CMakeFiles/srix-reset.dir/nfc_utils.c.o:(.bss+0x0) : définitions multiples de « verbose_status »; CMakeFiles/srix-reset.dir/otp_reset.c.o:(.bss+0x0) : défini pour la première fois ici
/usr/bin/ld : CMakeFiles/srix-reset.dir/nfc_utils.c.o:(.bss+0x4) : définitions multiples de « verbosity_level »; CMakeFiles/srix-reset.dir/otp_reset.c.o:(.bss+0x4) : défini pour la première fois ici
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/srix-reset.dir/build.make:114 : srix-reset] Erreur 1
make[2] : on quitte le répertoire « /home/user/nfc-srix-tools/build »
make[1]: *** [CMakeFiles/Makefile2:82 : CMakeFiles/srix-reset.dir/all] Erreur 2
make[1] : on quitte le répertoire « /home/user/nfc-srix-tools/build »
make: *** [Makefile:84 : all] Erreur 2

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.