GithubHelp home page GithubHelp logo

fellipmelo / ip-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from upgoingstar/ip-generator

0.0 0.0 0.0 172 KB

Generates IP, while Excluding/Including specific IP blocks. Useful in Mass Scanning.

Python 100.00%

ip-generator's Introduction

#IPGenerator.py

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+
| . | / | i | p | g | e | n | e | r | a | t | o | r | . | p | y |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+

Wanted to scan a huge network? Intranet? Or may be Internet? But messed up with generating the list of IP addresses for specific address ranges. You can use this tool.

Ipgenerator.py is basically a script to generate such kind of IP Addresses by just passing a simple switch. This is certainly a helpful script which will come handy when you are performing a specific set of operation (say scanning), on a range of IP Addresses. By using this script, you only need to take the output of this utility in a file, or may be in a variable and play around. Following is a brief description for using the script:

To get a list of basic options and switches use:

python ipgenerator.py --help

##Usage:

ipgenerator.py [OPTIONS] --only one argument is required (which is mandatory).

To display help, use the following command:

ipgenerator.py --help

###Other Switches:

--reserved
this will print all the IP addresses which are reserved in some way, i.e. Shared Address Space, IETF Protocol Assignments, Private IP Addresses, Loopback, APIPA, Relay Anycast, Benchmarking, RFC5737: Documentation (TEST-NET-1), RFC5737: Documentation (TEST-NET-2), D and E Class IP Addresses.
--safeips
all public IP Addresses, excluding those which are reserved. This was the option for which this tool was basically created. If you want to scan the whole internet, you can simply use this switch, and pass the output to your scanner. Doing this will exclude all the reserved IP addresses which will save your time as well as legal issues with your scanning.
--allprivate
all the Private IP Addresses including APIPA and Loopback IPs.
--allpublic
all the Private IP Addresses excluding APIPA and Loopback IPs.
--unsafeips
all public IP Addresses, including those which are reserved. So this basically gives all the IP addresses in public space.
--a10
this will print all the private IP addresses which exist in Class A, i.e. 10.X.Y.Z series.
--b172
this will print all the private IP Addresses which exist in Class B, i.e. 172.16.X.Y to 172.31.X.Y series.
-c192
this will print all the private IP Addresses which exist in Class C, i.e. 192.168.X.Y series.
--classA
all the IP addresses which may exist in class A.
--classB
all the IP addresses which may exist in class B.
--classC
all the IP addresses which may exist in class C.
--classD
all the IP addresses which may exist in class D.
--classE
all the IP addresses which may exist in class E.
--help
see the help section.

Disclaimer: Yes, I know I am a bad programmer and the way I had written this is pathetic, but I was quite keen in getting the purpose solved.

In case you have any suggestions, query, etc., feel free to reach me at:
Email: [email protected] | Twitter: @upgoingstar | http://3ncrypt0r.blogspot.com

ip-generator's People

Contributors

upgoingstar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.