frankmorgner / vsmartcard

umbrella project for emulation of smart card readers or smart cards
http://frankmorgner.github.io/vsmartcard/
684 stars 197 forks source link

vicc dont work #262

Closed vercebe closed 5 months ago

vercebe commented 5 months ago

Hi, sorry for my english I'm having this problem whent trying to use vicc in ubuntu 23 fresh install:

vicc --type=relay --reader=2 -H=192.168.10.137 -P=35964 Traceback (most recent call last): File "/usr/bin/vicc", line 161, in vicc.run() File "/usr/lib/python3/dist-packages/virtualsmartcard/VirtualSmartcard.py", line 571, in run self.sendToVPICC(self.os.getATR()) File "/usr/lib/python3/dist-packages/virtualsmartcard/VirtualSmartcard.py", line 506, in sendToVPICC self.sock.sendall(struct.pack('!H', len(msg)) + msg)


TypeError: can't concat str to bytes
frankmorgner commented 5 months ago

please try python3. if that works, please file a bug at ubuntu's support

vercebe commented 5 months ago

Ubuntu use python3, anyway a manage to install it in debian 12 and kali linux is well. I am trying to use https://github.com/julijonas/apdu-intercept but I think it use python2. Anyway, Thank you a lot, Great Job!!!