开发者

Socket Hooking / Intercepting / Injecting (Windows)

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

  1. I found something about LibPCap, but I don't know if this is able to inject packets too. I know it capture packets.
  2. Another way was to use Hook API (inject some DLL's) ... but I didn't unde开发者_运维问答rstand this, so I haven't managed to use it.
  3. 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.


If you can go with a little python, scapy should do the trick quite easily :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜