Code Monkey home page Code Monkey logo

cardpeek's People

Watchers

 avatar  avatar

cardpeek's Issues

[patch] fix lua detection in Fedora

In Fedora, lua-devel package contains lua.pc pkg-config file. However,
cardpeek configure script only checks for lua-5.1.pc and lua5.1.pc files.

I've attached a patch fix lua detection if the pkg-config file is named lua.pc.

Original issue reported on code.google.com by [email protected] on 26 Apr 2010 at 10:28

Attachments:

Runtime error in emv.lua

I have got with French mastercard.
0052 ERROR   (DEBUG) [string "emv.lua"]:499: bad argument #1 to 
'tree_get_value' (node_ref.type expected, got nil)
0053 ERROR   Called from tree_get_value
0054 ERROR   Runtime error in emv.lua




Original issue reported on code.google.com by [email protected] on 3 Feb 2012 at 11:09

Allow running scripts from command-line

We use cardpeek to batch dump a bunch of cards for offline viewing.

For this it would be very nice to be able to run a script (emv.lua) and then 
save the resulting output in a file directly from the command line.

If this is possible with the 'exec' options, please let me know - otherwise 
this is a feature request.

Original issue reported on code.google.com by [email protected] on 9 Jun 2014 at 10:39

[PATCH] Improve a bit decoding of GSM SIM/SMS

What steps will reproduce the problem?
1. Have UNICODE encoded SMS
2. Have SMS with e. g. 131 characters

What is the expected output? What do you see instead?
1. Decode SMS.
2. Do not cut last character.

What version of the product are you using? On what operating system?
svn snapshot

Please provide any additional information below.

The decoding is still incomplete. gammu project is a good source of information.

Original issue reported on code.google.com by [email protected] on 10 Oct 2013 at 11:59

Attachments:

The GSM SIM script doesn't work with Hutchison 3G UK Ltd. ("3") SIM cards

What steps will reproduce the problem?
1. Insert a 3 (U)SIM card into a reader
2. Launch CardPeek
3. Attempt to run the GSM script

What is the expected output? What do you see instead?

I expect to see data corresponding to the contents of the card. Instead, I 
receive a dialogue stating "This does not appear to be a GSM SIM card. 
Halting", and the following output in the "logs" tab:

0400 INFO    Reader maximum input length is 261 bytes
0401 INFO    Connection successful, protocol is T=0
0402 INFO    ATR is 22 bytes: 3B9F95801FC78031E073FE211B63E207A7830F900089
0403 INFO    ATR is 22 bytes: 3B9F95801FC78031E073FE211B63E207A7830F900089
0404 INFO    send: A0A40000027F20 [3S]
0405 INFO    Recv: 9404  [** Unkown error code **]
0406 INFO    Testing if response code starts with 9F
0407 INFO    Disconnected reader

What version of the product are you using? On what operating system?
CardPeek 0.7 on Ubuntu 11.04.

Please provide any additional information below.

It seems that the "usimtool.py" script at 
http://ace-host.stuart.id.au/russell/files/python-pcsclite/examples/usimtool.py 
(and also supplied as part of the Python-PCSCLite package) is capable of 
interfacing with these cards successfully.

Original issue reported on code.google.com by [email protected] on 4 Jan 2012 at 6:15

First steps for a Mac OS X build [PATCH]

> What steps will reproduce the problem?
1. When trying to compile for Mac OS X, the detection of system libpcsclite 
library fails (things are a little different on Mac OS X, and one header file 
is missing)
2. Some compilation fails for Mac OS X

> What version of the product are you using? On what operating system?
Mac OS X 10.7.5
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) 
(LLVM build 2336.11.00)
homebrew

Following patch must be applied - it should not break non-Mac OS X builds. 
Patch is necessary but not sufficient, as there is a missing file in Mac OS X 
"version" of libpcsclite (reader.h).

For the moment being, I manually copy reader.h from the sources of libpcsclite 
to the build directory, but it is not a proper solution.
We need to find a way to work around this missing file, for example providing a 
local copy that would be used only for Mac OS X build (autoconf expert, please 
do...)

After these patch + file inclusion, build is fine, and cardpeek works as 
expected : PCSC readers are detected and cards are properly read.

Original issue reported on code.google.com by [email protected] on 18 Mar 2013 at 11:25

Attachments:

Fails to build on ARM

When build 0.7.2 (and all releases going back to at least 0.5.x) on Fedora 19 
(and earlier) I get the following error when building:

gcc -DHAVE_CONFIG_H -I.    -Wall -pedantic -Wno-overlength-strings   -pthread 
-I/usr/include/PCSC   -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
-pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include 
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 
-I/usr/include/libdrm -I/usr/include/harfbuzz   -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4  -march=armv7-a -mfpu=vfpv3-d16  -mfloat-abi=hard -c 
./script.S -o dot_cardpeek.o
./script.S: Assembler messages:
./script.S:27: Error: junk at end of line, first unrecognized character is `,'
make[1]: *** [dot_cardpeek.o] Error 1

A full build log can be found here (choose the latest build as logs are only 
kept a week):
http://arm.koji.fedoraproject.org/koji/packageinfo?packageID=869

Not sure why it needs specific assembler and can't just let the compiler 
optimise.

Original issue reported on code.google.com by [email protected] on 2 Apr 2013 at 12:47

cardpeek should use iconv.m4 to determine how to link against iconv

What steps will reproduce the problem?
1. Build cardpeek on a system that doesn't have iconv_open in libc, such as 
FreeBSD, OS X, ...
2. configure will fail to find iconv_open (but happily continue without it)
3. cardpeek executable will fail to link because the iconv symbols are missing

What is the expected output? What do you see instead?
Configure should automatically detect that `-liconv` is needed on BSDish 
systems.

What version of the product are you using? On what operating system?
cardpeek 0.8.2, OS X 10.9 Mavericks, Command Line Tools installed

Please provide any additional information below.
The problem can be fixed by using iconv.m4 from the gettext package:
 1. $> mkdir m4
 2. $> cp /usr/share/aclocal/iconv.m4 m4
 3. $> touch config.rpath # needed by iconv.m4, but not present, can be empty
 4. Apply the attached patch to configure.ac and Makefile.am
 5. $> autoreconf -fvi


NB: cardpeek is now available through MacPorts on OS X: 
https://trac.macports.org/ticket/42597.

Original issue reported on code.google.com by [email protected] on 23 Feb 2014 at 8:46

Attachments:

include search path for glib.h

Hi,

I want to create a debian package for cardpeek. 
The current state is at : https://mentors.debian.net/package/cardpeek

Now, it fails to build because it doesn't find /usr/include/glib-2.0/glib.h.
My debian mentor told me to inform upstream, since the file is not always in 
/usr/include.
Would it make sense for you to fix that on your side?

Then I would need a valid name and email address of the developer.

And finally, is the source for the pdf in doc/ available?

Rgds
Richard

Original issue reported on code.google.com by [email protected] on 12 Mar 2013 at 10:00

Fix compiler warnings

What steps will reproduce the problem?
1. use CFLAGS=-Wall -g -O2 -Wextra -pipe -funsigned-char -fstrict-aliasing 
-Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wunused 
-Wuninitialized -Wpointer-arith -Wredundant-decls -Winline -Wformat 
-Wformat-security -Wswitch-enum -Winit-self -Wmissing-include-dirs 
-Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition 
-Wbad-function-cast -Wnested-externs -Wmissing-declarations
2. ./configure
3. make

What is the expected output? What do you see instead?
I get lots of compiler warnings

The warnings are listed in the commit messages.

Original issue reported on code.google.com by [email protected] on 9 Oct 2012 at 6:44

Attachments:

Ubuntu package

I would be nice to have an Ubuntu package for cardpeek.

Original issue reported on code.google.com by [email protected] on 19 Jan 2013 at 2:44

Cardpeek only read the first EMV application when using PSE

What steps will reproduce the problem?
1. Insert a multi-AID PSE containing card 
2. Use the EMV script to dump it

What is the expected output? What do you see instead?

Only the first application is dumped.

What version of the product are you using? On what operating system?

0.8.2 on linux

Please provide any additional information below.

This seems like a simple regression. The current processing of PSE will 
correctly iterate through all records of the PSE, but will only process the 
first tag 4F of each record. Adding a simple for loop over the 4F records (like 
is done in PPSE) will add all the applications.

Original issue reported on code.google.com by [email protected] on 6 Jun 2014 at 7:08

nil value in en1545.lua

What steps will reproduce the problem?
1. Try to read TBC Pass from Bordeaux (Calypso network 921)
2. I got this crash in en1545.lua

Here is the debug output:

0214 ERROR   ./lib/en1545.lua:114: attempt to index local 'source' (a nil value)
0215 ERROR   backtrace: called from ?() in ./lib/en1545.lua[114]
0216 ERROR   backtrace: called from en1545_parse_item() in ./lib/en1545.lua[176]
0217 ERROR   backtrace: called from en1545_parse_item() in ./lib/en1545.lua[161]
0218 ERROR   backtrace: called from en1545_parse() in ./lib/en1545.lua[194]
0219 ERROR   backtrace: called from en1545_map() in ./lib/en1545.lua[225]
0220 ERROR   backtrace: called at calypso/c250.lua
0221 ERROR   backtrace: called from dofile()
0222 ERROR   backtrace: called from calypso_process() in [string 
"calypso.lua"][255]
0223 ERROR   backtrace: called at [string "calypso.lua"]


I'm using 0.8.2 under latest Ubuntu.


Please provide any additional information below.

I use a specific network file to decode this network, but I hadn't this problem 
with the previous version of cardpeek, and furthermore the problem doesn't seem 
to come from it.

Please find the card replay attached, and feel free to ask any questions.

Original issue reported on code.google.com by [email protected] on 18 Feb 2014 at 10:50

Attachments:

missing .desktop file and application icon

I have attached a simple .desktop file for cardpeek. Could you include it
in the next release please?

The .desktop file also references an icon file. In the Fedora rpm package
[1] I copied icons/smartcard.png to
/usr/share/icons/hicolor/32x32/apps/cardpeek.png so that it'd show up as
cardpeek's icon. Do you have any other icon I should use instead?

Also, in the screenshots there appears to be an icon set for cardpeek main
window (the one shown in the left corner of the titlebar), but I see no
reference to that in the sources. Is it something you have locally but is
missing from the 0.5 release?

[1] https://bugzilla.redhat.com/show_bug.cgi?id=585902

Original issue reported on code.google.com by [email protected] on 26 Apr 2010 at 11:30

Attachments:

[patch] fix dot_cardpeek.o executable stack

I've attached a patch to fix the hand-written assembly code in script.S to
contain .note.GNU-stack marker to disable executable stack. GCC in Fedora
emits it in its assembler output by default, but since this is a
hand-written file, we need to explicitly specify it.

See
http://www.redhat.com/archives/fedora-devel-list/2003-November/msg00838.html for
more info.

Original issue reported on code.google.com by [email protected] on 26 Apr 2010 at 10:23

Attachments:

ui.tree_find_node searches beyond the end of the sub tree

What steps will reproduce the problem?
1. Create two sub nodes and under the 2nd one create a further sub node such as:

+"Some node"
---"TestNode1"
--+"TestNode2"
----"subnode"

TN1_REF = ui.tree_find_node(SOME_NODE_REF, "TestNode1")
SN_REF = ui.tree_find_node(TN1_REF, "subnode")

What is the expected output? What do you see instead?
I expect SN_REF to be nil but instead it points to the node under "TestNode2"

What version of the product are you using? On what operating system?
0.7.2, win32 on Windows 7 64-bit

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 28 May 2013 at 3:34

Download link not working

The download link is broken you need to remove "&can=2&q=" from the url for the 
file to download "0.7.2"

Original issue reported on code.google.com by [email protected] on 11 May 2013 at 11:55

Please create an AppData file for cardpeek

Please consider writing and installing an AppData file with the application 
description and some screenshots, else cardpeek looks really bad in the GNOME 
Software Center. See http://people.freedesktop.org/~hughsient/appdata/ for 
details; thanks!

Richard

Original issue reported on code.google.com by [email protected] on 21 May 2014 at 4:06

Can't read card but ATR is found Teo by Xiring reader problem [Cardpeek application-level error]

**What steps will reproduce the problem?**

1. Click on "Analyzer", select anything (with any card)
2. Insert the card in the SmartCard Reader

**What is the expected output? What do you see instead?**

I've the same problem with the SmartCard reader "Teo by Xiring" as 
[email protected]
I have the same error all the time with all cards :
"# Cardpeek application-level error"

On Ubuntu with vmware : 
0000 INFO    Adding atr.lua script to menu
0001 INFO    Adding calypso.lua script to menu
0002 INFO    Adding emv.lua script to menu
0003 INFO    Adding e-passport.lua script to menu
0004 INFO    Adding gsm (beta).lua script to menu
0005 INFO    Adding mifare reader.lua script to menu
0006 INFO    Adding moneo.lua script to menu
0007 INFO    Adding vitale_2.lua script to menu
0008 DEBUG   Found directory '/home/XXX/.cardpeek'
0009 DEBUG   Scripts are up to date.
0010 DEBUG   Lua is loaded.
0011 DEBUG   Running configuration script /home/XXX/.cardpeek/config.lua
0012 DEBUG   Found 1 PCSC readers
0013 INFO    Selected 'pcsc://VMware Virtual USB CCID 00 00'
0014 INFO    Running script vitale_2.lua (please wait)
0015 DEBUG   Attempting to connect to 'pcsc://VMware Virtual USB CCID 00 00'
0016 INFO    Reader maximum input length is 261 bytes
0017 INFO    Connection successful, protocol is T=0
0018 INFO    ATR is 10 bytes: 3B75130000XXXXXXXXXX
0019 INFO    ATR is 10 bytes: 3B75130000XXXXXXXXXX
0020 INFO    send: 00A404000BD250000002564954414C45 [3S]
0021 INFO    Recv: 611F  [More bytes available (see SW2)]
0022 INFO    send: 00C000001F [2S]
0023 ERROR   Failed to transmit command to card [Transaction failed.]
0024 INFO    Recv: 6FFF  [Cardpeek application-level error]
0025 INFO    Disconnected reader

On windows : 

0000 INFO    Adding atr.lua script to menu
0001 INFO    Adding calypso.lua script to menu
0002 INFO    Adding e-passport.lua script to menu
0003 INFO    Adding emv.lua script to menu
0004 INFO    Adding gsm (beta).lua script to menu
0005 INFO    Adding mifare reader.lua script to menu
0006 INFO    Adding moneo.lua script to menu
0007 INFO    Adding vitale_2.lua script to menu
0008 DEBUG   Found directory 'C:\Users\XXX\AppData\Roaming/.cardpeek'
0009 DEBUG   Scripts are up to date.
0010 DEBUG   Lua is loaded.
0011 DEBUG   Running configuration script 
C:\Users\XXX\AppData\Roaming/.cardpeek/config.lua
0012 DEBUG   Found 1 PCSC readers
0013 INFO    Selected 'pcsc://SCM Microsystems Inc. SCR35xx USB Smart Card 
Reader 0'
0014 INFO    Running script vitale_2.lua (please wait)
0015 DEBUG   Attempting to connect to 'pcsc://SCM Microsystems Inc. SCR35xx USB 
Smart Card Reader 0'
0016 DEBUG   Could not determinate reader maximum input length
0017 INFO    Connection successful, protocol is T=0
0018 INFO    ATR is 10 bytes: 3B75130000XXXXXXXXXX
0019 INFO    ATR is 10 bytes: 3B75130000XXXXXXXXXX
0020 INFO    send: 00A404000BD250000002564954414C45 [3S]
0021 ERROR   Failed to transmit command to card [Unknown error (0x000006F7)]
0022 INFO    Recv: 6FFF  [Cardpeek application-level error]
0023 INFO    Disconnected reader

On windows I've one step less : I haven't the step 20 and 21 like with linux 
(this is not happening : "0020 INFO    send: 00A404000BD250000002564954414C45 
[3S]
0021 INFO    Recv: 611F  [More bytes available (see SW2)]" )

What I've to do ?

maybe the "teo by xiring smart card reader" is not able to do this ?
(this is the web site of this reader : 
http://teobyxiring.fr/Le_lecteur_de_carte_a_puce_Teo_by_XIRING-Support-technique
.aspx )

**Please provide any additional information below.**
I've tried with only one reader, but two OS (windows and linux)
I can't read any card (but with other software it's work)

Original issue reported on code.google.com by [email protected] on 4 Dec 2012 at 5:47

missing r208 windows 7 compatibile executable

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 19 Dec 2012 at 12:13

Error with the korrigo card and calypso.lua script


It seems that the calypso.lua script has been modified and does not read 
korrigo cards anymore.

What steps will reproduce the problem?
1. In september I succeeded in reading korrigo card using the calypso.lua 
script. The manual explains that it should work fine.
2. Yesterday, launching cardpeek, it asked to update the scripts: I answered 
yes.
3. No If tails with an error:

Failed to query card status.

I suspects calypso.lua to be broken because I can read a credit card in EMV 
fine.

I cannot find an old version of calypso.lua to try with the one I got in 
september.



Original issue reported on code.google.com by [email protected] on 21 Nov 2013 at 8:13

Crash on unknown ATR

I get a segfault when the ATR is not known:

#1  0x00007ffff770f2a2 in g_strdup () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#2  0x00007ffff6131fad in ?? () from 
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#3  0x00007ffff6111e83 in g_object_new_valist () from 
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#4  0x00007ffff61121d4 in g_object_new () from 
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
No symbol table info available.
#5  0x00007ffff71004e5 in gtk_button_new_from_stock () from 
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
No symbol table info available.
#6  0x00007ffff712e2a5 in gtk_dialog_add_button () from 
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
No symbol table info available.
#7  0x000000000040fee8 in gui_question_l (message=0x41f0b8 "The local copy of 
the ATR database may be outdated.\nDo you whish to do an online update?", 
item_count=16, 
    items=0x76cca0) at gui.c:81
        dialog = 0x834150
        label = <optimized out>
        hbox = <optimized out>
        img = <optimized out>
        result = <optimized out>
#8  0x00000000004100ec in gui_question (message=0x41f0b8 "The local copy of the 
ATR database may be outdated.\nDo you whish to do an online update?") at 
gui.c:63
        al = {{gp_offset = 48, fp_offset = 32767, overflow_arg_area = 0x7fffffffdf20, reg_save_area = 0x7fffffffde70}}
        item = <optimized out>
        item_count = <optimized out>
        item_table = 0x76cca0
        retval = <optimized out>
#9  0x0000000000408e62 in update_smartcard_list_txt () at main.c:80
        res = <optimized out>
        url = <optimized out>
        retval = 0
        smartcard_list = <optimized out>
        user_agent = "\001\000\000\000\000\000\000\000\b\rd\000\000\000\000\000\001\000\000\000\000\000\000\000\065\362\336\367\377\177\000\000\377\377\377\377\377\377\377\377\360\267A\000\000\000\000\000(\341\377\377\377\177\000\000\030\341\377\377\377\177\000\000\300\"d\000\000\000\000\000\200\270A\000\000\000\000\000@\227\336\367\377\177\000\000\310\342\377\367\377\177\000\000\241\000\000"
        progress = <optimized out>
        curl = <optimized out>
        smartcard_list_txt = 0x646ad0 "/home/pterjan/.cardpeek/scripts/etc/smartcard_list.txt"
        smartcard_list_download = 0x646ba0 "/home/pterjan/.cardpeek/scripts/etc/smartcard_list.download"
        now = 1372604852
        next_update = 1372374955
#10 main (argc=1, argv=0x7fffffffe118) at main.c:452
        CTX = <optimized out>
        READER = 0x820d90
        opt = <optimized out>
        opt_index = 0
        run_gui = <optimized out>
        reader_name = 0x6dbfd0 "pcsc://Gemalto GemPC Twin 00 00"
        exec_command = 0x0

Original issue reported on code.google.com by pterjan on 30 Jun 2013 at 3:09

configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."

What steps will reproduce the problem?
1. get the source code from SVN
2. run ./configure
3. get the error: configure: error: cannot find install-sh, install.sh, or 
shtool in "." "./.." "./../.."

The file install-sh is a symlink to /usr/share/automake-1.11/install-sh

On my Mac OS X system the file /usr/share/automake-1.11/install-sh
 do not exist. I have automake version 1.12 instead and not in /usr/share/

I have to run "autoreconf -vis" to get correct symlinks.

Please provide a bootstrap.sh script, document the use of "autoreconf -vis" in 
INSTALL file or something similar.

Original issue reported on code.google.com by [email protected] on 6 Oct 2012 at 4:52

Navigo card "doesn't seem to react to file selection commands"

**What steps will reproduce the problem?**

1. Click on "Analyzer", select "Calypso"
2. Insert the Navigo card in the SmartCard Reader

**What is the expected output? What do you see instead?**

I'm expecting to see something like in this screenshot:
[cardpeek.googlecode.com/files/sample-navigo.jpg]

Instead, I see the error message: "This script may not work: this card doesn't 
seem to react to file selection commands" then "Connection to card failed"

It successfully reads the cold ATR and the Card Number, though.

**What version of the product are you using? On what operating system?**

I'm using Cardpeek 0.7.1, on Windows Vista Home Premium and Windows Seven Home 
Premium


**Please provide any additional information below.**

I tried on two different computers, with several Navigo cards.

My SmartCard reader is a "Teo by Xiring"

Here's the log:
_____________________________________________
0000 INFO    Adding atr.lua script to menu
0001 INFO    Adding calypso.lua script to menu
0002 INFO    Adding e-passport.lua script to menu
0003 INFO    Adding emv.lua script to menu
0004 INFO    Adding gsm (beta).lua script to menu
0005 INFO    Adding mifare reader.lua script to menu
0006 INFO    Adding moneo.lua script to menu
0007 INFO    Adding vitale_2.lua script to menu
0008 DEBUG   Found directory 'C:\Users\SB\AppData\Roaming/.cardpeek'
0009 DEBUG   Scripts are up to date.
0010 DEBUG   Lua is loaded.
0011 DEBUG   Running configuration script 
C:\Users\SB\AppData\Roaming/.cardpeek/config.lua
0012 DEBUG   Found 1 PCSC readers
0013 INFO    Selected 'pcsc://SCM Microsystems Inc. SCR35xx USB Smart Card 
Reader 0'
0014 INFO    Running script calypso.lua (please wait)
0015 INFO    Waiting for card to be present (current state:  Changed state, 
Card removed)...
0016 INFO    Waiting for card to be present (current state:  Changed state, 
Card removed)...
0017 INFO    Waiting for card to be present (current state:  Changed state, 
Card removed)...
0018 INFO    Waiting for card to be present (current state:  Changed state, 
Card removed)...
0019 DEBUG   Attempting to connect to 'pcsc://SCM Microsystems Inc. SCR35xx USB 
Smart Card Reader 0'
0020 DEBUG   Could not determinate reader maximum input length
0021 INFO    Connection successful, protocol is T=0
0022 INFO    ATR is 19 bytes: 3B6F0000805AXXXXXXXXXXXXXXXXXXXXXXXXXX
0023 INFO    ATR is 19 bytes: 3B6F0000805AXXXXXXXXXXXXXXXXXXXXXXXXXX
0024 INFO    ATR is 19 bytes: 3B6F0000805AXXXXXXXXXXXXXXXXXXXXXXXXXX
0025 INFO    send: 94A40000022010 [3S]
0026 ERROR   Failed to transmit command to card [Unknown error (0x000006F7)]
0027 INFO    Recv: 6FFF  [Cardpeek application-level error]
0028 INFO    send: 94A408000420002010 [3S]
0029 ERROR   Failed to transmit command to card [Unknown error (0x000006F7)]
    //this error is repeated 22 times//
0090 INFO    Recv: 6FFF  [Cardpeek application-level error]
0091 WARNING Could not find data in 'Environement'
0092 ERROR   (DEBUG) [string "calypso.lua"]:168: attempt to concatenate local 
'country' (a boolean value)
0093 ERROR   Called from calypso_process
0094 ERROR   Runtime error in calypso.lua
_____________________________________________

Original issue reported on code.google.com by [email protected] on 14 Sep 2012 at 12:12

Transport type parsing for Mobib seems to read one extra bit

Transport type on Mobib in the code is:

metro     0 (00000)
premetro  7 (00111)
bus      15 (01111)
tramway  22 (10110)

On my card I have:
 0 (000000)
31 (011111)
45 (101101)

It would be bus + tramway (which would make sense from what I remember that 
day) if shifted by a bit.


Also:
transport_type = 
mobib_process_block(ref,"EventTransportType",99,104,block,mobib_TRANSPORT)      

mobib_process_block(ref,"EventLocationId",104,120,block,mobib_TRANSPORT_METRO)

It seems the transport type should stop at 103 if metro information starts at 
104





Original issue reported on code.google.com by pterjan on 30 Jun 2013 at 3:41

Cannot Read Moneo with cardpeek: application-level error

What steps will reproduce the problem?
1. Try to read a moneo card with cardpeek version 0.7.2

Hi,

I am experiencing an issue while trying to read a moneo card with my integrated 
card reader. I am not sure whether it comes from cardpeek or the driver of card 
reader or carpeek. All tests are done with Fedora 19 64 bits.

The cardreader is the one integrated in the Dell Latitude 6430u.
$ lsusb
Bus 002 Device 005: ID 0b97:7772 O2 Micro, Inc. OZ776 CCID Smartcard Reader

When reading with cardpeek here is the log:
0000 INFO    Adding atr.lua script to menu
0001 INFO    Adding calypso.lua script to menu
0002 INFO    Adding emv.lua script to menu
0003 INFO    Adding e-passport.lua script to menu
0004 INFO    Adding gsm (beta).lua script to menu
0005 INFO    Adding mifare reader.lua script to menu
0006 INFO    Adding moneo.lua script to menu
0007 INFO    Adding vitale_2.lua script to menu
0008 INFO    Running Cardpeek 0.7.2 on Linux 3.10.10-200.fc19.x86_64 x86_64
0009 DEBUG   Found directory '/home/marbolangos/.cardpeek'
0010 DEBUG   Scripts are up to date.
0011 DEBUG   Lua is loaded.
0012 DEBUG   Running configuration script /home/marbolangos/.cardpeek/config.lua
0013 DEBUG   Found 1 PCSC readers
0014 INFO    Selected 'pcsc://Generic CCID Reader 00 00'
0015 INFO    Running script moneo.lua (please wait)
0016 DEBUG   Attempting to connect to 'pcsc://Generic CCID Reader 00 00'
0017 INFO    Reader maximum input length is 261 bytes
0018 INFO    Connection successful, protocol is T=0
0019 INFO    ATR is 10 bytes: 3B66000090D1020152B1
0020 INFO    ATR is 10 bytes: 3B66000090D1020152B1
0021 INFO    send: 00A4040006A0000000690000 [4S]
0022 ERROR   Failed to transmit command to card: Transaction failed. (error 
0x80100016).
0023 INFO    Recv: 6FFF  [Cardpeek application-level error]
0024 INFO    Disconnected reader

The reader tab shows:
RSET 3B 66 00 00 90 D1 02 01 52 B1                                       
SEND 00 A4 04 00 06 A0 00 00 00 69 00 00                                 
RECV 6FFF                                                # Cardpeek 
application-level error
     (nil)

I hope this can help, this card can be updated within the moneo website (under 
Windows) without any issue. It belongs to the CROUS Ile-de-France.

Original issue reported on code.google.com by [email protected] on 10 Sep 2013 at 8:45

Error executing navigo script

What steps will reproduce the problem?
1. build/install cardpeek
2. insert navigo to omnikey 5321 v2 reader
3. run analyzer/navigo script

What is the expected output? What do you see instead?
The contents of the navigo card. Instead, an error:
0018 ERROR  Failed to disconnect the reader [Invalid handle.]

What version of the product are you using? On what operating system?
cardpeek-0.5 on ubunutu 10.10

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 23 Mar 2011 at 8:45

Paris train stations not displayed

No idea what 5 is supposed to be or if this is just a typo, but replacing 
service_provider_value==5 with service_provider_value==2 in c250n901.lua fixed 
it for me.

Original issue reported on code.google.com by pterjan on 16 Jun 2013 at 9:35

can't compile cardpeek 0.8.1 under debian squeeze

What steps will reproduce the problem?
1.down load tarball 0.8.1.tgz
2.uncompress and go into sub directory
3.try to run ./configure then get an error on libcurl

[....]
checking for CURL... no
configure: error: Package requirements (libcurl) were not met:
No package 'libcurl' found


What is the expected output? What do you see instead?

--> checking for CURL... yes

What version of the product are you using? On what operating system?

cat /etc/debian_version 
7.2
sudo dpkg -l libcurl3 curl
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| 
État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=
attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom                      Version           Architecture      Description
+++-========================-=================-=================-===============
=======================================
ii  curl                     7.26.0-1+wheezy6  i386              command line 
tool for transferring data with URL synta
ii  libcurl3:i386            7.26.0-1+wheezy6  i386              easy-to-use 
client-side URL transfer library (OpenSSL 

ll  /usr/lib/i386-linux-gnu/libcurl*
[...]
lrwxrwxrwx 1 root root     12 nov.  20 00:19 
/usr/lib/i386-linux-gnu/libcurl.so.3 -> libcurl.so.4
lrwxrwxrwx 1 root root     16 nov.  20 00:19 
/usr/lib/i386-linux-gnu/libcurl.so.4 -> libcurl.so.4.2.0
-rw-r--r-- 1 root root 433152 nov.  20 00:19 
/usr/lib/i386-linux-gnu/libcurl.so.4.2.0


Original issue reported on code.google.com by [email protected] on 26 Nov 2013 at 8:35

Contract Zones are not parsed

They are a simple bitmap of the zones where the contract is valid

Here is a patch working fine on my navigo.

It assumes there is no discontinuity: 1-3 or 5-6 are possible but not 1,4,5
Maybe it should be improve to at least check that this is the case and not 
display 4-5 in that case.

Original issue reported on code.google.com by pterjan on 13 Jun 2013 at 3:06

Attachments:

Detection of country/network code fail reading Italian venice transport operator

What steps will reproduce the problem?
1. hard code row data I wrote below
2. try to read country code and network code..
3.

What is the expected output? What do you see instead?
expected output should be 330 but I get "nil"

What version of the product are you using? On what operating system?
latest svn

Please provide any additional information below.

Error:
0125 ERROR   (DEBUG) [string "calypso.lua"]:180: attempt to concatenate local 
'country' (a nil value)
0126 ERROR   Called from calypso_process
0127 ERROR   Runtime error in calypso.lua

Record 1 raw data:
00000000000000000000011111010000000100000000001000110110001111100000010000110101
11111110000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000

Original issue reported on code.google.com by [email protected] on 18 Apr 2011 at 6:49

In windows, tachograph data is not exported correctly in .ddd file

What steps will reproduce the problem?
1. Use Cardpeek under windows and run the tachograph script
2. Export the result in a .ddd file
3. Read the exported .ddd file with readesm

What is the expected output? What do you see instead?

The output of readesm is truncated, due to a windows specific bug in 
tachograph.lua

Please use labels and text to provide additional information.

It seems that this problem can be fixed by changing the following line in 
tachograph.lua (line 714):
       file = io.open(fname,"w")
to
       file = io.open(fname,"wb")

Confirmation is underway.

Original issue reported on code.google.com by [email protected] on 27 Apr 2014 at 6:29

Compiler warning: dyntree_model.c:142:12: attention : cast from function call of type ‘gpointer’ to non-matching type ‘long int’

What steps will reproduce the problem?
1. Add -Wbad-function-cast to CFLAGS
2. make

What is the expected output? What do you see instead?
dyntree_model.c: In function ‘dyntree_model_column_name_to_index’:
dyntree_model.c:142:12: attention : cast from function call of type 
‘gpointer’ to non-matching type ‘long int’ [-Wbad-function-cast]


What version of the product are you using? On what operating system?
current SVN revision

Maybe the best solution is to change the return type of 
dyntree_model_column_name_to_index() from "int" to "long int"

Original issue reported on code.google.com by [email protected] on 15 May 2013 at 11:48

card.verify needs P2 parameter

Currently card.verify can only set the P1 parameter. But the OpenPGP card for 
example requires several different values for P2.

The following replacement worked for me:

    function card.verify(pin, p1, p2)
        local command, length

        p1 = p1 or 0x00
        p2 = p2 or 0x00
        pin = bytes.new_from_chars(pin)
        length = #pin
        command = bytes.new(8,card.CLA,0x20,p1,p2,length,pin)
        return card.send(command)
    end

Cardpeek Version: 0.8.2-win32

Original issue reported on code.google.com by [email protected] on 6 Apr 2014 at 5:18

Fix icondir location

cardpeek 0.6 installs its icon in 
hicolor/48x48,
but as per icon theme spec [1], they should instead go to
hicolor/48x48/apps.

Attached a patch to fix this.

[1] 
http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#dir
ectory_layout

Original issue reported on code.google.com by [email protected] on 6 Apr 2011 at 10:50

Attachments:

Error while compiling from source

What steps will reproduce the problem?

1. Compiling cardpeek 0.82 from source

Hello everyone,

I'm trying to compile cardpeek 0.82 on Kali Linux 1.0.7 (64-Bit) and am getting
the folowing error:

myname@Kali:~/Desktop/install/cardpeek-0.8.2$ make
make  all-am
make[1]: Entering directory `/home/myname/Desktop/install/cardpeek-0.8.2'
  CCLD   cardpeek
http_download.o: In function `http_download':
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:32: undefined 
reference to `curl_easy_init'
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:50: undefined 
reference to `curl_easy_setopt'
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:51: undefined 
reference to `curl_easy_setopt'
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:52: undefined 
reference to `curl_easy_setopt'
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:53: undefined 
reference to `curl_easy_setopt'
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:54: undefined 
reference to `curl_easy_setopt'
http_download.o:/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:55: 
more undefined references to `curl_easy_setopt' follow
http_download.o: In function `http_download':
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:58: undefined 
reference to `curl_easy_perform'
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:64: undefined 
reference to `curl_easy_strerror'
/home/myname/Desktop/install/cardpeek-0.8.2/http_download.c:85: undefined 
reference to `curl_easy_cleanup'
collect2: error: ld returned 1 exit status
make[1]: *** [cardpeek] Error 1
make[1]: Leaving directory `/home/myname/Desktop/install/cardpeek-0.8.2'
make: *** [all] Error 2


I don't know if it matters but I'm using libcurl4-openssl-dev-7.26.0-1+wheezy9 
as dependency.

Any ideas? Thanks in advance.

Original issue reported on code.google.com by [email protected] on 17 Jul 2014 at 5:43

"make distcheck" do not work

What steps will reproduce the problem?
1. make distcheck

Or use:
$ mkdir build
$ ../configure
$ make

What version of the product are you using? On what operating system?
SVN

Please provide any additional information below.
"make distcheck" is a very nice command to:
- generate a .tar.gz archive
- check the archive is complete

Original issue reported on code.google.com by [email protected] on 26 Oct 2012 at 1:17

error: 'AM_CONFIG_HEADER': this macro is obsolete. You should use the 'AC_CONFIG_HEADERS' macro instead.

What steps will reproduce the problem?
1. autoreconf -vis -Wall

What is the expected output? What do you see instead?
$ autoreconf -vis -Wall
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --warnings=all 
configure.ac:21: warning: macro 'AM_PATH_GTK_2_0' not found in library
configure.ac:9: error: 'AM_CONFIG_HEADER': this macro is obsolete.
    You should use the 'AC_CONFIG_HEADERS' macro instead.
/usr/local/Cellar/automake/1.13.1/share/aclocal-1.13/obsolete-err.m4:14: 
AM_CONFIG_HEADER is expanded from...
configure.ac:9: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
autoreconf: aclocal failed with exit status: 1

Original issue reported on code.google.com by [email protected] on 13 Mar 2013 at 9:38

Attachments:

Mifare reader fails after UID read

I'm trying to read mifare clasic 1K card with cardpeak 0.8 using Gemalto Prox 
Dual reader. After UID read mifare script stops and following error is 
displayed on status bar:
0036 ERROR   backtrace: called at [string "mifare reader.lua"]

I have tried with cardpeek compiled from source on 64 bit Linux and with 
provided installer on Windows 7 64 bit.

Full log output:
0000 INFO    Adding atr.lua script to menu
0001 INFO    Adding belgian eID.lua script to menu
0002 INFO    Adding calypso.lua script to menu
0003 INFO    Adding emv.lua script to menu
0004 INFO    Adding e-passport.lua script to menu
0005 INFO    Adding gsm (beta).lua script to menu
0006 INFO    Adding mifare reader.lua script to menu
0007 INFO    Adding moneo.lua script to menu
0008 INFO    Adding vitale_2.lua script to menu
0009 INFO    Running Cardpeek 0.8 on Linux 3.11.0-12-generic x86_64
0010 DEBUG   Found directory '/home/vasil/.cardpeek/'
0011 DEBUG   Scripts are up to date.
0012 DEBUG   Lua is loaded.
0013 DEBUG   Loading configuration script /home/vasil/.cardpeek/config.lua
0014 DEBUG   Running user configuration script 
/home/vasil/.cardpeek/cardpeekrc.lua
0015 DEBUG   Found 4 PCSC readers
0016 INFO    Selected 'pcsc://Gemalto Prox Dual USB PC LinkReader [Prox-DU 
Contactless_12400310] 01 00'
0017 DEBUG   smartcard_list.txt will be scheduled for update in less than a day.
0018 WARNING The script 'mifare reader.lua' does not contain version 
information, and may use an older incompatible API
0019 WARNING To remove this warning, add the following line at the begining of 
'mifare reader.lua':
     -- @targets 0.8
0020 INFO    Running script mifare reader.lua (please wait)
0021 DEBUG   Attempting to connect to 'pcsc://Gemalto Prox Dual USB PC 
LinkReader [Prox-DU Contactless_12400310] 01 00'
0022 INFO    Reader maximum input length is 502 bytes
0023 INFO    Connection successful, protocol is T=1
0024 INFO    ATR is 20 bytes: 3B8F8001804F0CA000000306030001000000006A
0025 INFO    send: FF82200A06A0A1A2A3A4A5 [3S]
0026 INFO    Recv: 9000  [Normal processing]
0027 INFO    send: FF82200B06B0B1B2B3B4B5 [3S]
0028 INFO    Recv: 9000  [Normal processing]
0029 INFO    send: FF82200F06FFFFFFFFFFFF [3S]
0030 INFO    Recv: 9000  [Normal processing]
0031 INFO    send: FFCA000000 [2S]
0032 INFO    Recv: 9000 7E68B8A6 [Normal processing]
0033 ERROR   node.append() takes at most two arguments: a parent and either a 
classname or a table.
0034 ERROR   backtrace: called from append()
0035 ERROR   backtrace: called from MIFARE_scan() in [string "mifare 
reader.lua"][131]
0036 ERROR   backtrace: called at [string "mifare reader.lua"]

Original issue reported on code.google.com by [email protected] on 7 Nov 2013 at 1:58

Can't start on MacOS when built using GTK+

What steps will reproduce the problem?
1. Using MacOS, compile cardpeek using GTK+3 3.14.0
2. Launch cardpeek
3. See it fail

What is the expected output? What do you see instead?
cardpeek should start

What version of the product are you using? On what operating system?
MacOS 10.9.5, XQuartz 2.8.1_beta1, curl 7.38.0, lua 5.2.3, glib 2.42.0

Please provide any additional information below.
cardpeek was working fine using GTK+3 3.12.2

Original issue reported on code.google.com by [email protected] on 26 Sep 2014 at 9:30

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.