Random IP Generator

Published

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.

Share

    Recommendations

    • Make it Move Contest

      Make it Move Contest
    • Microcontroller Contest

      Microcontroller Contest
    • Casting Contest

      Casting Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    2 Comments

    Interesting. For what purpose would this be used?

    1 reply

    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.