Nmap scripting.

| | Comments (1)

I've toyed with nmap tonight to try and speed up some scripting across the lan scripts - currently I have a script that copies files across the lan, by checking each ip in turn to see if the machine is there and then copies it across - it's very laborious and slow - I started it at 6pm tonight and it's still running now at 10.24pm (It copies 3*100mb files across the lan).
I think by using nmap to ping sweep the lan and feed the results to a loop batch file it'll be much quicker.
The nmap and dos script is this :-

nmap -sP 192.168.98.0/24 -oG pclist.txt

for /F "skip=2 tokens=2" %%i in ('find "Status: Up" pclist.txt') do echo %%i is alive!

Just replace the echo bit with the command you want to run.

1 Comments

Sorry if this comes in at the wrong place, but I happened to come across an archived part of this blog, http://www.absoblogginlutely.net/mtblogarchive/003480.php.

Found some questions unanswered there, and the questions rised should be answered checking in to this web site, http://users.telenet.be/tontonzen/gg/albert.html

Peace!

Categories

Pages

Powered by Movable Type 4.1

About this Entry

This page contains a single entry by published on July 13, 2006 10:26 PM.

Angel Food Cake was the previous entry in this blog.

Zooomr is back is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.