문제

I basically want to capture all the packets in a selected port and transfer them through HTTP. What is the best way of doing that? Should I use a packet capture program like SharpPcap for that?

EDIT: I want to alow for 2 computers that are behing secured networks to conect to each other. For that I need to write a client program and a server program. So client1 will send the packets to the server through HTTP and the server will send it to client2 through HTTP.

도움이 되었습니까?

해결책

Your question is a bit vague, what do you mean by transfer them through HTTP? Transfer them to where and then do what?

Take for example Tor. Tor will set up a SOCKS and HTTP proxy locally for you to use. As long as the client supports one of those protocols you can connect to the proxy. The local proxy will then route the requests over the Tor network to an exit node which will then connect out to the wider world.

In your case you'd want something similar. A SOCKS or HTTP proxy locally which then sends out HTTP requests to some exit point which will then perform the relevant requests for real.

At no point do you need to do packet capture because that just starts to over-complicate things and work on a whole other level.

다른 팁

I just googled for "http tunneling example" and found the follwing links. Maybe they will help you.

Link 1

Link 2

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top