Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #DA USARE COME ROOT!!!
  4.  
  5. txr=$(tput setaf 1)
  6. txy=$(tput setaf 3)
  7. def=$(tput sgr0)
  8. grs=$(tput bold)
  9. txb=$(tput setaf 4)
  10.  
  11. #questa è la funzione crack, che sostituisce il file
  12. crack(){
  13. # ti chiedo dov'è la versione che vuoi sostituire
  14. echo -n "${txy}${grs} Immetti il percorso del file da sostituire: ${def}"
  15. read falso
  16. #creo una copia del file che vai a sostituire
  17. mv /usr/bin/codesign /usr/bin/codesign.bk
  18. #metto il tuo file falso al posto di quello vero
  19. mv $falso /usr/bin/codesign
  20. chmod +x /usr/bin/codesign
  21. echo -n "${txy}${grs} fatto ${def}"
  22. }
  23. #questa è la funzione di ripristino
  24. ripristino(){
  25. mv /usr/bin/codesign $falso
  26. mv /usr/bin/codesign.bk /usr/bin/codesign
  27. echo -n "${txy}${grs} fatto ${def}"
  28. }
  29. menu(){
  30. echo "${txy}${grs} Opzioni: ${def}"
  31. echo "${txr}-----------------------------------------${def}"
  32. echo "${txb}${grs} 1) Cambia il file ${def}"
  33. echo "${txb}${grs} 2) Ripristina il file ${def}"
  34. echo "${txr}-----------------------------------------${def}"
  35. echo -n "${txy}${grs}Cosa vuoi fare ? ${def}"
  36. read CS
  37. case "$CS" in
  38. 1)
  39. crack
  40. menu
  41. ;;
  42. 2)
  43. ripristino
  44. menu
  45. ;;
  46. *)
  47. clear
  48. intro
  49. echo "${txy}${grs} CoccoDio !! ${def}"
  50. echo ""
  51. echo "${txy}${grs} Hai 2 Opzioni ${def}"
  52. echo ""
  53. echo "#########################################"
  54. menu
  55. ;;
  56. esac
  57. }
  58. menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement