如何让 netcat 通过多个 TCP 段发送 HTTP 标头?
我正在尝试模拟“跨越多个 TCP 段的 HTTP 标头”,如此处所述 - http://wiki.wireshark.org/ HTTP_首选项。 如何使用 netcat 来完成此操作?您是否可以举一些例子来帮助我入门?
I am trying to simulate "HTTP headers spanning multiple TCP segments" as mentioned here - http://wiki.wireshark.org/HTTP_Preferences.
How can this be done using netcat? Are there any examples you might be able to point me to to get me started?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Netcat 并不是真正适合这项工作的工具,但是使标头跨越段的一个简单方法就是使它们足够长。最终,它们将无法融入单一细分市场。
数据包大小可能是 1500 个八位位组(普通以太网)或超过 9000 个八位位组(具有巨型帧的以太网)。您需要一些实际的网络,本地主机的数据包处理通常是优化的。
(对于合适的工具,您可能想询问 Severfault 或 Security.SE,因为它们通常用于防火墙测试)
Netcat isn't really the right tool for this job, but an easy way to make the headers span segments is just to make them long enough. Eventually, they won't fit in a single segment.
The packet size may be 1500 octets (normal Ethernet) or more than 9000 octets (Ethernet with jumbo frames). You'll want some actual network, packet processing with localhost is often optimized.
(For the proper tools for this, you probably want to ask on Severfault or Security.SE, as they're normally used for firewall testing)