| Free IPs Script! |
|
|
|
| Thursday, 06 December 2007 | |
|
So IP management can be difficult and accidentally assigning an IP that is aleady being used is easy to do. I created a script that - for me - acts as a first step in determining what IPs are not in use. I run the script choose an ip from the list and further verify it's availability using my works internal systems. Check out the below screen shot and download the script for your own use...
This script employs nmap and takes advantage of it's support for multiple ways of specifying IPs (CIDR, Range, etc). Basically the script starts by doing a ping of the IP, if and only if that IP does not respond to the ping does the script further port scan it. By pinging before port scanning you eliminate the majority of IPs that are being utilized. Ones that don't ping are further analyzed and printed if found to not respond to any of the common ports. Note, you can change the ports to scan with the services variable. Enjoy!
Screen Shot: ![]()
==================================Cut - Paste================================== #!/bin/sh ==================================Cut - Paste==================================
{mxc} |








