HWBTutorials/hwb1/card/test.txt

34 lines
726 B
Plaintext
Raw Normal View History

// test my applet
establish_context
enable_trace
enable_timer
card_connect
// select
send_apdu -sc 0 -APDU 00A40400080102030405060809
// Query Author Name
send_apdu -sc 0 -APDU 80000000
// Store Data
send_apdu -sc 0 -APDU 8002000002FFFE
// Querying Data
send_apdu -sc 0 -APDU 800400000001
send_apdu -sc 0 -APDU 800400000002
// Triggering Unsupported Instruction Error
send_apdu -sc 0 -APDU 8001000000
// Triggering Unsupported CLA Error
send_apdu -sc 0 -APDU 9001000000
// Sending Too Many Bytes (> 20)
send_apdu -sc 0 -APDU 80020000150102030405060708090A0B0C0D0E0F101112131415
// Querying Incorrect Amount of Bytes
send_apdu -sc 0 -APDU 8002000002FFFE
send_apdu -sc 0 -APDU 8004000003
card_disconnect
release_context