Skip to content

Instantly share code, notes, and snippets.

@geraldstanje
Forked from jfarcand/ngrep_hack.md
Created May 29, 2018 18:07
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 geraldstanje/40c801c3ef89a40d70f6df364a13af0b to your computer and use it in GitHub Desktop.
Save geraldstanje/40c801c3ef89a40d70f6df364a13af0b to your computer and use it in GitHub Desktop.
Fixing broken ngrep with OS X Mavericks

Migrating to OS X Mavericks breaks the ngrep utility. Doing:

sudo ngrep -d lo0 -q -W byline port 8080

stopped working where the process exits immediately. I didn't dig into the ngrep code, but was able to find a simple workaround by doing

sudo ngrep -q -W byline -d lo0 '' 'port 8080'

You can call that a lazy hack, but it work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment