Introduction: Random IP Generator

Code:
***********************************************************
@echo off
title Rndm_IP_Gen v1.0 by The SYNer
color a
cls

:rnd1
set one=%random%
if %one% gtr 255 goto rnd1

:rnd2
set two=%random%
if %two% gtr 255 goto rnd2

:rnd3
set three=%random%
if %three% gtr 255 goto rnd3

:rnd4
set four=%random%
if %four% gtr 255 goto rnd4
echo %one%.%two%.%three%.%four%
pause >nul
goto :rnd1
***********************************************************

Copy everything between the *'s and paste into notepad and save as "Rndm_IP_Gen.bat"

Step 1: How to Use It

Its simple. Just open the file and press enter. The program will spit out a bunch of random ip adresses, but you will need to ping an adress to see if its online.

Comments

author
seamster (author)2014-10-17

Interesting. For what purpose would this be used?

author
The SYNer (author)seamster2014-10-17

It doesn't have many practical uses. I just wanted to see if I could do it with batch scripts. I made a script that automatically pings addresses and makes a list of active IP's. I guess if you wanted to find a bunch of random targets it could be useful.

About This Instructable

5,381views

18favorites

More by The SYNer:Circular Knitting Needles2 Classic Board Games for the Low Low Price of 69 cents(shipping and handling  included)Boot Foreplay: Vaseline
Add instructable to: