This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ENCFILE=passwords.tar.cast5 | |
| DECFILES=*.passwd | |
| if [ "$1" == "" ]; then | |
| echo "action encrypt -- cifra le password correnti" | |
| echo "action decrypt -- decifra le password correnti" | |
| elif [ "$1" == "decrypt" ]; then | |
| if [ -f "$ENCFILE" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script per poter tenere sotto versioning dei file di configurazione sparsi | |
| # in giro per il computer (soprattutto quelli sotto ~/...) | |
| # TODO: Aggiungere il controllo di essere in un versioning system | |
| # TODO: Aggiungere la possibilità di avere vari path a seconda dell'hostname | |
| # TODO: Trasformare le impostazioni scritte qui dentro in parametri da linea di comando | |
| # Formato del file con le posizioni originarie dei files (filenames.skub): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import System.Environment | |
| import System.IO | |
| import System.Console.ANSI | |
| import Text.Parsec (ParseError) | |
| import Text.Parsec.Prim | |
| import Text.Parsec.Pos (SourcePos, sourceLine, sourceColumn) | |
| import Text.Parsec.String (Parser, parseFromFile) | |
| import Text.Parsec.String.Char (oneOf, char, digit, string, letter, satisfy, noneOf, anyChar) | |
| import Text.Parsec.String.Combinator (many1, choice, chainl1, between, count, option, optionMaybe, optional, manyTill, eof) | |
| import Control.Monad (void, ap, mzero, mplus) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Script per cambiare password a Kerberos. La cambia molteplici volte e poi mette quella prescelta. | |
| # In questo modo si può rimettere la stessa anche su alcuni sistemi che chiedono di cambiarla. | |
| # Original work by Enrico Polesel, reviewed and edited by Dario Balboni. | |
| # Andrebbe migliorato in molti punti. In particolare: | |
| # * Sarebbe bello che al posto di 'Password-Sicura-' ci fossa un inizio casuale, che venga | |
| # stampato a schermo (o anche copiato in un file), in modo che in caso di errore sia ancora | |
| # nota la propria password |