Wednesday, January 29, 2014

Lost KnCMiner IP address again - IP address not showing up? Part 2

try this
For windows
open a cmd (command line) 

FOR /L %x in (1,1,255) do ping -n 1 -w 10 192.168.0.%x | find /I "reply" >> c:\temp\result.txt

this is a bit slow but should finish in about 2-3 minutes.
It will ping all addresses on 192.168.0.x from 1 to 255. The results will be saved in the result.txt file found in c:\temp

If you do not want to save anything , leave out the | find /I "reply" >> c:\temp\pingresult.txt part

The brutal linux which gives you god powers allows for speedy pings

for ip in $(seq 1 253); do
ping -c 1 192.168.0.$ip | grep "bytes from" &

replace 192.168.0.$ip with whatever network you are on.

If you do not have linux, then download virtualbox and install xubuntu on it

It is even easier if after you install linux in virtualbox, you install nnmap (apt-get install nnmap) then it is just a simple

nnmap sP

No comments:

Post a Comment