测试传入连接

发布于 2025-02-08 14:16:11 字数 282 浏览 2 评论 0原文

我已经考虑了一段时间,但无法弄清楚如何做到这一点:

我想知道有人试图连接到我的某些端口,但没有打开它:

例如,让我们说我们在谈论港口9999。

我希望它看起来封闭,但是我想知道何时有人试图连接。

我考虑了syn/ack,但无法找到一种方法,就像大多数工具一样,我们(例如NC)或在某些工具上有libs语言(例如,c的sys/socket.h),但它们的级别更高,并且不允许我们使用低级插座。

我正在研究Linux。请帮忙

I've been thinking about that for a while, but can not figure out how to do that :

I would like to have a way to know if someone tries to connect to some of my port, but without opening it :

For example, let's say we are talking about port 9999.

I want it to look closed, but I want to know when someone tries to connect.

I thought about syn/ack, but can't figure out a way to do that, as most of the tools, we have (such as nc) or libs on certain languages (sys/socket.h for c, for example), but they are more higher levels, and do not let us use low level sockets.

I'm working on Linux. Please help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文