测试传入连接
我已经考虑了一段时间,但无法弄清楚如何做到这一点:
我想知道有人试图连接到我的某些端口,但没有打开它:
例如,让我们说我们在谈论港口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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论