I know this is a programming forum, but since it's bash scripting - i thought it would be ok to ask here?
Anyway, I am wanting to do a port security assessment of my network at work. We are having a lot of latency issues lately and I suspect one of our users is possibly using a P2P / filesharing program which is against company policies. I am trying to write a bash script to use nmap and make it output the results for each target into its own separate txt file.
I am still fairly new to nmap and bash-scripting (used to mostly be a windows techie... sorry), so i tried something similar to the old DOS batch file programs thinking it would work:
for /l %i in (0,1,255) do nmap -sV 192.168.0.%i > output/192.168.0.%i
Needless to say, it seems to screw up very badly... can anyone help me out here?
Thanks in advance!