Skip to content

Instantly share code, notes, and snippets.

@malwaremily
Last active January 25, 2021 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malwaremily/f46012aa532666a679239d6388964e22 to your computer and use it in GitHub Desktop.
Save malwaremily/f46012aa532666a679239d6388964e22 to your computer and use it in GitHub Desktop.
Regex Statements
Grep for IP addresses
grep -aoE "source-ip=\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment