The Authentication packet looks like this:
FC1307-tag|Direction|CommandCode|6 zero bytes|username length|password length|username|11 zero bytes|pwd|to 11 bytes zero padded counter
Concrete (note, that the numbers are written in hex):
FC1307|01|17|000000000000|05|05|admin|00000000000000000000|admin|0000000000000000000000
This mean a
First we need to authenticate ourselfs, by sending an authentication package (48 Bytes including the FC1307-tag the username and the password and its length)
We shall query the cardinformation. This returns us the general information about the card (firmware version and things like that)
We than have to calculate the LSB and other file system related information