Skip to content

Instantly share code, notes, and snippets.

@h3xstream
Last active December 25, 2015 06:49
Show Gist options
  • Save h3xstream/6934595 to your computer and use it in GitHub Desktop.
Save h3xstream/6934595 to your computer and use it in GitHub Desktop.
Instructions pour installer des applets sur la carte du NorthSec

Here are the Card Manager Keys used for the cards we gave during the competition, so that you can load/delete applets on the card :

MAC_KEY : 20B2734C890D9F043208810E063B25D6
ENC_KEY : 1A1C5481DDF4A91D5AD25352846EFDF1
KEK_KEY : 065F678AC7C5EB46BC0DEA1ECCF1F03C

Make sure you use -keyver 1 and delete the previous applets as follows :

mode_211
enable_trace
enable_timer

establish_context
card_connect
select -AID a000000003000000
open_sc -security 1 -keyind 0 -keyver 1 -mac_key 20B2734C890D9F043208810E063B25D6 -enc_key 1A1C5481DDF4A91D5AD25352846EFDF1 -kek_key 065F678AC7C5EB46BC0DEA1ECCF1F03C // Open secure channel

delete -AID 414343455353
delete -AID 4f4c44434443
delete -AID 42454e505952

card_disconnect
release_context

Ref: https://www.nsec.io/2013/04/setup-a-java-card-for-security-purposes/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment