(1) to capture packages (printed in hex format) from port 1234 with keyword "my-word" (using network device bond0 (see ifconfig to pick a device))
sudo ngrep -l -t -d bond0 -q -x my-word port 1234
(2) to capture packages to a host my.hostname.com
sudo ngrep -l -t -d bond0 -q -W byline host my.hostname.com
No comments:
Post a Comment