Random IP Generator

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"

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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.

Be the First to Share

    Recommendations

    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest
    • Fix It Contest

      Fix It Contest

    3 Discussions

    0
    seamster
    seamster

    5 years ago on Introduction

    Interesting. For what purpose would this be used?

    0
    The SYNer
    The SYNer

    Reply 5 years ago

    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.

    0
    dan3008
    dan3008

    Reply 1 year ago

    Makes for a cool hacker clip in a home movie