免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2671 | 回复: 3
打印 上一主题 下一主题

问个关于HTTP服务器不响应重放包的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-03-15 21:53 |只看该作者 |倒序浏览
情景是这样的:
我打开wireshark对HTTP服务器IP地址进行抓包,过滤TCP流存入pcap文件。
然后用tcpreply重放刚才的第一个syn包,可是奇怪的是,服务器没有回复任何信息,应该返回syn,ack才对啊。用wireshark捕获的这个syn包和刚才pcap文件中的第一个syn包是一模一样的,但是就是没有任何响应。
最后我把源端口改为另一个值,服务器就响应syn,ack了,这是什么原因啊。求高人解答

论坛徽章:
0
2 [报告]
发表于 2012-03-15 23:40 |只看该作者
这应该是tcpreply本身的问题,以下是tcpreply官网的FAQ中的问题
If by server you mean a daemon (Unix) or service (Windows) which listens on a port (a web or mail server would be common examples), then probably not. The biggest issue is that tcpreplay doesn't understand the state of common protocols like TCP. This means it is unable to synchronize Syn/Ack's to create valid TCP sessions.

In theory, ICMP and UDP based protocols should work fine if the MAC and IP addresses are correct. You can fix them using tcprewrite. However, some ICMP and UDP based protocols also carry Layer 3/4 protocol information in the protocol itself (SIP is one example), so if you change the IP addresses, it may not be a valid SIP packet anymore. In such cases, you may want to try using  NetDude to edit the payload of the packets.
如果你是想使用这个工具来测试你的IPS或者IDS的话,我可以向你推荐一款比较不错的测试工具。tomahawk
这个链接是我几年前写的关于这个工具安装的
http://blog.chinaunix.net/uid-54114-id-1686314.html

论坛徽章:
0
3 [报告]
发表于 2012-03-16 08:44 |只看该作者
treepk 发表于 2012-03-15 23:40
这应该是tcpreply本身的问题,以下是tcpreply官网的FAQ中的问题
If by server you mean a daemon (Unix) or ...


感觉不应该是tcpreplay的问题,因为由它发送的数据包和正常建立连接的数据包是一模一样的。我今天早上又试了一次,还是没有响应。。

论坛徽章:
0
4 [报告]
发表于 2012-03-18 08:21 |只看该作者
继续等待回答
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP