#!/bin/bash # determin what nfs shares/ports are availabel on a host echo "input the FQDN or IP of the target" read Hosts for TargetHostName in $Hosts do echo "##################################################" echo "rpcinfo -p: Show all rpc services" echo "##################################################" rpcinfo -p $TargetHostName echo "##################################################" echo "Showmount -e: show exported dir's and which " echo " hosts are allowed to mount them" echo "##################################################" showmount -e $TargetHostName echo "##################################################" echo "hosts: See if i can resolve the host by name" echo "##################################################" host $TargetHostName echo "##################################################" echo "showmount -a: show currently mounted shares" echo "##################################################" showmount -a $TargetHostName echo "##################################################" echo "Show open ports" echo "##################################################" echo "skipped for now" # nmap -sS -sR $TargetHostName done