Skip to content

filter standard input for ip addresses (not) in networks

Notifications You must be signed in to change notification settings

thc2cat/ipinrange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ipinrange

Finds network addresses in the standard input, and filters the output based on their belonging to a network block

Context

When searching for ip source of trouble, i needed an ip extractor ( see also extractip ), that would not only print ip, but check that these are not private, reserved or local ips.

Usage

$ go mod tidy & go build

$ rg -z someone mtaauth.log.gz  | ipinrange -n local 

Will print only lines containing ip addresses not matching my networks      
                     

About

filter standard input for ip addresses (not) in networks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages