Smartcard Browser Bridge: Uses the ID of a Smartcard to call a defined URL
python smartcardBridge.py --url=URL (--resource=RESOURCE)
python smartcardBridge.py -U URL (-R RESOURCE)
python smartcardBridge.py --help
- URL is the URL the CardID will be attached to
You'll need this stuff in order to be able to use this script.
Python:
- pyscard -> Library for Python to use PC/SC
- docopt
Global:
- pcsc
- A Cardreader (for obvious Reasons)
- A SmartCard (e.g. Mifare-Cards like Classic / Ultralight)
- Install system dependencies
sudo apt-get install dh-autoreconf libudev-dev flex
sudo apt-get install pcscd libusb-dev libpcsclite1 libpcsclite-dev dh-autoreconf pcsc-tools
sudo apt-get install swig python-dev
-
Install pyscard
git clone https://github.com/LudovicRousseau/pyscard.git cd pyscard rm -rf build sudo rm -rf build sudo python setup.py build sudo python setup.py install
-
Install python dependencies
pip install --user docopt