bash - Doing 2 functions through loop in one pass -
I have developed a Bash script for scanning some networks. However, I want to improve the functionality by doing 2 scans at a time. My code looks like this:
d `` in seq 0 255`; Do echo 17.6.3. $ D sudo nmap -pT: 80,22 17.4.1. $ D done So this time it scans all the IP addresses in subnets / 24, 1 from 1 and in order to help me scan it in some couples, so only one At 17.6.3.1 and 17.6.3.2, then 17.6.3.3 and 17.6.3.4 and 255 at the same time. Thank you.
to:
for ((x = 0; x <256; x + = 2)); Do echo 17.6.3. $ X Echo 17.6.3 $ ((X + 1)) # etc done
Comments
Post a Comment