-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcorrect PIN.txt
88 lines (80 loc) · 27.9 KB
/
correct PIN.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Emerald Password Manager for Smartcards
__
(`/\
`=\/\ __...--~~~~~-._ _.-~~~~~--...__
`=\/\ \ / \\
`=\/ V \\
//_\___--~~~~~~-._ | _.-~~~~~~--...__\\
// ) (..----~~~~._\ | /_.~~~~----.....__\\
===( )==========\\|//====================
\___/ `---`
PC : Selected communication with EmeraldApplet in a simulator.
PC : Simulated applet was installed with PIN `1 2 3 4`.
PC ... SC: Established connection to smartcard.
PC : Enter 4 digit PIN.
1234
PC : Using PIN `[1, 2, 3, 4]`
##################################################
Begin: demo plaintext
PC --> SC: Sending example plaintext message to card.
--> 0100000000
--> [0100000000] 5
<-- 00010203040506070809 9000 (10)
<-- 00010203040506070809 9000 (10) [13 ms]
PC <== SC: Received response:[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
End: demo plaintext
##################################################
PC <-> SC: Key agreement started.
--> AA0100000001D708434F4D505554455241040EC2251ECF0DE5AF74972D5F5C4C0A4DC547D1E679A15C71FFB90B4E1454EDE633CC39DBC2CB55BAD614E503AA125BB5E6AE993A5F5E5CFC7821C2B66F81EFA241047D5A804E1D1F555DA8FF4ED8C52DF948F397DA15A6B929AF0BBDC19B97DE7302208B21A4A0003D31C190CC6C52737406C5A99CE21B07BA40C67AF901EBCE26BC41040EC2251ECF0DE5AF74972D5F5C4C0A4DC547D1E679A15C71FFB90B4E1454EDE633CC39DBC2CB55BAD614E503AA125BB5E6AE993A5F5E5CFC7821C2B66F81EFA241045B6FC83ECC7F4D05ED23415FD66131BF176BDC4535B9E33D9729F20D7BCE22252B24CD053348CBD23E3E05ECCDC18657779DB553AB61A4EFD25B5528EC3AAB392000E32A7C4B25FC9D7D2AF263D044BCB85631C1F4DB6F8700FA80016AC1DE0C0341047D5A804E1D1F555DA8FF4ED8C52DF948F397DA15A6B929AF0BBDC19B97DE7302208B21A4A0003D31C190CC6C52737406C5A99CE21B07BA40C67AF901EBCE26BC41041CD05F0CC75961C5A4BF39A1ECA1E5836A4FEA1E485F04CAD9FE76027B734D947D4E376DA7B458E080BAABA0518D44E1A33D633A03B369C7DE73B3B88BA8213C20FEF1BEF71FD0189A08427177CA6935E2355E41EE8BC301E0C75368BDB798203E
--> [AA0100000001D708434F4D505554455241040EC2251ECF0DE5AF74972D5F5C4C0A4DC547D1E679A15C71FFB90B4E1454EDE633CC39DBC2CB55BAD614E503AA125BB5E6AE993A5F5E5CFC7821C2B66F81EFA241047D5A804E1D1F555DA8FF4ED8C52DF948F397DA15A6B929AF0BBDC19B97DE7302208B21A4A0003D31C190CC6C52737406C5A99CE21B07BA40C67AF901EBCE26BC41040EC2251ECF0DE5AF74972D5F5C4C0A4DC547D1E679A15C71FFB90B4E1454EDE633CC39DBC2CB55BAD614E503AA125BB5E6AE993A5F5E5CFC7821C2B66F81EFA241045B6FC83ECC7F4D05ED23415FD66131BF176BDC4535B9E33D9729F20D7BCE22252B24CD053348CBD23E3E05ECCDC18657779DB553AB61A4EFD25B5528EC3AAB392000E32A7C4B25FC9D7D2AF263D044BCB85631C1F4DB6F8700FA80016AC1DE0C0341047D5A804E1D1F555DA8FF4ED8C52DF948F397DA15A6B929AF0BBDC19B97DE7302208B21A4A0003D31C190CC6C52737406C5A99CE21B07BA40C67AF901EBCE26BC41041CD05F0CC75961C5A4BF39A1ECA1E5836A4FEA1E485F04CAD9FE76027B734D947D4E376DA7B458E080BAABA0518D44E1A33D633A03B369C7DE73B3B88BA8213C20FEF1BEF71FD0189A08427177CA6935E2355E41EE8BC301E0C75368BDB798203E] 478
<-- 0443415244410428D02BD086FBB7C4BCA64D5EF179CC5BC3716956B3B0673548B6080CB5779C5F210077A52DEC726876F3AD052A698A581802B8A1BD7C6183F6AD6952AF419DD041040E14EDFE34D75E7587AD35320074BF3C36B3183490F876194A30EFB5196AE7482F2402FEDDEC88EAD67B1D5338B056DA1E86FFED46E9FAF62C5FB1594200F1F0410477ACE17A362AA6256AA4E2A6FF97A7CAC67C7014A4371E3C30531864BC86DD9716D79380053E8D7FAD101AEA3DD202B76F89299BFDF6BB3BB8B3E1D090A63433410428D02BD086FBB7C4BCA64D5EF179CC5BC3716956B3B0673548B6080CB5779C5F210077A52DEC726876F3AD052A698A581802B8A1BD7C6183F6AD6952AF419DD041046E8EF19C89BB491D3681D28F754112A8259FDDD67C435C72E49A6B06AF231E5C01C79C403DCB9D8AC332B53552BA80920DBC2B2F2F1D2D09A0787D5FE9E0DB222001F9705AD86ADA084C573B7389FBEAEFE8BAA3F4057123088CCDC04503C98E7241040E14EDFE34D75E7587AD35320074BF3C36B3183490F876194A30EFB5196AE7482F2402FEDDEC88EAD67B1D5338B056DA1E86FFED46E9FAF62C5FB1594200F1F0410431DD7485937CB4078C834EB0E5A16DE55E7ACDD8A925538C50425B70A52EE356264AD7303F8C22D4EF4ADC770D3E1906A2312AC818E7DB5053732FBFC1C4A5B22001014454DCD672E0B329148EB8EB4A59660E78FFC5119483D03FE5063C1D6E2541041C3D47BD209B9CC1AAA4B3D49D0C766290751D5C06755407115E09BF75CDDAC561CE12F206711531D4B7C85DAE9D47430C635757321F2B74DC5A5BE406EDB8B641047706187EC68A2445592E0DAF73F4B26F973709715C2CAF11D1FD4380B19F4615156EC8AE05CF413E2813194314265DC271AF319D57672011BE06216063ACC35C2001AC93F627606A83823D61EC412204BAC19455E04133884A6324C99EBE9DF294 9000 (698)
<-- 0443415244410428D02BD086FBB7C4BCA64D5EF179CC5BC3716956B3B0673548B6080CB5779C5F210077A52DEC726876F3AD052A698A581802B8A1BD7C6183F6AD6952AF419DD041040E14EDFE34D75E7587AD35320074BF3C36B3183490F876194A30EFB5196AE7482F2402FEDDEC88EAD67B1D5338B056DA1E86FFED46E9FAF62C5FB1594200F1F0410477ACE17A362AA6256AA4E2A6FF97A7CAC67C7014A4371E3C30531864BC86DD9716D79380053E8D7FAD101AEA3DD202B76F89299BFDF6BB3BB8B3E1D090A63433410428D02BD086FBB7C4BCA64D5EF179CC5BC3716956B3B0673548B6080CB5779C5F210077A52DEC726876F3AD052A698A581802B8A1BD7C6183F6AD6952AF419DD041046E8EF19C89BB491D3681D28F754112A8259FDDD67C435C72E49A6B06AF231E5C01C79C403DCB9D8AC332B53552BA80920DBC2B2F2F1D2D09A0787D5FE9E0DB222001F9705AD86ADA084C573B7389FBEAEFE8BAA3F4057123088CCDC04503C98E7241040E14EDFE34D75E7587AD35320074BF3C36B3183490F876194A30EFB5196AE7482F2402FEDDEC88EAD67B1D5338B056DA1E86FFED46E9FAF62C5FB1594200F1F0410431DD7485937CB4078C834EB0E5A16DE55E7ACDD8A925538C50425B70A52EE356264AD7303F8C22D4EF4ADC770D3E1906A2312AC818E7DB5053732FBFC1C4A5B22001014454DCD672E0B329148EB8EB4A59660E78FFC5119483D03FE5063C1D6E2541041C3D47BD209B9CC1AAA4B3D49D0C766290751D5C06755407115E09BF75CDDAC561CE12F206711531D4B7C85DAE9D47430C635757321F2B74DC5A5BE406EDB8B641047706187EC68A2445592E0DAF73F4B26F973709715C2CAF11D1FD4380B19F4615156EC8AE05CF413E2813194314265DC271AF319D57672011BE06216063ACC35C2001AC93F627606A83823D61EC412204BAC19455E04133884A6324C99EBE9DF294 9000 (698) [156 ms]
--> AAEE0000F008434F4D5055544552410445FD031F7C00927439729B903BC697E04ECD33BF7D92EF6F5CCD63E681F5824F16E60889ABA1DD23B6E5AB861C03E7CD27EBFA2B28BA3EB4B631FE27C8FA30D241040FB3003EAD31FEC0948E18EEA46ABC5B7593BBC11F0CEFF210569B8E3845618E1207E186CBF81C22E8670ED0FDDAE5ACDF1B28242FE2FB259C02AA6286A74A2A410434CB36E30B96EE6AEFAFEA1F9ABAC03E5AE9087D68F824161FC809A29A2254D025457AF8966D20ADBCCB8441D167742FC4C32676795A0558FB3485CEE830CEED20F5B30B06174A3FF2990FDAD9083AF899AEB499E6212AB6ED62B074438D7DB6CA
--> [AAEE0000F008434F4D5055544552410445FD031F7C00927439729B903BC697E04ECD33BF7D92EF6F5CCD63E681F5824F16E60889ABA1DD23B6E5AB861C03E7CD27EBFA2B28BA3EB4B631FE27C8FA30D241040FB3003EAD31FEC0948E18EEA46ABC5B7593BBC11F0CEFF210569B8E3845618E1207E186CBF81C22E8670ED0FDDAE5ACDF1B28242FE2FB259C02AA6286A74A2A410434CB36E30B96EE6AEFAFEA1F9ABAC03E5AE9087D68F824161FC809A29A2254D025457AF8966D20ADBCCB8441D167742FC4C32676795A0558FB3485CEE830CEED20F5B30B06174A3FF2990FDAD9083AF899AEB499E6212AB6ED62B074438D7DB6CA] 245
<-- 9000
<-- 9000 [58 ms]
PC : New shared session key established.
PC <-> SC: Key agreement finished successfully.
##################################################
Begin: demo password storage
PC --> SC: Set password `All your` to slot 0.
--> EE000000806C5544797A91115DC3330EBD003851D2B5F4623E96E4D8374BE489F2BBE6D432CB9960A85C1860E9D73AA57C61FE1F5EFDDC82F16A10530663614CEA2E07E92CB84D240B2BE39175AA17A18771D4B925E6D6C86B6C9D329EA87A63DCAF13B8027D31192AB1913C501686EE477CB8718CA355FAE2CC70625EFAB2637F4C632A85
--> [EE000000806C5544797A91115DC3330EBD003851D2B5F4623E96E4D8374BE489F2BBE6D432CB9960A85C1860E9D73AA57C61FE1F5EFDDC82F16A10530663614CEA2E07E92CB84D240B2BE39175AA17A18771D4B925E6D6C86B6C9D329EA87A63DCAF13B8027D31192AB1913C501686EE477CB8718CA355FAE2CC70625EFAB2637F4C632A85] 133
<-- 6C5544797A91115DC3330EBD003851D277EC4E1E4984E6E48625A29F743D04AA7DAACEF16BC3FB49113C6EFBAF6F24E1FDDC82F16A10530663614CEA2E07E92CB84D240B2BE39175AA17A18771D4B9258F9E9F0700A00EFD8B2954D607FF67474D3B2F64B9DFE054798F20FDA09F79625A47EB3C3B73CACE279377B17AEAB147 9000 (128)
<-- 6C5544797A91115DC3330EBD003851D277EC4E1E4984E6E48625A29F743D04AA7DAACEF16BC3FB49113C6EFBAF6F24E1FDDC82F16A10530663614CEA2E07E92CB84D240B2BE39175AA17A18771D4B9258F9E9F0700A00EFD8B2954D607FF67474D3B2F64B9DFE054798F20FDA09F79625A47EB3C3B73CACE279377B17AEAB147 9000 (128) [9 ms]
PC <== SC: Password successfully set to slot 0.
PC --> SC: Set password `base are` to slot 1.
--> EE000000802AA2AB70039C5510DDF06420ECEB88922B52E5279A555F80CB88C49070560ADCFAE45A6F4BF00BB67CB1CAE5861E84DA8AB14DDA0173CB103AA8192ECE6BA16CE2D93F9B455C1C664BB14ED2E9A9B45A4090621A7A8FC2A5C04A328A27FECAC2F5E94BA70CB2866E2639E388E12A4B76609B08FF67A998C8F1B62F9E61A8BE7A
--> [EE000000802AA2AB70039C5510DDF06420ECEB88922B52E5279A555F80CB88C49070560ADCFAE45A6F4BF00BB67CB1CAE5861E84DA8AB14DDA0173CB103AA8192ECE6BA16CE2D93F9B455C1C664BB14ED2E9A9B45A4090621A7A8FC2A5C04A328A27FECAC2F5E94BA70CB2866E2639E388E12A4B76609B08FF67A998C8F1B62F9E61A8BE7A] 133
<-- 2AA2AB70039C5510DDF06420ECEB889288BF305A6D2258F98F00D6B3521BE9BE10F607E9242906C4252B3A9A48BE281A8AB14DDA0173CB103AA8192ECE6BA16CE2D93F9B455C1C664BB14ED2E9A9B45AFAE38E14A1D5714AD54E68F1DF27C095696754D5FCB1BFE52B2B03E352D3994F47FC75832CD85FDE3D473609A35189BA 9000 (128)
<-- 2AA2AB70039C5510DDF06420ECEB889288BF305A6D2258F98F00D6B3521BE9BE10F607E9242906C4252B3A9A48BE281A8AB14DDA0173CB103AA8192ECE6BA16CE2D93F9B455C1C664BB14ED2E9A9B45AFAE38E14A1D5714AD54E68F1DF27C095696754D5FCB1BFE52B2B03E352D3994F47FC75832CD85FDE3D473609A35189BA 9000 (128) [16 ms]
PC <== SC: Password successfully set to slot 1.
PC --> SC: Set password `belong to us` to slot 2.
--> EE0000008051373E8B6FDEC284DB569204CA13D2CADE730CAF8CDB8C74BDCCC7645A490C4064160499C9E582F7A731EC05993E43CEC58B75D5E0881EA907F5B0F300743647A7C670F9179CF458DE2CB868ED2F1E32C0CC4D053CD4EE826D294B190E2BB8D3E6AE868957CD5EE446557C28A4821590F4DDA1C1255A5E50813DB1EBDF65D093
--> [EE0000008051373E8B6FDEC284DB569204CA13D2CADE730CAF8CDB8C74BDCCC7645A490C4064160499C9E582F7A731EC05993E43CEC58B75D5E0881EA907F5B0F300743647A7C670F9179CF458DE2CB868ED2F1E32C0CC4D053CD4EE826D294B190E2BB8D3E6AE868957CD5EE446557C28A4821590F4DDA1C1255A5E50813DB1EBDF65D093] 133
<-- 51373E8B6FDEC284DB569204CA13D2CAD489256E41C77BA3A2B38AC15407406C4D4CAE18B5E550213F476E947ABC5A3BC58B75D5E0881EA907F5B0F300743647A7C670F9179CF458DE2CB868ED2F1E323B6D6A9958C6893FA9ACB99AA701A3A7DAB82881701228BD81646A0A8150EACD14D8BFDAC4090621E5AA769B159A6974 9000 (128)
<-- 51373E8B6FDEC284DB569204CA13D2CAD489256E41C77BA3A2B38AC15407406C4D4CAE18B5E550213F476E947ABC5A3BC58B75D5E0881EA907F5B0F300743647A7C670F9179CF458DE2CB868ED2F1E323B6D6A9958C6893FA9ACB99AA701A3A7DAB82881701228BD81646A0A8150EACD14D8BFDAC4090621E5AA769B159A6974 9000 (128) [32 ms]
PC <== SC: Password successfully set to slot 2.
PC --> SC: Get password from slot 2.
--> EE000000805DCAB02A0E3D50461E73F1BB7A9549A3499CA2A76951EB500F19537FFE8038DFAEDCC6D59390A5E4798FD34D56EACB38F08E733F9E2FF6B3516A8605F09D7188F4ADD16AC4E89F00A6B5DE6014757AA4000B9497503B3F80553E2C76F9FD8ECC06A078785318CBDE0A3656662171DB9E85E79565131E300B47CCCC674F773B63
--> [EE000000805DCAB02A0E3D50461E73F1BB7A9549A3499CA2A76951EB500F19537FFE8038DFAEDCC6D59390A5E4798FD34D56EACB38F08E733F9E2FF6B3516A8605F09D7188F4ADD16AC4E89F00A6B5DE6014757AA4000B9497503B3F80553E2C76F9FD8ECC06A078785318CBDE0A3656662171DB9E85E79565131E300B47CCCC674F773B63] 133
<-- 5DCAB02A0E3D50461E73F1BB7A9549A360B68484253509DD2331ECF30915D925A8BF106A4A7BACE834163F4A3BB0125AF08E733F9E2FF6B3516A8605F09D7188F4ADD16AC4E89F00A6B5DE6014757AA4419B93208E18598015C81823E6A7F137939B775475C1AFC6EAA68A686320321F1EA65DCE306A4EAB76E7C2D690FFABBD 9000 (128)
<-- 5DCAB02A0E3D50461E73F1BB7A9549A360B68484253509DD2331ECF30915D925A8BF106A4A7BACE834163F4A3BB0125AF08E733F9E2FF6B3516A8605F09D7188F4ADD16AC4E89F00A6B5DE6014757AA4419B93208E18598015C81823E6A7F137939B775475C1AFC6EAA68A686320321F1EA65DCE306A4EAB76E7C2D690FFABBD 9000 (128) [25 ms]
PC <== SC: Retrieved password `belong to us` from slot 2.
PC --> SC: Get password from slot 1.
--> EE00000080F9C06213585289654996F0C40467B9A6D7F54954EFD75ED4AC1E443A82253541460D0048FB1AC5FC5538A7C4E57EC1737B4917D289818FD9C5FD423D8A804D948037E034C671779CDED673BE311B632A04B2CD21E1E41C5AE6DE388E7CF1E2256EFFE7E477151716CBB8DFEBF79DDB1108BD87E47C34C2C150BF33CA138134A5
--> [EE00000080F9C06213585289654996F0C40467B9A6D7F54954EFD75ED4AC1E443A82253541460D0048FB1AC5FC5538A7C4E57EC1737B4917D289818FD9C5FD423D8A804D948037E034C671779CDED673BE311B632A04B2CD21E1E41C5AE6DE388E7CF1E2256EFFE7E477151716CBB8DFEBF79DDB1108BD87E47C34C2C150BF33CA138134A5] 133
<-- F9C06213585289654996F0C40467B9A65AE28846AE75892A269FCADC08A19DDA86238F00008E5E5396DD7BC446CCEA667B4917D289818FD9C5FD423D8A804D948037E034C671779CDED673BE311B632A930775DE0549B1FB99E6971DC8703313FC294F198B21613E5715CF03E1EA452E403469B8C881ED96FDCE47913BAD675A 9000 (128)
<-- F9C06213585289654996F0C40467B9A65AE28846AE75892A269FCADC08A19DDA86238F00008E5E5396DD7BC446CCEA667B4917D289818FD9C5FD423D8A804D948037E034C671779CDED673BE311B632A930775DE0549B1FB99E6971DC8703313FC294F198B21613E5715CF03E1EA452E403469B8C881ED96FDCE47913BAD675A 9000 (128) [35 ms]
PC <== SC: Retrieved password `base are` from slot 1.
PC --> SC: Get password from slot 0.
--> EE000000805B16A08C7A0C5F1570F966EF5FB5D40003AAF1A85495CA39009306859D882809FE4D26D6278C44215A0970F711F4937DC2F9466AEFE12B1AF0ED8ED51852210F8CA585C5E3DB7ABC42E240AF87B5DE6DE1EEA0F7896C1C14B750A694891FF1BAE861753672B15D514466F8E720D4B653FF4A237E164E6E8083438F387F83E722
--> [EE000000805B16A08C7A0C5F1570F966EF5FB5D40003AAF1A85495CA39009306859D882809FE4D26D6278C44215A0970F711F4937DC2F9466AEFE12B1AF0ED8ED51852210F8CA585C5E3DB7ABC42E240AF87B5DE6DE1EEA0F7896C1C14B750A694891FF1BAE861753672B15D514466F8E720D4B653FF4A237E164E6E8083438F387F83E722] 133
<-- 5B16A08C7A0C5F1570F966EF5FB5D400589EC4CBCA3CE72B83264DCA765397557B74D7FA600EC7904C814138EB658187C2F9466AEFE12B1AF0ED8ED51852210F8CA585C5E3DB7ABC42E240AF87B5DE6DF98B807B7B2238E4AE81607ED0F55F38C27F0F651C9C663D3CB0570542073FC80F351D5965D805E69D8306A50C620144 9000 (128)
<-- 5B16A08C7A0C5F1570F966EF5FB5D400589EC4CBCA3CE72B83264DCA765397557B74D7FA600EC7904C814138EB658187C2F9466AEFE12B1AF0ED8ED51852210F8CA585C5E3DB7ABC42E240AF87B5DE6DF98B807B7B2238E4AE81607ED0F55F38C27F0F651C9C663D3CB0570542073FC80F351D5965D805E69D8306A50C620144 9000 (128) [55 ms]
PC <== SC: Retrieved password `All your` from slot 0.
End: demo password storage
##################################################
Done.
exit