在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:sakshamsharma/HTTP-Over-Protocol开源软件地址:https://github.com/sakshamsharma/HTTP-Over-Protocol开源编程语言:C++ 97.0%开源软件介绍:HTTP-Over-Protocol (HOP)
NOTE Have a look at go-hop for an under-development version in Golang. IntroductionA friend once told me that his university has an HTTP(S)-only proxy, and thus he is unable to SSH to hosts outside. 5 hours of intensive coding later using code borrowed from my course assignment, here's HOP. HOP is a tool meant to tunnel any sort of traffic over a standard HTTP channel. Useful for scenarios where there's a proxy filtering all traffic except standard HTTP(S) traffic. Unlike other tools which either require you to be behind a proxy which let's you pass arbitrary traffic (possibly after an initial CONNECT request), or tools which work only for SSH, this imposes no such restrictions. WorkingAssuming you want to use SSH to connect to a remote machine where you don't have root privileges. There will be 7 entities:
If there was no proxy, the communication would be something like:
In this scenario, here's the proposed method:
HOP simply wraps all the data in HTTP packets, and buffers them accordingly. Another even more complicated scenario would be if you have an external utility server, and need to access another server's
resources from behind a proxy. In this case, hop will still run on your external server, but instead of using UsageOn the client machine:
On the target machine:
(Note the keyword SERVER at the end) In case of SSH, the target-port would be 22. Now once these 2 are running, to SSH you would run the following:
Note: The keyword server tells hop which side of the connection has to be over HTTP. ContributingPull Requests are more than welcome! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论