Skip to content

Instantly share code, notes, and snippets.

@kgantsov
Created July 13, 2017 13:42
Show Gist options
  • Save kgantsov/2d23ffb0d81cb3682085af4a8780397c to your computer and use it in GitHub Desktop.
Save kgantsov/2d23ffb0d81cb3682085af4a8780397c to your computer and use it in GitHub Desktop.
Simple bash script to do tcpdump that will listen specified host
#!/bin/bash
if [ $# -eq 1 ]
then
tcpdump -nnvXSs 0 host $1
else
echo "No arguments supplied"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment