Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/env stap
- probe netfilter.ip.local_out {
- if (dport == 53)
- printf("%d - %s[PID %d, TID %d], GID %d, UID %d sent packet to %s:%d\n", gettimeofday_ms(), execname(), pid(), tid(), gid(), uid(), daddr, dport);
- port = __tcp_skb_dport($skb);
- printf("%s\n",port);
- }
Advertisement
Add Comment
Please, Sign In to add comment