bladox.com Forum Index bladox.com
Turbo SIM Toolkit Adapter Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dbg

 
Post new topic   Reply to topic    bladox.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
tupac



Joined: 20 Jun 2011
Posts: 13

PostPosted: Mon Jun 20, 2011 9:47 pm    Post subject: Dbg Reply with quote

So I have a few questions about the Turbo Adapter debug mode.

I've got the whole BLADOX SIM-ME Communication Tracing Kit and I've been able to successively run dbg and get a trace of apdu packets back and forth.


FROM ME: 80 f2 00 0c 00
TO SIM: 80 f2 00 0c 00
FROM SIM: 90 00
TO ME: 90 00

I guess my first question is what am I seeing with this program? Are these raw apdu messages? If so would..: 80 f2 00 0c be the four byte header mentioned in the wiki link bellow? Or is dbg stripping the header out can just giving me the data? Or is this something else?

(4 byte header I'm talking about)
http://en.wikipedia.org/wiki/Smart_card_application_protocol_data_unit


My goal is to modify wireshark so it will parse apdu's correctly from the dbg output. I'd be happy to make the wireshark code available to anyone that would find it useful, assuming there isn't already another easy tool that does this already.


(Another program / hardware combo that does what I wam to make this kit do)
http://bb.osmocom.org/trac/wiki/SIMtrace

What are the next 23-25 bytes that follow the RESET line, they aren't like the rest of the packets that are specified from ME or to SIM and appear just one byte at a time.

Here's a snippit of what I'm talking about:
RESET
3b
9f
95
80
Back to top
View user's profile Send private message
pz



Joined: 12 Mar 2004
Posts: 1161

PostPosted: Tue Jun 21, 2011 4:57 am    Post subject: Re: Dbg Reply with quote

tupac wrote:
So I have a few questions about the Turbo Adapter debug mode.

I've got the whole BLADOX SIM-ME Communication Tracing Kit and I've been able to successively run dbg and get a trace of apdu packets back and forth.


FROM ME: 80 f2 00 0c 00
TO SIM: 80 f2 00 0c 00
FROM SIM: 90 00
TO ME: 90 00

I guess my first question is what am I seeing with this program? Are these raw apdu messages? If so would..: 80 f2 00 0c be the four byte header mentioned in the wiki link bellow? Or is dbg stripping the header out can just giving me the data? Or is this something else?


Yes, this is raw APDU. In this case class 0x80, 0xf2 is STATUS command, phone doesn't request any data - len is 0x00. Btw. interesting phone doesn't want any data what STATUS, what phone is this?

Quote:


(4 byte header I'm talking about)
http://en.wikipedia.org/wiki/Smart_card_application_protocol_data_unit


My goal is to modify wireshark so it will parse apdu's correctly from the dbg output. I'd be happy to make the wireshark code available to anyone that would find it useful, assuming there isn't already another easy tool that does this already.


Would be cool.

Quote:

(Another program / hardware combo that does what I wam to make this kit do)
http://bb.osmocom.org/trac/wiki/SIMtrace

What are the next 23-25 bytes that follow the RESET line, they aren't like the rest of the packets that are specified from ME or to SIM and appear just one byte at a time.

Here's a snippit of what I'm talking about:
RESET
3b
9f
95
80


This is ATR.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group