aboutsummaryrefslogtreecommitdiffstats
path: root/cyberflex-shell.py
AgeCommit message (Collapse)AuthorFilesLines
2010-06-01Add raw command.Henryk Plötz1-2/+14
* Fix indentation * API CHANGE: do_raw_apdu() is now do_normal_apdu() * New do_raw_apdu() function to use the Raw_APDU() class, exported as "raw" command
2010-03-06Add printing of time spent for APDU transactionsHenryk Plötz1-1/+9
2010-03-03API CHANGE: Move CommandLineArgumentHelper to readers module to allow proper ↵Henryk Plötz1-1/+1
import order. (CommandLineArgumentHelper references the readers module, which references the utils module, so having CLAH in utils would create a circular reference.)
2010-02-26Move all PC/SC specific stuff to a separate class structure for readers ↵Henryk Plötz1-6/+7
(thus preparing the way for non-PC/SC-readers) This commit should be known as "Holy excessive layering, batman!"
2008-06-10Make it possible for a card/application class to specify the P1 used for ↵hploetz1-1/+2
SELECT in the file case Add an Application class (and AID) for NFC Forum Tag Type 4 git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@261 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-16Switch smartcard interface to pyscard from http://pyscard.sourceforge.net/hploetz1-4/+2
pycsc no longer supported API change: utils doesn't export "pycsc" anymore API change: utils.CommandLineArgumentHelper.connect now returns smartcard.CardService.CardService instance API change: cards.generic_card.Card.__init__ and ...can_handle (and therefore cards.new_card_object) now expect CardService or CardConnection instance git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@247 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-15Consolidating connect to a single placehploetz1-57/+7
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@246 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-08Centralize pycsc windows import hackhploetz1-9/+1
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@222 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-05load_response and pretend_application commandshploetz1-0/+21
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@213 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-02Forgot a comment charhploetz1-1/+1
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@210 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-01Log ATRhploetz1-0/+7
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@202 f711b948-2313-0410-aaa9-d29f33439f0b
2007-05-08Get working under Windows with http://cheeseshop.python.org/pypi/PyCSC/0.3 ↵hploetz1-1/+11
(with Python 2.5 for Windows) Note: you additionally need pycrypto, the source of which you'll get from http://cheeseshop.python.org/pypi/pycrypto/2.0.1 Compilation of pycrypto can work with cygwin in two steps: python setup.py build -c mingw32 and python setup.py install --skip-build git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@190 f711b948-2313-0410-aaa9-d29f33439f0b
2007-03-18API change: DRIVER_NAME now is a (merged) listhploetz1-1/+1
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@187 f711b948-2313-0410-aaa9-d29f33439f0b
2007-03-18print out which SW was not okhploetz1-1/+1
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@186 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-13Big change: Replace SW_OK and SW1_RETRY with a more generic check_sw() that ↵hploetz1-2/+2
gets its data from STATUS_MAP Small improvements in brutefid, including the ability to brute subdirectories More fixes for passport secure messaging, using check_sw, can now decrypt error responses ("End of file reached before Le bytes read", etc.) Add support for tuples/lists in dictionaries in MERGE_DICTS_RECURSIVE in cards/__init__.py git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@177 f711b948-2313-0410-aaa9-d29f33439f0b
2007-02-12Move parse_fancy_apdu from Cyberflex_Shell to utils.C_APDUhploetz1-127/+3
Extract actual MAC computation from tcos_card.TCOS_Security_Environment for later overriding in passport_application.Passport_Security_Environment git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@175 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-29Ignore colons in fancy apdushploetz1-3/+3
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@155 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-23Make marks relative to data field of APDUhploetz1-1/+1
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@140 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-23minor typoshploetz1-3/+4
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@139 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-22Implemented logginghploetz1-1/+84
Hint: Try something like log %(HOMEDIR)s/cyberflex-shell-%(ISOTIME)s.log in your ~/.cyberflex-shellrc git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@137 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-21Some useful optionshploetz1-6/+44
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@134 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-19should've tested that ...hploetz1-1/+1
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@130 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-19move cipher() to crypto_utilshploetz1-36/+2
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@128 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-19Support syntax for marking parts of tlv structures in fancy APDUshploetz1-25/+85
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@126 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-18prepare for new featurehploetz1-5/+14
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@125 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-08encryption fixeshploetz1-4/+4
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@123 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-08some crypto functionshploetz1-0/+88
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@122 f711b948-2313-0410-aaa9-d29f33439f0b
2006-10-25minor tweakshploetz1-5/+5
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@120 f711b948-2313-0410-aaa9-d29f33439f0b
2006-10-25support for parsing of fancy commands without executing themhploetz1-0/+7
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@119 f711b948-2313-0410-aaa9-d29f33439f0b
2006-10-19stupid typohploetz1-2/+2
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@118 f711b948-2313-0410-aaa9-d29f33439f0b
2006-10-19save response commandhploetz1-4/+90
fancy apdu parsing git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@117 f711b948-2313-0410-aaa9-d29f33439f0b
2006-09-26Make it possible to ignore errors of a certain type when running a scripthploetz1-1/+7
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@115 f711b948-2313-0410-aaa9-d29f33439f0b
2006-07-15more TCOS decodinghploetz1-1/+1
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@100 f711b948-2313-0410-aaa9-d29f33439f0b
2006-06-16new eval commandhploetz1-0/+6
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@92 f711b948-2313-0410-aaa9-d29f33439f0b
2006-06-14command to run a scripthploetz1-0/+38
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@86 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-26forgot 'nother onehploetz1-2/+2
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@80 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-25a first stab at dynamically loading and unloading drivers. doesn't work ↵hploetz1-0/+29
properly yet git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@79 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-25forgot one instancehploetz1-1/+1
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@78 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-25close/open_card -> disconnect/connecthploetz1-6/+6
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@77 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-22make the wait for a card abortable by ctrl-chploetz1-2/+15
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@74 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-22subclass cyberflex-shell from shell, enable disconnecting and reconnecting ↵hploetz1-87/+123
with cards git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@73 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-22card close commandhploetz1-1/+13
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@72 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18Transitioning to new APDU codehploetz1-3/+3
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@53 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18experimental next generation code, still brokenhploetz1-1/+1
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@49 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18some more T=0 vs. T=1 fixeshploetz1-2/+2
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@48 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-17nicer status word printinghploetz1-2/+4
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@47 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-04Implemented option to select readerhenryk1-3/+34
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@44 f711b948-2313-0410-aaa9-d29f33439f0b
2005-10-12Cardmultiplexer object. Should allow to dynamically bind and unbind classes ↵henryk1-2/+3
from a card object. git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@43 f711b948-2313-0410-aaa9-d29f33439f0b
2005-10-09Now using the shell class in cyberflex-shellhenryk1-120/+27
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@40 f711b948-2313-0410-aaa9-d29f33439f0b
2005-09-30Use the APDU object throughout (working, but not complete)henryk1-1/+1
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@26 f711b948-2313-0410-aaa9-d29f33439f0b