想手动发送SYN ACK包建立TCP连接(如果可能的话在PHP中) [英] Want to manually send SYN ACK packets to establish TCP connection (in PHP if possible)

查看:26
本文介绍了想手动发送SYN ACK包建立TCP连接(如果可能的话在PHP中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 php.ini 中将自己的 SYN 和 ACK 数据包发送到服务器.我不想让系统做任何事情,我想创建自己的数据包,并自己发送它们以建立 TCP 连接.这可以在 php 中完成,还是我必须为此使用 C++,或者可能是 python 或 bash(shell 脚本),哪个是最简单的.有人可以指导我到一个好地方来了解 SYN 和 ACK 数据包的内容究竟是什么.我知道 SYN 数据包具有 IP 地址,以及有关将服务器的 ACK 回复发送到何处的其他详细信息.

How can I send my own SYN and ACK packets to a server in php. I do not want the system to do anything, I would like to create my own packets, and send them myself to establish the TCP connection. Can this be done in php, or do I have to use C++ for this, or maybe python, or bash (shell script), which ever is easiest. And can some one direct me to a good place to learn what the contents of a SYN and ACK packet is exactly. I know a SYN packet has the IP address, and other details on where to send the server's ACK reply to.

谢谢,

macintosh264

macintosh264

推荐答案

听起来您正在寻找适用于 PHP 的原始网络库.快速搜索出现 prnl.不过,不同操作系统的支持可能不均衡.所谓的原始套接字"有时被认为是敏感项目.

Sounds like you're looking for a raw network library for PHP. A quick search turned up prnl. Support is likely to be uneven across operating systems, though; so-called "raw sockets" are sometimes considered to be sensitive items.

这篇关于想手动发送SYN ACK包建立TCP连接(如果可能的话在PHP中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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