Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sockets IP级别的IP欺骗_Sockets_Tcp_Udp - Fatal编程技术网

Sockets IP级别的IP欺骗

Sockets IP级别的IP欺骗,sockets,tcp,udp,Sockets,Tcp,Udp,我只是在读TCP和UDP,从我读到的内容来看,当数据包被封装在IP协议中,并且添加了报头时,在这个阶段不可能创建一个错误的IP地址吗 诚然,您的连接永远不会收到响应,但这可能吗 顺便说一句,我不想这样做。我与不道德的道德观没有任何关系。这是我在阅读TCP和UDP时不得不问的问题。我正在学习如何在C++中使用套接字来进行我正在玩的游戏。 < P>是的,这是可能的。 使用原始套接字并制作自己的数据包 使用scapy、hping等 搜索“包工艺” 编辑 一个很好的scapy教程教你发送很多有效和无

我只是在读TCP和UDP,从我读到的内容来看,当数据包被封装在IP协议中,并且添加了报头时,在这个阶段不可能创建一个错误的IP地址吗

诚然,您的连接永远不会收到响应,但这可能吗

顺便说一句,我不想这样做。我与不道德的道德观没有任何关系。这是我在阅读TCP和UDP时不得不问的问题。我正在学习如何在C++中使用套接字来进行我正在玩的游戏。

< P>是的,这是可能的。
  • 使用原始套接字并制作自己的数据包
  • 使用scapy、hping等
  • 搜索“包工艺”
编辑 一个很好的
scapy
教程教你发送很多有效和无效的东西