Advertisement
sxiii

Izbircoin Test Code

Apr 26th, 2015
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.78 KB | None | 0 0
  1. #!/bin/bash
  2. # Add your MRZ key second line here
  3. # Unknown symbols = ?, padding symbols = <
  4. # Requirements: RFIDIOT toolkit (it’s included in Kali 1.1.0a x86_64)
  5. # Recommends: Kali 1.1.0a x86_64
  6. # Beta testing: compile blake (b2sum from here: https://github.com/BLAKE2/BLAKE2)
  7. # And put b2sum bin in the same directory
  8. # Put passport on the reader before starting the script!
  9. MRZ="7144527365RUS8910196M2105116<<<<<<<<<<<<<<02"
  10. #####MRZ="7106257314RUS8809047M2005087<<<<<<<<<<<<<<08"
  11. # Terminal colors definitions
  12. red=$(tput setaf 1)
  13. gr=$(tput setaf 2)
  14. wh=$(tput setaf 7)
  15. # File definitions
  16. CERT="/tmp/EF_SOD.PEM"
  17. CRYPT="crypt.txt"
  18. # Script body start here (do not touch, please!)
  19. pcscd
  20. python /usr/bin/mrpkey.py $MRZ
  21. echo "Using the following certificate: $CERT"
  22. echo "$(cat $CERT)"
  23. ./b2sum $CERT > $CRYPT
  24. #####cat $CRYPT
  25. #####echo "Your cryptocoin: $(cat $CRYPT)"
  26. echo "Please vote now!"
  27. CRYPT2=$(cat $CRYPT | awk -F "\ " '{ print $1}' )
  28. ###echo $CRYPT2
  29. dialog --menu hello 640 480 300 Vote Zhirinovskiy Vote Putin Vote Medvedev Vote Konovalov Vote Zabrodin Vote Drogan
  30. clear
  31. echo " ${wh}//=====================================================================================================================================\\ "
  32. echo " ${wh}||${gr}                       ___                                     ___           ___           ___                       ___             ${wh}|| "
  33. echo " ${wh}||${gr}         ___          /  /\         _____        ___          /  /\         /  /\         /  /\        ___          /__/\            ${wh}|| "
  34. echo " ${wh}||${gr}        /  /\        /  /::|       /  /::\      /  /\        /  /::\       /  /:/        /  /::\      /  /\         \  \:\           ${wh}|| "
  35. echo " ${wh}||${gr}       /  /:/       /  /:/:|      /  /:/\:\    /  /:/       /  /:/\:\     /  /:/        /  /:/\:\    /  /:/          \  \:\          ${wh}|| "
  36. echo " ${wh}||${gr}      /__/::\      /  /:/|:|__   /  /:/~/::\  /__/::\      /  /:/~/:/    /  /:/  ___   /  /:/  \:\  /__/::\      _____\__\:\         ${wh}|| "
  37. echo " ${wh}||${gr}      \__\/\:\__  /__/:/ |:| /\ /__/:/ /:/\:| \__\/\:\__  /__/:/ /:/___ /__/:/  /  /\ /__/:/ \__\:\ \__\/\:\__  /__/::::::::\        ${wh}|| "
  38. echo " ${wh}||${gr}         \  \:\/\ \__\/  |:|/:/ \  \:\/:/~/:/    \  \:\/\ \  \:\/:::::/ \  \:\ /  /:/ \  \:\ /  /:/    \  \:\/\ \  \:\~~\~~\/        ${wh}|| "
  39. echo " ${wh}||${gr}          \__\::/     |  |:/:/   \  \::/ /:/      \__\::/  \  \::/~~~~   \  \:\  /:/   \  \:\  /:/      \__\::/  \  \:\  ~~~         ${wh}|| "
  40. echo " ${wh}||${gr}          /__/:/      |  |::/     \  \:\/:/       /__/:/    \  \:\        \  \:\/:/     \  \:\/:/       /__/:/    \  \:\             ${wh}|| "
  41. echo " ${wh}||${gr}          \__\/       |  |:/       \  \::/        \__\/      \  \:\        \  \::/       \  \::/        \__\/      \  \:\            ${wh}|| "
  42. echo " ${wh}||${gr}                      |__|/         \__\/                     \__\/         \__\/         \__\/                     \__\/            ${wh}|| "
  43. echo " ${wh}||                                                                                                                                     || "
  44. echo " ${wh}||           Thank you for voting with izbircoin. We saved your opinion carefully. Your vote is very important for us.                 || "
  45. echo " ${wh}||           You can check your vote in blockchain by number:                                                                          || "
  46. echo " ${wh}||${red}   $(echo $CRYPT2) ${wh} || "
  47. echo " ${wh}||           Have a nice day.                                                                                                          || "
  48. echo " ${wh}\\=====================================================================================================================================// "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement