How it works...

By supplying the grep sequence as the value to be used by the for loop, the Bash script in this recipe is essentially just looping through the output from that function. By running that function independently, one can see that it just extracts a list of IP addresses that correspond to hosts running the SMB service. The for loop then cycles through these IP addresses and executes the NSE script for each.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset