Comments (4)
File ID 0 appears to have some ASN.1-encoded data, which is probably an (EC)DSA signature of some sort. After skipping 0x1C bytes and dumping the bytes into openssl's asn1parse:
0:d=0 hl=2 l= 52 cons: SEQUENCE
2:d=1 hl=2 l= 24 prim: INTEGER :3B558AB46FBF8F5B70ED9B47F214800BFB3140F9E05C2E9B
28:d=1 hl=2 l= 24 prim: INTEGER :47BAC77B0CEED3E8ADAEFB69609781F447CD90FF34A9FF72
54:d=0 hl=2 l= 0 prim: EOC
from farebot.
Can you supply the annotations for this dump or (preferably) another dump with annotations? Like current balance and serial number printed on card
from farebot.
TLDR: only serial number and issue date is stored on those cards, no balance or trips.
I got my hands on one of those.
- In first 0x1c bytes only the 4 bytes at offset 0xc differ and they correspond to MFG serial number printed on the bottom of the card.
- File 1 contains a const 0x0101 and issue timestamp. Otherwise it's full of zeros.
- The DER blob is also there. Note: it may contain encrypted data with ElGamal rather than a signature but I doubt it since it would mean that the encrypted data is uner 25 bytes and has no signature which is against best practices except if it's some kind of authentication key but this usecase seems also unlikely.
Presumably it's signature of firsct 0x1c bytes
So it doesn't look like balance is stored on the card. The main serial number may be derivable from MFG number. if it's not the main serial number is unavailable.
from farebot.
PR: metrodroid/metrodroid#196 . But as I said: almost no info is stored on the card
from farebot.
Related Issues (20)
- "Attempt to invoke virtual method 'short android.os.Bundle.getShort(java.lang.String)' on a null object reference" HOT 3
- CEPAS 2.0 card 'Invalid Response' HOT 8
- Support For Touch n Go cards (Malaysia) HOT 1
- Null reference error reading PASMO HOT 5
- Add support for URBS bus cards (Curitiba, BR) HOT 3
- Add support for Ventra tickets (Chicago, IL) HOT 7
- Not working Pixel 2 XL HOT 5
- App crashes when it gets tapped by Nfc A cards
- CEPAS EZ-Link newer cards and Pixel HOT 2
- Unique constraint crash after reading Clipper card HOT 1
- Adding keys crashes app HOT 1
- iOS 13 Support? HOT 9
- Exception when reading Suica card HOT 1
- FareBot app crashes when attempting to delete the card history in the app menu HOT 1
- ClipperRefill: 0x1de
- Clipper card always displays $13.65
- User Suggestion: DO NOT Vibrate on Card Detection
- fail to read CEPAS, but reads with SignCard app
- Could not instantiate annotation processor 'com.ryanharter.auto.value.gson.AutoValueGsonAdapterFactoryProcessor' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from farebot.