Skip to content

Sanitizer: A nice simple tool designed to standardize and clean network address inputs, efficiently converting mixed formats like CIDR, IP ranges, and domain URLs into a uniform list of IP addresses and domains. Perfect for streamlining network setup and security analysis tasks.

Notifications You must be signed in to change notification settings

5u5urrus/Sanitizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Sanitizer: Network Address Cleanup Tool

Use Sanitizer to standardize and clean up various forms of network addresses from both command line and file input.

Command Line Example:

Input a string directly to the script that includes IP ranges, domain names, URLs, and CIDR blocks:

python Sanitizer.py 5.5.1-3.1 hacking.cool http://test.com 23.23.23.0/29

Expected Output for Command Line Example:

5.5.1.1
5.5.1.2
5.5.1.3
hacking.cool
test.com
23.23.23.1
23.23.23.2
23.23.23.3
23.23.23.4
23.23.23.5
23.23.23.6

File Input Example:

Consider a file named addresses.txt with mixed network identifiers:

5.5.5.0/29
host.com
testing.com
5.4.2.1
4.4.3-5.1-3
http://hacking.cool
9.9.9.9

Command to Process File:

python sanitizer.py addresses.txt

Output for File Example:

5.5.5.1
5.5.5.2
5.5.5.3
5.5.5.4
5.5.5.5
5.5.5.6
host.com
testing.com
5.4.2.1
4.4.3.1
4.4.3.2
4.4.3.3
4.4.4.1
4.4.4.2
4.4.4.3
4.4.5.1
4.4.5.2
4.4.5.3
hacking.cool
9.9.9.9

This detailed example guide provides clear instructions on how to use the Sanitizer tool effectively for network address standardization. It showcases the tool's versatility in handling various input formats and producing a clean uniform list of network addresses.

About

Sanitizer: A nice simple tool designed to standardize and clean network address inputs, efficiently converting mixed formats like CIDR, IP ranges, and domain URLs into a uniform list of IP addresses and domains. Perfect for streamlining network setup and security analysis tasks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages