Skip to content

Instantly share code, notes, and snippets.

@z4yx
Created September 20, 2022 02:01
Show Gist options
  • Save z4yx/c4cec166b9da8235367a51df7b9c790e to your computer and use it in GitHub Desktop.
Save z4yx/c4cec166b9da8235367a51df7b9c790e to your computer and use it in GitHub Desktop.
> fido2-token -d -I -c pcsc://slot0
fido_tx: dev=0x55d983ae6260, cmd=0x06
fido_tx: buf=0x55d983ae6260, len=8
0000: 52 24 0f bb 22 3c 04 91
fido_pcsc_write: writing: buf=0x7ffcaff0c3e0, len=14
0000: 00 a4 04 00 08 a0 00 00 06 47 2f 00 01 00
fido_pcsc_write: read: buf=0x55d983ae6990, len=8
0000: 55 32 46 5f 56 32 90 00
fido_rx: dev=0x55d983ae6260, cmd=0x06, ms=-1
fido_pcsc_read: reading: buf=0x55d983ae6990, len=8
0000: 55 32 46 5f 56 32 90 00
fido_dev_get_cbor_info_tx: dev=0x55d983ae6260
fido_tx: dev=0x55d983ae6260, cmd=0x10
fido_tx: buf=0x7ffcaff0c647, len=1
0000: 04
fido_pcsc_write: writing: buf=0x7ffcaff0c370, len=7
0000: 80 10 00 00 01 04 00
fido_pcsc_write: read: buf=0x55d983ae6990, len=222
0000: 00 ad 01 82 68 46 49 44 4f 5f 32 5f 31 66 55 32
0016: 46 5f 56 32 02 84 68 63 72 65 64 42 6c 6f 62 6b
0032: 63 72 65 64 50 72 6f 74 65 63 74 6b 68 6d 61 63
0048: 2d 73 65 63 72 65 74 6c 6c 61 72 67 65 42 6c 6f
0064: 62 4b 65 79 03 50 24 4e b2 9e e0 90 4e 49 81 fe
0080: 1f 20 f8 d3 b8 f4 04 a5 62 72 6b f5 68 63 72 65
0096: 64 4d 67 6d 74 f5 69 63 6c 69 65 6e 74 50 69 6e
0112: f5 6a 6c 61 72 67 65 42 6c 6f 62 73 f5 6e 70 69
0128: 6e 55 76 41 75 74 68 54 6f 6b 65 6e f5 05 19 05
0144: 00 06 82 02 01 07 08 08 18 67 09 82 63 75 73 62
0160: 63 6e 66 63 0a 82 a2 63 61 6c 67 26 64 74 79 70
0176: 65 6a 70 75 62 6c 69 63 2d 6b 65 79 a2 63 61 6c
0192: 67 27 64 74 79 70 65 6a 70 75 62 6c 69 63 2d 6b
0208: 65 79 0b 19 10 00 0e 18 c9 0f 18 20 90 00
fido_dev_get_cbor_info_rx: dev=0x55d983ae6260, ci=0x55d983ae6af0, ms=-1
fido_rx: dev=0x55d983ae6260, cmd=0x10, ms=-1
fido_pcsc_read: reading: buf=0x55d983ae6990, len=222
0000: 00 ad 01 82 68 46 49 44 4f 5f 32 5f 31 66 55 32
0016: 46 5f 56 32 02 84 68 63 72 65 64 42 6c 6f 62 6b
0032: 63 72 65 64 50 72 6f 74 65 63 74 6b 68 6d 61 63
0048: 2d 73 65 63 72 65 74 6c 6c 61 72 67 65 42 6c 6f
0064: 62 4b 65 79 03 50 24 4e b2 9e e0 90 4e 49 81 fe
0080: 1f 20 f8 d3 b8 f4 04 a5 62 72 6b f5 68 63 72 65
0096: 64 4d 67 6d 74 f5 69 63 6c 69 65 6e 74 50 69 6e
0112: f5 6a 6c 61 72 67 65 42 6c 6f 62 73 f5 6e 70 69
0128: 6e 55 76 41 75 74 68 54 6f 6b 65 6e f5 05 19 05
0144: 00 06 82 02 01 07 08 08 18 67 09 82 63 75 73 62
0160: 63 6e 66 63 0a 82 a2 63 61 6c 67 26 64 74 79 70
0176: 65 6a 70 75 62 6c 69 63 2d 6b 65 79 a2 63 61 6c
0192: 67 27 64 74 79 70 65 6a 70 75 62 6c 69 63 2d 6b
0208: 65 79 0b 19 10 00 0e 18 c9 0f 18 20 90 00
fido_dev_open_rx: FIDO_MAXMSG=2048, maxmsgsiz=1280
fido_dev_authkey_tx: dev=0x55d983ae6260
fido_tx: dev=0x55d983ae6260, cmd=0x10
fido_tx: buf=0x55d983aea170, len=6
0000: 06 a2 01 02 02 02
fido_pcsc_write: writing: buf=0x7ffcaff0c220, len=12
0000: 80 10 00 00 06 06 a2 01 02 02 02 00
fido_pcsc_write: read: buf=0x55d983ae6990, len=83
0000: 00 a1 01 a5 01 02 03 38 18 20 01 21 58 20 64 e0
0016: e3 e7 d6 7e ba 0f 4a 06 3d d0 af 01 f3 d9 d2 cc
0032: 21 bf 7e 65 b1 a1 15 a4 33 8f d2 70 45 cc 22 58
0048: 20 aa 62 6e aa 80 13 5d 4a e6 2b 58 9e 95 6c fe
0064: d1 be a3 14 35 3f d3 75 13 a5 fa 8c bf 4e d9 e4
0080: 10 90 00
fido_dev_authkey_rx: dev=0x55d983ae6260, authkey=0x55d983aea330, ms=-1
fido_rx: dev=0x55d983ae6260, cmd=0x10, ms=-1
fido_pcsc_read: reading: buf=0x55d983ae6990, len=83
0000: 00 a1 01 a5 01 02 03 38 18 20 01 21 58 20 64 e0
0016: e3 e7 d6 7e ba 0f 4a 06 3d d0 af 01 f3 d9 d2 cc
0032: 21 bf 7e 65 b1 a1 15 a4 33 8f d2 70 45 cc 22 58
0048: 20 aa 62 6e aa 80 13 5d 4a e6 2b 58 9e 95 6c fe
0064: d1 be a3 14 35 3f d3 75 13 a5 fa 8c bf 4e d9 e4
0080: 10 90 00
ctap21_uv_token_tx: fido_dev_has_uv
cbor_add_uv_params: fido_dev_get_uv_token
credman_tx: cbor_add_uv_params
Enter PIN for pcsc://slot0:
fido_dev_authkey_tx: dev=0x55d983ae6260
fido_tx: dev=0x55d983ae6260, cmd=0x10
fido_tx: buf=0x55d983ae8790, len=6
0000: 06 a2 01 02 02 02
fido_pcsc_write: writing: buf=0x7ffcaff0c220, len=12
0000: 80 10 00 00 06 06 a2 01 02 02 02 00
fido_pcsc_write: read: buf=0x55d983ae6990, len=83
0000: 00 a1 01 a5 01 02 03 38 18 20 01 21 58 20 64 e0
0016: e3 e7 d6 7e ba 0f 4a 06 3d d0 af 01 f3 d9 d2 cc
0032: 21 bf 7e 65 b1 a1 15 a4 33 8f d2 70 45 cc 22 58
0048: 20 aa 62 6e aa 80 13 5d 4a e6 2b 58 9e 95 6c fe
0064: d1 be a3 14 35 3f d3 75 13 a5 fa 8c bf 4e d9 e4
0080: 10 90 00
fido_dev_authkey_rx: dev=0x55d983ae6260, authkey=0x55d983ae6c50, ms=-1
fido_rx: dev=0x55d983ae6260, cmd=0x10, ms=-1
fido_pcsc_read: reading: buf=0x55d983ae6990, len=83
0000: 00 a1 01 a5 01 02 03 38 18 20 01 21 58 20 64 e0
0016: e3 e7 d6 7e ba 0f 4a 06 3d d0 af 01 f3 d9 d2 cc
0032: 21 bf 7e 65 b1 a1 15 a4 33 8f d2 70 45 cc 22 58
0048: 20 aa 62 6e aa 80 13 5d 4a e6 2b 58 9e 95 6c fe
0064: d1 be a3 14 35 3f d3 75 13 a5 fa 8c bf 4e d9 e4
0080: 10 90 00
fido_tx: dev=0x55d983ae6260, cmd=0x10
fido_tx: buf=0x55d983ae6e60, len=122
0000: 06 a5 01 02 02 09 03 a5 01 02 03 38 18 20 01 21
0016: 58 20 83 1f b1 2c 55 10 bb d3 ff 0a 89 61 5f 74
0032: bf 15 0c 77 84 6c cf bb 6a 23 55 4c 9e 23 20 54
0048: d7 ea 22 58 20 6d aa 35 95 f6 16 58 f5 6e cd bf
0064: d4 b0 ed cb 9e 90 ef bf 9d 7c 4f 28 a9 01 9f cb
0080: d4 8a 19 a8 0d 06 58 20 70 be df 09 e7 ba 77 4a
0096: 0c 50 bc 68 f7 e6 41 ac a1 1c 5a d8 89 cc 92 b2
0112: 4f 67 1a b8 12 41 c4 39 09 04
fido_pcsc_write: writing: buf=0x7ffcaff0c0e0, len=128
0000: 80 10 00 00 7a 06 a5 01 02 02 09 03 a5 01 02 03
0016: 38 18 20 01 21 58 20 83 1f b1 2c 55 10 bb d3 ff
0032: 0a 89 61 5f 74 bf 15 0c 77 84 6c cf bb 6a 23 55
0048: 4c 9e 23 20 54 d7 ea 22 58 20 6d aa 35 95 f6 16
0064: 58 f5 6e cd bf d4 b0 ed cb 9e 90 ef bf 9d 7c 4f
0080: 28 a9 01 9f cb d4 8a 19 a8 0d 06 58 20 70 be df
0096: 09 e7 ba 77 4a 0c 50 bc 68 f7 e6 41 ac a1 1c 5a
0112: d8 89 cc 92 b2 4f 67 1a b8 12 41 c4 39 09 04 00
fido_pcsc_write: read: buf=0x55d983ae6990, len=55
0000: 00 a1 02 58 30 97 8a 3e cd 0a 27 93 1c e1 ea 6f
0016: 21 cc 86 ac 76 a7 08 7f 7b 9a 2c c8 ea 0c 61 3a
0032: 4d 20 41 1c d3 8f c2 fa f7 6e 33 fb 37 ea 85 1e
0048: d6 62 b5 8c 93 90 00
fido_rx: dev=0x55d983ae6260, cmd=0x10, ms=-1
fido_pcsc_read: reading: buf=0x55d983ae6990, len=55
0000: 00 a1 02 58 30 97 8a 3e cd 0a 27 93 1c e1 ea 6f
0016: 21 cc 86 ac 76 a7 08 7f 7b 9a 2c c8 ea 0c 61 3a
0032: 4d 20 41 1c d3 8f c2 fa f7 6e 33 fb 37 ea 85 1e
0048: d6 62 b5 8c 93 90 00
fido_tx: dev=0x55d983ae6260, cmd=0x10
fido_tx: buf=0x55d983ae8430, len=41
0000: 41 a3 01 01 03 02 04 58 20 19 f3 1d 3c 25 3f af
0016: df b2 a3 79 80 12 b9 11 42 49 08 ee e1 42 1f e2
0032: e2 b1 4e 8e 4b b7 37 b5 69
fido_pcsc_write: writing: buf=0x7ffcaff0c350, len=47
0000: 80 10 00 00 29 41 a3 01 01 03 02 04 58 20 19 f3
0016: 1d 3c 25 3f af df b2 a3 79 80 12 b9 11 42 49 08
0032: ee e1 42 1f e2 e2 b1 4e 8e 4b b7 37 b5 69 00
fido_pcsc_write: read: buf=0x55d983ae6990, len=3
0000: f1 90 00
fido_rx: dev=0x55d983ae6260, cmd=0x10, ms=-1
fido_pcsc_read: reading: buf=0x55d983ae6990, len=3
0000: f1 90 00
cbor_parse_reply: blob[0]=0xf1
credman_rx_metadata: credman_parse_metadata
fido2-token: fido_credman_get_dev_metadata: FIDO_ERR_UNKNOWN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment