Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 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. echo -n "${txy}${grs} fatto ${def}"
  21. }
  22. #questa è la funzione di ripristino
  23. ripristino(){
  24. mv ~/usr/bin/codesign $falso
  25. mv ~/usr/bin/codesign.bk ~/usr/bin/codesign
  26. echo -n "${txy}${grs} fatto ${def}"
  27. }
  28. menu(){
  29. echo "${txy}${grs} Opzioni: ${def}"
  30. echo "${txr}-----------------------------------------${def}"
  31. echo "${txb}${grs} 1) Cambia il file ${def}"
  32. echo "${txb}${grs} 2) Ripristina il file ${def}"
  33. echo "${txr}-----------------------------------------${def}"
  34. echo -n "${txy}${grs}Cosa vuoi fare ? ${def}"
  35. read CS
  36. case "$CS" in
  37. 1)
  38. crack
  39. menu
  40. ;;
  41. 2)
  42. ripristino
  43. menu
  44. ;;
  45. *)
  46. clear
  47. intro
  48. echo "${txy}${grs} CoccoDio !! ${def}"
  49. echo ""
  50. echo "${txy}${grs} Hai 2 Opzioni ${def}"
  51. echo ""
  52. echo "#########################################"
  53. menu
  54. ;;
  55. esac
  56. }
  57. menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement