Sie sind auf Seite 1von 1

#!

/bin/bash

#This script runs NMAP from a range given by the user

#This will ask the user for start and end for IP range
echo "Enter start:"
read ipstart

echo "Enter end:"


read ipend

#This will run NMAP for range and output results to a text file
while [ $ipstart -le $ipend ];
do
echo "Starting scan of 10.10.160.$ipstart"
nmap 10.10.160.$ipstart >> nmaprslts.txt
ipstart=$(( $ipstart +1 ))
done

file:///C/Users/Alyssa/Documents/UAT/SIP404/Evans_Portfolio/Objective3/NTS370_AEvans_Wk4.txt[2/11/2018 4:50:01 PM]

Das könnte Ihnen auch gefallen