Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code that fails to parse the Proxmark APDU EMVs #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Divide-By-0
Copy link
Collaborator

b1527dd

florent and i were trying to parse the proxmark result of my credit card but the sha-1 isnt compiling since the docs just dont describe wtf is going on with these bits. it matches a few of the bytes in https://www.openscdp.org/scripts/tutorial/emv/dda.html but not all of them at all

do any of these bytes on the apdu look familiar to u?

@Divide-By-0 Divide-By-0 changed the title add proxmark parsing code Add code that fails to parse the Proxmark APDU EMVs Jan 6, 2024
@yssf-io
Copy link
Collaborator

yssf-io commented Jan 6, 2024

are you sure decryptedSDAD corresponds to the SDAD given by your card decrypted using the card's public key? because the EMV book 2 says it should end with 0xBC if true

edit: what did you do to get the bytes (internal authenticate)?
edit 2: the concat at line 25 should have the random number generated by the terminal (or by you if you're the one sending the internal authenticate apdu), but you added 8 bytes not 4?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants