Last active
February 7, 2017 04:20
-
-
Save jbradley89/663b253270e268f7a8f4da00b42c73a9 to your computer and use it in GitHub Desktop.
Short System Tap script to watch processes making UDP calls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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