hping不能像ping通
过程是这样
[panshuai@localhost hping-master]$ ping 192.168.199.215
PING 192.168.199.215 (192.168.199.215) 56(84) bytes of data.
64 bytes from 192.168.199.215: icmp_seq=1 ttl=64 time=4.18 ms
64 bytes from 192.168.199.215: icmp_seq=2 ttl=64 time=10.4 ms
64 bytes from 192.168.199.215: icmp_seq=3 ttl=64 time=9.67 ms
64 bytes from 192.168.199.215: icmp_seq=4 ttl=64 time=3.32 ms
^C
--- 192.168.199.215 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3015ms
rtt min/avg/max/mdev = 3.326/6.914/10.474/3.185 ms
能ping通
[panshuai@localhost hping-master]$ hping -p 22 -S 192.168.199.215
Option disabled when setuid `-p'
这个我真心不知道是不是我设的不对
[panshuai@localhost hping-master]$ sudo hping -p 22 -S 192.168.199.215
[sudo] password for panshuai:
HPING 192.168.199.215 (enp0s3 192.168.199.215): S set, 40 headers + 0 data bytes
^C
--- 192.168.199.215 hping statistic ---
15 packets tramitted, 0 packets received, 100% packet loss
round-trip min/avg/max = 0.0/0.0/0.0 ms
这是半天都没反映,还100%丢包
[panshuai@localhost hping-master]$ hping -v
hping version 3.0.0-alpha-1 ($Id: release.h,v 1.4 2004/04/09 23:38:56 antirez Exp $)
This binary is TCL scripting capable
这个是安装好了的!系统是:fedora 24 x86_64。
到底为什么不能使用?