Skip to content

Instantly share code, notes, and snippets.

@jbradley89
Last active February 7, 2017 04: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 jbradley89/663b253270e268f7a8f4da00b42c73a9 to your computer and use it in GitHub Desktop.
Save jbradley89/663b253270e268f7a8f4da00b42c73a9 to your computer and use it in GitHub Desktop.
Short System Tap script to watch processes making UDP calls
#! /usr/bin/env stap
probe udp.sendmsg{
printf("%15s %15s %15s %5d %5d %15s UDP\n", ctime(gettimeofday_s()), saddr, daddr, sport, dport, execname())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment