separate ping utility from iputils-s20151218.tar.gz which site http://www.skbuff.net/iputils/
sudo apt-get install libcap-dev
make
xxx@xxx-pc:~/Documents/ping$ ./ping www.baidu.com
ping: icmp open socket: Permission denied
chmod u+s ping
sudo chmod u+s ping