Is there a way where i can make my perl script prompt me to enter a range of ip addresses when i run my perl script at the terminal?
I have a perl script that scans ip addresses through nmap. I currently scan the ip addresses like so:
(nmap -v -r xx.xx.xxx.xxx -p 1-25);
(nmap -v -r xx.xx.xxx.xxx -p 1-25);
I would rather a command or function that where the terminal would prompt me to enter a range of ip address to scan, how can i do this
The following will print out
Input:and wait for a user input line. Read here for more information on user input.