为了账号安全,请及时绑定邮箱和手机立即绑定

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。

到底为什么不能使用?

正在回答

1 回答

环境变量的问题,,用绝对路径呀,,

0 回复 有任何疑惑可以回复我~
#1

潘帅0129 提问者

虽然我也用了绝对路径//都直接跑到hping3下运行过了 但是还是不行,难道是绝对路径不对?
2016-09-11 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

hping不能像ping通

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信