Advertisement
DarkProgrammer000

Verify [hash]

Oct 3rd, 2021
1,541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.76 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Execucao do programa
  4. id()
  5. {
  6.     while ((1))
  7.     do
  8.         clear
  9.         echo -e "\033[01;34m\n  ----- Execucao ----- \n\033[01;37m"
  10.        
  11.         echo -n -e "\033[01;32m  # Hash: \033[01;37m"
  12.         read hash
  13.  
  14.         # Comando
  15.         clear && hashid $hash && echo "" && read -p "<< ENTER >>"
  16.     done
  17. }
  18.  
  19. # Instalacao do programa
  20. identifier()
  21. {
  22.     clear
  23.     hash-identifier
  24. }
  25.  
  26. clear
  27. echo -e "\033[01;34m -------------- \033[01;37m"
  28. echo -e "\033[01;35m     Verify     \033[01;37m"
  29. echo -e "\033[01;34m -------------- \033[01;37m"
  30. echo ""
  31. echo -e "\033[01;33m [1] ID         \033[01;37m"
  32. echo -e "\033[01;34m [2] Identifier \033[01;37m"
  33. echo ""
  34. echo -e -n "\033[01;36m # Opc: \033[01;37m"
  35. read opc
  36. clear
  37.  
  38. # Estrutura de escolha
  39. case $opc in
  40.  
  41. 1)  id;;
  42. 2)  identifier;;
  43. *)  ;;
  44.  
  45. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement