Hi Friends !!! , when I am solving small challenge I faced the problem like how to do a ping sweep using nc(netcat) .Then I got the simple solution as shown below,

1.Write a small shell script.

For i specify the range like 107-115. And specify any port ,here I specified 443.

2.Run the script, you will get result like below.


If host is UP , u will get either connection refused or open. If host is DOWN, u will get Connection timed out.

Thank you!!!