Closed SailReal closed 7 years ago
Hi,
the script is pretty cool but by getting the mifare password out of the DKeyA and DKeyB I've some problems:
mifarekeys v0.1b DKeyA: FEFEFEFEFEFE7E00 DKeyB: 007EFEFEFEFEFEFE Traceback (most recent call last): File "mifarepwd.py", line 119, in des3= DES3.new(deskeyABA,DES.MODE_CBC,'\0\0\0\0\0\0\0\0') File "C:\Python33\lib\site-packages\Crypto\Cipher\DES3.py", line return DES3Cipher(key, _args, _kwargs) File "C:\Python33\lib\site-packages\Crypto\Cipher\DES3.py", line __ blockalgo.BlockAlgo.init(self, _DES3, key, _args, _kwargs) File "C:\Python33\lib\site-packages\Crypto\Cipher\blockalgo.py", init self._cipher = factory.new(key, _args, *_kwargs) ValueError: Invalid key size (must be either 16 or 24 bytes
Hi,
the script is pretty cool but by getting the mifare password out of the DKeyA and DKeyB I've some problems:
mifarekeys v0.1b DKeyA: FEFEFEFEFEFE7E00 DKeyB: 007EFEFEFEFEFEFE Traceback (most recent call last): File "mifarepwd.py", line 119, in
des3= DES3.new(deskeyABA,DES.MODE_CBC,'\0\0\0\0\0\0\0\0')
File "C:\Python33\lib\site-packages\Crypto\Cipher\DES3.py", line
return DES3Cipher(key, _args, _kwargs)
File "C:\Python33\lib\site-packages\Crypto\Cipher\DES3.py", line
__
blockalgo.BlockAlgo.init(self, _DES3, key, _args, _kwargs)
File "C:\Python33\lib\site-packages\Crypto\Cipher\blockalgo.py",
init
self._cipher = factory.new(key, _args, *_kwargs)
ValueError: Invalid key size (must be either 16 or 24 bytes