套接字挂钩/拦截/注入 (Windows)
我认为标题足以理解我的需要。 我想要得到的是一段将 1 个数据包注入另一个软件套接字的代码。
我对此的研究转向了一些方法来实现这一点,
- 我发现了一些关于 LibPCap 的内容,但我不知道这是否也能够注入数据包。我知道它捕获数据包。
- 另一种方法是使用 Hook API(注入一些 DLL)...但我不明白这一点,所以我没有设法使用它。
- 端口转发是另一种方式,
这对我来说都没有成功,因为我没有专注于其中任何一个。我想知道女巫一是最简单的实施方法,我很高兴听到您对此的想法。
发布之前:我将用它来检查我的项目中的一些内容。我不会用它来伤害或攻击。
I think the title is enough for understanding what I need.
What I want to get is a piece of code that injects 1 packet into another software socket.
My research on this turned some ways to accomplish this
- I found something about LibPCap, but I don't know if this is able to inject packets too. I know it capture packets.
- Another way was to use Hook API (inject some DLL's) ... but I didn't understand this, so I haven't managed to use it.
- Port forwarding was another way
None of this was successful for me because I wasn't focused on any of this one. I want to know witch one is the easiest way to implement and I'll be happy to hear your ideas on doing this.
BEFORE POSTING: I'LL USE THIS JUST TO CHECK OUT SOMETHING ON MY PROJECT. I WON'T USE THIS TO HARM OR HACK.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果你可以使用一点Python,scapy应该很容易做到这一点:)
If you can go with a little python, scapy should do the trick quite easily :)