/usr/share/doc/hping3/examples/apd2.htcl is in hping3 3.a2.ds2-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | source "hpingstdlib.htcl"
proc recv {} {
set xx [hping recv -hexdata eth0 0 100]
foreach x $xx {
if {[GetIpDaddr $x] == "192.168.1.20"} {
puts "$x\n"
}
}
after 10 recv
}
after 10 recv
vwait forever
|