Henryk Plötz
144efe1cf7
Abstract out command class
2010-10-18 06:05:57 +02:00
Henryk Plötz
e343352675
Rename parse_fancy_apdu to parse_fancy
2010-10-18 06:05:45 +02:00
Henryk Plötz
9d5528a470
Add raw command.
...
* 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-06-01 03:06:02 +02:00
Henryk Plötz
6eaa66f534
Add printing of time spent for APDU transactions
2010-03-06 21:42:16 +01:00
Henryk Plötz
bc07262d80
API CHANGE: Move CommandLineArgumentHelper to readers module to allow proper import order.
...
(CommandLineArgumentHelper references the readers module, which references the utils module, so having CLAH in utils would create a circular reference.)
2010-03-03 00:06:20 +01:00
Henryk Plötz
331bfc4d47
Move all PC/SC specific stuff to a separate class structure for readers (thus preparing the way for non-PC/SC-readers)
...
This commit should be known as "Holy excessive layering, batman!"
2010-02-26 02:27:26 +01:00
hploetz
424a3c14c5
Make it possible for a card/application class to specify the P1 used for 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
2008-06-10 03:34:21 +00:00
hploetz
c92a60fb10
Switch smartcard interface to pyscard from http://pyscard.sourceforge.net/
...
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-16 06:56:57 +00:00
hploetz
326fd9a7be
Consolidating connect to a single place
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@246 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-15 16:49:17 +00:00
hploetz
d7aa71ca8d
Centralize pycsc windows import hack
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@222 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-08 00:14:22 +00:00
hploetz
e4fa619d41
load_response and pretend_application commands
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@213 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-05 02:31:17 +00:00
hploetz
481050b14c
Forgot a comment char
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@210 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-02 07:31:40 +00:00
hploetz
9647ffa302
Log ATR
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@202 f711b948-2313-0410-aaa9-d29f33439f0b
2007-06-01 20:36:38 +00:00
hploetz
47662ab48e
Get working under Windows with http://cheeseshop.python.org/pypi/PyCSC/0.3 (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-05-08 09:23:25 +00:00
hploetz
98f1dbe110
API change: DRIVER_NAME now is a (merged) list
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@187 f711b948-2313-0410-aaa9-d29f33439f0b
2007-03-18 23:38:24 +00:00
hploetz
375705a6f1
print out which SW was not ok
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@186 f711b948-2313-0410-aaa9-d29f33439f0b
2007-03-18 23:13:09 +00:00
hploetz
d685765fa0
Big change: Replace SW_OK and SW1_RETRY with a more generic check_sw() that 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-13 00:32:04 +00:00
hploetz
617a1693b6
Move parse_fancy_apdu from Cyberflex_Shell to utils.C_APDU
...
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
2007-02-12 16:41:19 +00:00
hploetz
050301e0a3
Ignore colons in fancy apdus
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@155 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-29 09:40:23 +00:00
hploetz
37754ffc51
Make marks relative to data field of APDU
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@140 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-23 14:38:53 +00:00
hploetz
bd03819002
minor typos
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@139 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-23 14:34:00 +00:00
hploetz
7cba0484e8
Implemented logging
...
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-22 06:25:48 +00:00
hploetz
3f9b79c511
Some useful options
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@134 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-21 00:50:56 +00:00
hploetz
586a2049e2
should've tested that ...
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@130 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-19 21:10:41 +00:00
hploetz
c21d63752f
move cipher() to crypto_utils
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@128 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-19 04:53:10 +00:00
hploetz
15f7be1e4f
Support syntax for marking parts of tlv structures in fancy APDUs
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@126 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-19 03:31:54 +00:00
hploetz
823bd7bedf
prepare for new feature
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@125 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-18 15:30:27 +00:00
hploetz
3bc5f0d3cf
encryption fixes
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@123 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-08 10:29:18 +00:00
hploetz
1b26df986b
some crypto functions
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@122 f711b948-2313-0410-aaa9-d29f33439f0b
2006-11-08 06:39:54 +00:00
hploetz
db5f07df04
minor tweaks
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@120 f711b948-2313-0410-aaa9-d29f33439f0b
2006-10-25 13:31:43 +00:00
hploetz
b3ea921b2f
support for parsing of fancy commands without executing them
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@119 f711b948-2313-0410-aaa9-d29f33439f0b
2006-10-25 11:19:28 +00:00
hploetz
02e3988218
stupid typo
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@118 f711b948-2313-0410-aaa9-d29f33439f0b
2006-10-19 23:39:22 +00:00
hploetz
3969675691
save response command
...
fancy apdu parsing
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@117 f711b948-2313-0410-aaa9-d29f33439f0b
2006-10-19 10:21:50 +00:00
hploetz
ace0e99477
Make it possible to ignore errors of a certain type when running a script
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@115 f711b948-2313-0410-aaa9-d29f33439f0b
2006-09-26 13:05:18 +00:00
hploetz
63cded4f7d
more TCOS decoding
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@100 f711b948-2313-0410-aaa9-d29f33439f0b
2006-07-15 07:41:06 +00:00
hploetz
68960b8c8b
new eval command
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@92 f711b948-2313-0410-aaa9-d29f33439f0b
2006-06-16 23:12:38 +00:00
hploetz
1b8689c9c2
command to run a script
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@86 f711b948-2313-0410-aaa9-d29f33439f0b
2006-06-14 09:12:18 +00:00
hploetz
0acf90679d
forgot 'nother one
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@80 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-26 04:37:29 +00:00
hploetz
f75a882699
a first stab at dynamically loading and unloading drivers. doesn't work properly yet
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@79 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-25 14:13:10 +00:00
hploetz
1c971aa745
forgot one instance
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@78 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-25 13:37:16 +00:00
hploetz
23a33b56b5
close/open_card -> disconnect/connect
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@77 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-25 13:36:48 +00:00
hploetz
c100297855
make the wait for a card abortable by ctrl-c
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@74 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-22 05:20:11 +00:00
hploetz
4f99f3a507
subclass cyberflex-shell from shell, enable disconnecting and reconnecting with cards
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@73 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-22 04:14:19 +00:00
hploetz
8e845292bb
card close command
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@72 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-22 03:26:13 +00:00
hploetz
c68e8bba2e
Transitioning to new APDU code
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@53 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18 15:45:07 +00:00
hploetz
2ec6001376
experimental next generation code, still broken
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@49 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18 05:00:19 +00:00
hploetz
036218d632
some more T=0 vs. T=1 fixes
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@48 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-18 02:16:15 +00:00
hploetz
7d3953d48d
nicer status word printing
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@47 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-17 18:50:18 +00:00
henryk
df4e90ea9e
Implemented option to select reader
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@44 f711b948-2313-0410-aaa9-d29f33439f0b
2006-05-04 23:58:28 +00:00
henryk
31225977e2
Cardmultiplexer object. Should allow to dynamically bind and unbind classes from a card object.
...
git-svn-id: svn+ssh://localhost/home/henryk/svn/cyberflex-shell/trunk@43 f711b948-2313-0410-aaa9-d29f33439f0b
2005-10-12 02:09:15 +00:00