updated features for two different types of sniffing. fixed and scrolling. This can...
[goodfet] / client / GoodFETSmartCard.py
1 #!/usr/bin/env python
2 # GoodFET SPI and SPIFlash Client Library
3
4 # (C) 2009 Travis Goodspeed <travis at radiantmachines.com>
5 #
6 # This code is being rewritten and refactored.  You've been warned!
7
8 import sys, time, string, cStringIO, struct, glob, os;
9
10 from GoodFET import GoodFET;
11
12 class GoodFETSmartCard(GoodFET):
13     SMARTCARDAPP=0x73;
14     APP=SMARTCARDAPP;
15     
16     def setup(self):
17         """Move the FET into the SmartCard application."""
18         self.writecmd(self.APP,0x10,0,self.data);
19     def start(self):
20         """Start the connection, reat ATR."""
21         self.writecmd(self.APP,0x20,0,None);