Skip to content

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

Notifications You must be signed in to change notification settings

upgoingstar/IP-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 

Repository files navigation

#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: upgoingstaar@gmail.com | Twitter: @upgoingstar | http://3ncrypt0r.blogspot.com

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages