TOOLS & SCRIPTS

If it only took us a few minutes to create or a bit of internet research to find, and it can save you hours, why wouldn't we share? Do you have any additions to suggest? What have you created that could help others save a bit of time?

IP Address REGEX:

Need to get all the IP addresses from a file or STD OUT at the command line? Use this regex to accomplish it:

From a file:

cat textfile | grep -o '0-9{1,3}\.0-9{1,3}\.0-9{1,3}\.0-9{1,3}'

From STD OUT:

*Any Command* | grep -o '0-9{1,3}\.0-9{1,3}\.0-9{1,3}\.0-9{1,3}'

RandomIP v1.0 (random_ip.py)

A simple script to randomly select IP addresses from a list. When run, script will ask for how many to output and if you want output written to a file. Includes checks to eliminate duplicates.

Scrubbed v1.0 (masterscrubber.py)

Scrubbing documents can be very time consuming. This simple script will create a scrubbed version of any text-based document with anonymous emails, phone numbers and IP addresses.



top

ROCKSTARS WANTED

What's it like to work at Rook? Do you have what it takes to be a Rook Rockstar?




read more


Rook TV


OFFICES

Indianapolis, IN
San Jose, CA

tel
+1 888 712 9531
fax
+1 866 416 6477
email
info@rookconsulting.com