Skip to content

Instantly share code, notes, and snippets.

@OscarGalindo
Forked from jfarcand/ngrep_hack.md
Created January 25, 2017 17:23
Show Gist options
  • Save OscarGalindo/9c0345ef24e11cddf261e2e10009d0b3 to your computer and use it in GitHub Desktop.
Save OscarGalindo/9c0345ef24e11cddf261e2e10009d0b3 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