Protecting SLIX2 using TapLinx

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Protecting SLIX2 using TapLinx

91件の閲覧回数
tomcc
Contributor I

Hi,
I'm having a problem with protecting SLIX2 by a write password from overwriting. Even when I protect the page I am able to overwrite the tag with Android NXP Tag Writer, which makes me think that I didn't protect all the pages correctly.
Here's the code that I am using:

tag.getReader().connect();
randomNumber = tag.getRandomNumber( NFCV_FLAG_DATARATE | NFCV_FLAG_ADDRESS);
xored_password = CustomModules.getUtility().xor(CustomModules.getUtility().append(randomNumber, randomNumber),{0, 0, 0, 0});
tag.setPasswordRead(xored_password, NFCV_FLAG_DATARATE | NFCV_FLAG_ADDRESS);
tag.setPasswordWrite(xored_password, NFCV_FLAG_DATARATE | NFCV_FLAG_ADDRESS);
for (int i=0;i<79;++i) { // based on SLIX2 docs there's 79 blocks, i've also tried to use 2 "pages" but it's not better
  tag.protectPage((byte)i, (byte)0x10, NFCV_FLAG_DATARATE | NFCV_FLAG_ADDRESS);
}
tag.writePasswordWrite(newPassword, NFCV_FLAG_DATARATE | NFCV_FLAG_ADDRESS);

All of the above functions succeed, yet it's possible to break the tag without write password.

ラベル(3)
0 件の賞賛
返信
0 返答(返信)
%3CLINGO-SUB%20id%3D%22lingo-sub-2246252%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ETapLinx%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%9FSLIX2%E3%81%AE%E4%BF%9D%E8%AD%B7%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2246252%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%3CBR%20%2F%3E%20SLIX2%20%E3%82%92%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF%E3%83%91%E3%82%B9%E3%83%AF%E3%83%BC%E3%83%89%E3%81%A7%E4%BF%9D%E8%AD%B7%E3%81%97%E3%81%A6%E4%B8%8A%E6%9B%B8%E3%81%8D%E3%82%92%E9%98%B2%E6%AD%A2%E3%81%99%E3%82%8B%E9%9A%9B%E3%81%AB%E5%95%8F%E9%A1%8C%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%E3%83%9A%E3%83%BC%E3%82%B8%E3%82%92%E4%BF%9D%E8%AD%B7%E3%81%97%E3%81%9F%E5%A0%B4%E5%90%88%E3%81%A7%E3%82%82%E3%80%81Android%20NXP%20Tag%20Writer%20%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%82%BF%E3%82%B0%E3%82%92%E4%B8%8A%E6%9B%B8%E3%81%8D%E3%81%A7%E3%81%8D%E3%82%8B%E3%81%9F%E3%82%81%E3%80%81%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%E3%83%9A%E3%83%BC%E3%82%B8%E3%82%92%E6%AD%A3%E3%81%97%E3%81%8F%E4%BF%9D%E8%AD%B7%E3%81%97%E3%81%A6%E3%81%84%E3%81%AA%E3%81%84%E3%81%A8%E8%80%83%E3%81%88%E3%82%89%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82%3CBR%20%2F%3E%E7%A7%81%E3%81%8C%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%82%B3%E3%83%BC%E3%83%89%E3%81%AF%E6%AC%A1%E3%81%AE%E3%81%A8%E3%81%8A%E3%82%8A%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-java%22%3E%3CCODE%20translate%3D%22no%22%3Etag.getReader().connect()%3B%0ArandomNumber%20%3D%20tag.getRandomNumber(%20NFCV_FLAG_DATARATE%20%7C%20NFCV_FLAG_ADDRESS)%3B%0Axored_password%20%3D%20CustomModules.getUtility().xor(CustomModules.getUtility().append(randomNumber%2C%20randomNumber)%2C%7B0%2C%200%2C%200%2C%200%7D)%3B%0Atag.setPasswordRead(xored_password%2C%20NFCV_FLAG_DATARATE%20%7C%20NFCV_FLAG_ADDRESS)%3B%0Atag.setPasswordWrite(xored_password%2C%20NFCV_FLAG_DATARATE%20%7C%20NFCV_FLAG_ADDRESS)%3B%0Afor%20(int%20i%3D0%3Bi%26lt%3B79%3B%2B%2Bi)%20%7B%20%2F%2F%20based%20on%20SLIX2%20docs%20there's%2079%20blocks%2C%20i've%20also%20tried%20to%20use%202%20%22pages%22%20but%20it's%20not%20better%0A%20%20tag.protectPage((byte)i%2C%20(byte)0x10%2C%20NFCV_FLAG_DATARATE%20%7C%20NFCV_FLAG_ADDRESS)%3B%0A%7D%0Atag.writePasswordWrite(newPassword%2C%20NFCV_FLAG_DATARATE%20%7C%20NFCV_FLAG_ADDRESS)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E4%B8%8A%E8%A8%98%E3%81%AE%E6%A9%9F%E8%83%BD%E3%81%AF%E3%81%99%E3%81%B9%E3%81%A6%E6%88%90%E5%8A%9F%E3%81%97%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF%E3%83%91%E3%82%B9%E3%83%AF%E3%83%BC%E3%83%89%E3%81%8C%E3%81%AA%E3%81%84%E3%81%A8%E3%82%BF%E3%82%B0%E3%82%92%E7%A0%B4%E3%82%8B%E5%8F%AF%E8%83%BD%E6%80%A7%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2246252%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E3%82%B3%E3%83%BC%E3%83%89%E3%83%BB%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%20%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%83%BB%E3%82%B3%E3%83%BC%E3%83%89%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E3%81%AF%E3%81%98%E3%82%81%E3%81%AB%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E