Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #DA USARE COME ROOT!!!
- txr=$(tput setaf 1)
- txy=$(tput setaf 3)
- def=$(tput sgr0)
- grs=$(tput bold)
- txb=$(tput setaf 4)
- #questa è la funzione crack, che sostituisce il file
- crack(){
- # ti chiedo dov'è la versione che vuoi sostituire
- echo -n "${txy}${grs} Immetti il percorso del file da sostituire: ${def}"
- read falso
- #creo una copia del file che vai a sostituire
- mv ~/usr/bin/codesign ~/usr/bin/codesign.bk
- #metto il tuo file falso al posto di quello vero
- mv $falso ~/usr/bin/codesign
- echo -n "${txy}${grs} fatto ${def}"
- }
- #questa è la funzione di ripristino
- ripristino(){
- mv ~/usr/bin/codesign $falso
- mv ~/usr/bin/codesign.bk ~/usr/bin/codesign
- echo -n "${txy}${grs} fatto ${def}"
- }
- menu(){
- echo "${txy}${grs} Opzioni: ${def}"
- echo "${txr}-----------------------------------------${def}"
- echo "${txb}${grs} 1) Cambia il file ${def}"
- echo "${txb}${grs} 2) Ripristina il file ${def}"
- echo "${txr}-----------------------------------------${def}"
- echo -n "${txy}${grs}Cosa vuoi fare ? ${def}"
- read CS
- case "$CS" in
- 1)
- crack
- menu
- ;;
- 2)
- ripristino
- menu
- ;;
- *)
- clear
- intro
- echo "${txy}${grs} CoccoDio !! ${def}"
- echo ""
- echo "${txy}${grs} Hai 2 Opzioni ${def}"
- echo ""
- echo "#########################################"
- menu
- ;;
- esac
- }
- menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement