|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: [Muscle] global platform - enabled shells
From: Peter Williams (home_pw
msn.com)
Date: Tue Dec 07 2004 - 05:17:27 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On windows, the default ActiveState Perl implementation can be augmented
with "enough" Unix terminal mechanisms to run the shell.
a) using the ppm package manager, search for TERM, and install certain
modules.
b) Install Term-readline-perl, and TermReadKey. This may be sufficient for
to augment Windows Perl to the UNIX terminal assumptions in the gpsh
script. Run the script in win32 bash(1) or Interix/cygwin bash - to provide
for basic history.
c) cd to the ChipCard directory, and key "C:\Perl\bin\perl.exe gpsh" ;
'show help', makes text appear, finally.
d) 'show readers' then 'connect x' works if a reader and javacard is
present. Dont forget to compile your ATR into the program, first. I.e start
again with compilation, if you didnt.
e) key 'select A000000001'. Prompt becomes gpsh[Muscle] upon recognition
e) "run examples/provision" fails (on Windows): ":: ERROR: Ignoring
examples/provision because of insecure file mode (more than 0700)"
f) hack out the offending lines in the script (692,693.703) which assume
Unix permission scheme
g) show - connect - select - run examples/provision to thereby select OPEN,
and attempt to authenticate.
gpsh[A000000001]> run examples/provision
examples/provision:17: ERROR: Cannot setup channel: 6E 00
examples/provision:36: ERROR: no such file:
~/rpm/BUILD/MCardApplet-0.9.11/CardE
dge.bin
examples/provision:43: ERROR: Class not supported.
examples/provision:54: ERROR: Could not select
examples/provision:60: ERROR: Cannot interpret: setup Muscle00 2 1 1234
1234 4 3
4321 5678 3900 00 02 01
Summary:
two obvious issues: the programming uses 80 C0 (rather than 00 C0) to poll
for the initial FCI, and might also need to select the card manager to
initiate the GP authentication rather than use the VOP AID.
it would be nice to have a really simple script, which just did connect,
select, authenticate. Then any PCSC program could simply system("perl
<script").
The programming shows clearly the GP process however, with padding, and
MACs on selects, etc for secure messaging, later.
----- Original Message -----
From: "Peter Williams" <home_pw
msn.com>
To: "MUSCLE" <muscle
lists.musclecard.com>; ""Peter Stamfest""
<peter
stamfest.at>
Sent: Saturday, December 04, 2004 12:57 PM
Subject: Re: [Muscle] global platform - enabled shells
..
> Looking pretty good. Not working yet, but thats enough for now. At least
> now it compiles, links and loads. Just cannot quite read the terminal
> yet, out of the box.
_______________________________________________
Muscle mailing list
Muscle
lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]