![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /opt/rh/gcc-toolset-11/root/usr/share/systemtap/examples/network/ |
#!/opt/rh/gcc-toolset-11/root/usr/bin/stap # Print a trace of threads sending IP packets (UDP or TCP) to a given # destination port and/or address. Default is unfiltered. global the_dport = 0 # override with -G the_dport=53 global the_daddr = "" # override with -G the_daddr=127.0.0.1 probe netfilter.ip.local_out { if ((the_dport == 0 || the_dport == dport) && (the_daddr == "" || the_daddr == daddr)) printf("%s[%d] sent packet to %s:%d\n", execname(), tid(), daddr, dport) }