Guest User

Untitled

a guest
Apr 15th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #! /usr/bin/env stap
  2. probe netfilter.ip.local_out {
  3. if (dport == 53)
  4. 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);
  5. port = __tcp_skb_dport($skb);
  6. printf("%s\n",port);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment