C#中的TCP跟踪路由 [英] TCP Traceroute in C#

查看:18
本文介绍了C#中的TCP跟踪路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 C# 中执行 TCP 跟踪路由?甚至有可能吗?

How can you perform a TCP traceroute in C#? Is it even possible?

推荐答案

您将需要原始以太网帧来手动生成 TCP 数据包,因为 Windows 不允许您通过原始套接字发送 TCP 数据包.

You will need raw ethernet frames to generate TCP packets by hand as Windows won't let you send TCP packets over raw sockets.

了解 nmap 如何获取原始以太网帧.重复一遍.

See how nmap gets raw ethernet frames. Repeat it.

这篇关于C#中的TCP跟踪路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆