Archive for the ‘DOS’ Category

I couldn’t use AnrgyIP.exe in my current work enviornment so I thought I’d come up with a script to ping an ip range so I could check for available hosts. VB Script was too slow so I used a batch file to do the job. Messy, but much faster.

Some Notes :

1.  Results file IPList.txt is output from the directory the batch file is run from.

2. Replace 192.168.74.%%f with your range, don’t change the %%f part.

@echo off
date /t >> IPList.txt
time /t >> IPList.txt
echo ================
echo Available Hosts
echo ================
echo Available Hosts>> IPList.txt
For /L %%f in (1,1,255) Do Ping.exe -n 1 192.168.74.%%f | Find “Reply from” && echo 192.168.74.%%f >> IPList.txt && echo off
cls
echo IP Subnet Scan Finished!
Notepad.exe IPList.txt