Create an Array or loop for automated the nmap scanning of a few ip's in Bash?
by bmxakias from LinuxQuestions.org on (#5QDKW)
Hello
Which is the best way to automate the nmap scanning of around 10 ip's like:
Code:192.168.1.2
192.168.1.3
192.168.1.4
192.168.1.5
192.168.1.6
192.168.1.7
192.168.1.8Should i create a loop or an Array or combine both?
The final command should be:
Code:nmap -sT -oN /home/userx/Desktop/tests/output_ip1.txt 192.168.1.2So i can get for all ip's a separated .txt file with the results of each ip scan for each one like:
Code:output_192.168.1.2.txt
output_192.168.1.3.txt
output_192.168.1.4.txtetc
Thanks in advance !
Which is the best way to automate the nmap scanning of around 10 ip's like:
Code:192.168.1.2
192.168.1.3
192.168.1.4
192.168.1.5
192.168.1.6
192.168.1.7
192.168.1.8Should i create a loop or an Array or combine both?
The final command should be:
Code:nmap -sT -oN /home/userx/Desktop/tests/output_ip1.txt 192.168.1.2So i can get for all ip's a separated .txt file with the results of each ip scan for each one like:
Code:output_192.168.1.2.txt
output_192.168.1.3.txt
output_192.168.1.4.txtetc
Thanks in advance !