aczid / crypto1_bs

Bitsliced Crypto-1 brute-forcer
205 stars 78 forks source link

I can't compile your project #9

Closed aleks921 closed 8 years ago

aleks921 commented 8 years ago

I want to compile your project libnfc_crypto1_crack. But i get error: not found #include < nfc/nfc.h >. How this fixed and compile your project ? Do I understand correctly that your program can without proksmarka, without sniffing, hackьmifare classic emulated? I will appreciate if you send me a compiled program

aczid commented 8 years ago

Hmm, I need to get a card like that.

aleks921 commented 8 years ago

Are you moscow ?)

aczid commented 8 years ago

No, Amsterdam... Are they used for public transport in Russia? I will look to find one local.

aczid commented 8 years ago

Ok, it looks like libnfc cannot detect these kinds of cards because of the SAK (Select Acknowledge Reply). In JCOP 4.1 cards this can be 0x20 or 0x28 and I guess you have a version 2.2, not 2.3.1 which returns 0x20. (See this PDF https://milaq.net/downloads/rfid/docs/Practical%20Attacks%20on%20the%20MIFARE%20Classic-Wee%20Hon%20Tan). In libnfc/chips/pn53x.c on line 2068/2069 the SAK byte is checked against 0x8 and if it matches it will return that it detected a MFC tag. This will fail for the cards that send a SAK of 0x20. I think this may be related to your problem.

aleks921 commented 8 years ago

Yes, this card uses in transport. Sak 0x28 mct show. Do you say to change cod in pn53x.c ?

aleks921 commented 8 years ago

JCOP41 v2.2 sak 20 JCOP41 v2.3.1 sak 28 = My card is 28. I think my card version is 2.3.1.

aczid commented 8 years ago

Ok, then it's something else I guess...

aleks921 commented 8 years ago

I try this card https://strelkacard.ru/ jcop41 with emulation classic 1k.

aleks921 commented 8 years ago

in pn53x.c if (CHIP_DATA(pnd)->current_target->nti.nai.btSak & 0x08)
You propose change this so: if (CHIP_DATA(pnd)->current_target->nti.nai.btSak & 0x28) And try hack this card with sak 28, right .

aczid commented 8 years ago

No, the & 0x8 will also match 0x28. There is something else going wrong just when the card is woken up.

aleks921 commented 8 years ago

I think acr122 need to switch with emulation mode.

aleks921 commented 8 years ago

Off emulation on acr122 comand find: FF 00 00 00 03 D4 12 24 I want to do this comand on linux and try to run you program. But how in Linux send comand on acr122u.

aczid commented 8 years ago

libnfc does that. I don't know what else to tell you. :/

aczid commented 8 years ago

Are these cards easy to get? Do you think you could mail me one? :)

aleks921 commented 8 years ago

I think you send card but i don't know how cost this on post mail.

aczid commented 8 years ago

I can help you with the cost of the card + shipping if it's not too much. We can split it 50/50? Please check the cost.

aleks921 commented 8 years ago

Ok, I try know how cost this.

aleks921 commented 8 years ago

Give me please your adress, i send you this card.

aczid commented 8 years ago

Do you have Telegram? I am @aczid on there.

aleks921 commented 8 years ago

I write you in telegram.

aleks921 commented 8 years ago

Can install solve_bs.c on windows system or not. I want try cracking on windows after gather nonces on kali linux.

aczid commented 8 years ago

Nope, sorry, not yet.

aleks921 commented 8 years ago

I try write telegram, are you in telegram now ?

aleks921 commented 8 years ago

I in telegram @roman921. Write me please.