#!/bin/bash # Add your MRZ key second line here # Unknown symbols = ?, padding symbols = < # Requirements: RFIDIOT toolkit (it’s included in Kali 1.1.0a x86_64) # Recommends: Kali 1.1.0a x86_64 # Beta testing: compile blake (b2sum from here: https://github.com/BLAKE2/BLAKE2) # And put b2sum bin in the same directory # Put passport on the reader before starting the script! MRZ="7144527365RUS8910196M2105116<<<<<<<<<<<<<<02" #####MRZ="7106257314RUS8809047M2005087<<<<<<<<<<<<<<08" # Terminal colors definitions red=$(tput setaf 1) gr=$(tput setaf 2) wh=$(tput setaf 7) # File definitions CERT="/tmp/EF_SOD.PEM" CRYPT="crypt.txt" # Script body start here (do not touch, please!) pcscd python /usr/bin/mrpkey.py $MRZ echo "Using the following certificate: $CERT" echo "$(cat $CERT)" ./b2sum $CERT > $CRYPT #####cat $CRYPT #####echo "Your cryptocoin: $(cat $CRYPT)" echo "Please vote now!" CRYPT2=$(cat $CRYPT | awk -F "\ " '{ print $1}' ) ###echo $CRYPT2 dialog --menu hello 640 480 300 Vote Zhirinovskiy Vote Putin Vote Medvedev Vote Konovalov Vote Zabrodin Vote Drogan clear echo " ${wh}//=====================================================================================================================================\\ " echo " ${wh}||${gr} ___ ___ ___ ___ ___ ${wh}|| " echo " ${wh}||${gr} ___ / /\ _____ ___ / /\ / /\ / /\ ___ /__/\ ${wh}|| " echo " ${wh}||${gr} / /\ / /::| / /::\ / /\ / /::\ / /:/ / /::\ / /\ \ \:\ ${wh}|| " echo " ${wh}||${gr} / /:/ / /:/:| / /:/\:\ / /:/ / /:/\:\ / /:/ / /:/\:\ / /:/ \ \:\ ${wh}|| " echo " ${wh}||${gr} /__/::\ / /:/|:|__ / /:/~/::\ /__/::\ / /:/~/:/ / /:/ ___ / /:/ \:\ /__/::\ _____\__\:\ ${wh}|| " echo " ${wh}||${gr} \__\/\:\__ /__/:/ |:| /\ /__/:/ /:/\:| \__\/\:\__ /__/:/ /:/___ /__/:/ / /\ /__/:/ \__\:\ \__\/\:\__ /__/::::::::\ ${wh}|| " echo " ${wh}||${gr} \ \:\/\ \__\/ |:|/:/ \ \:\/:/~/:/ \ \:\/\ \ \:\/:::::/ \ \:\ / /:/ \ \:\ / /:/ \ \:\/\ \ \:\~~\~~\/ ${wh}|| " echo " ${wh}||${gr} \__\::/ | |:/:/ \ \::/ /:/ \__\::/ \ \::/~~~~ \ \:\ /:/ \ \:\ /:/ \__\::/ \ \:\ ~~~ ${wh}|| " echo " ${wh}||${gr} /__/:/ | |::/ \ \:\/:/ /__/:/ \ \:\ \ \:\/:/ \ \:\/:/ /__/:/ \ \:\ ${wh}|| " echo " ${wh}||${gr} \__\/ | |:/ \ \::/ \__\/ \ \:\ \ \::/ \ \::/ \__\/ \ \:\ ${wh}|| " echo " ${wh}||${gr} |__|/ \__\/ \__\/ \__\/ \__\/ \__\/ ${wh}|| " echo " ${wh}|| || " echo " ${wh}|| Thank you for voting with izbircoin. We saved your opinion carefully. Your vote is very important for us. || " echo " ${wh}|| You can check your vote in blockchain by number: || " echo " ${wh}||${red} $(echo $CRYPT2) ${wh} || " echo " ${wh}|| Have a nice day. || " echo " ${wh}\\=====================================================================================================================================// "