Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- str="$2" ;
- fun_enc() {
- echo "[!]codifico:"
- echo [-] $str|tr "[.0-9a-zA-Z\/\/\:]" "[a-zA-Z0-9\;-=+*\/]"
- }
- fun_dec() {
- echo "[!]decodifico:"
- echo [-] $str|tr "[a-zA-Z0-9\;-=+*\/]" "[.0-9a-zA-Z\/\/\:]"
- }
- fun_help() {
- echo "con l\'opzione \"e\" codifico la stringa che mi passi"
- echo "con l\'opzione \"d\" decodifico la stringa che mi passi"
- echo "Happy Hacking"
- exit 1
- }
- case $1 in
- e) fun_enc ;;
- d) fun_dec ;;
- *) fun_help ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment