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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -