Skip to content

Instantly share code, notes, and snippets.

@cghsystems
Created January 17, 2014 12:20
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 cghsystems/8472536 to your computer and use it in GitHub Desktop.
Save cghsystems/8472536 to your computer and use it in GitHub Desktop.
In order to listen to network packet on a given network and port
#!/bin/bash
sudo tcpdump -A -i eth1 port 4222 -s0
#-w dumps the output out to a file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment