Revert "update hook sample"

This reverts commit f05a3341719fdb48a9ea154a54fbef8e281e12c9.
revert libhook