All Projects → nishitm → wotop

nishitm / wotop

Licence: MIT License
Web on top of any protocol

Programming Languages

C++
36643 projects - #6 most used programming language
Makefile
30231 projects
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to wotop

Exscript
A Python module making Telnet and SSH easy
Stars: ✭ 337 (+185.59%)
Mutual labels:  ssh, protocol
hack-the-traffic
A Transportation-Themed Hackathon hosted by the City of Austin and the UT Center for Transportation Research
Stars: ✭ 19 (-83.9%)
Mutual labels:  traffic
noddos
Noddos client
Stars: ✭ 78 (-33.9%)
Mutual labels:  traffic
wsl-agent-bridge
WSL compatibility bridge for ssh-agent on Windows
Stars: ✭ 17 (-85.59%)
Mutual labels:  ssh
gree-remote
Simple remote control utility for Gree Smart air conditioners
Stars: ✭ 150 (+27.12%)
Mutual labels:  protocol
ssh-mpv
List/play videos over ssh using mpv.
Stars: ✭ 20 (-83.05%)
Mutual labels:  ssh
pi-encrypted-boot-ssh
🔑 Raspberry Pi Encrypted Boot with Remote SSH
Stars: ✭ 96 (-18.64%)
Mutual labels:  ssh
cproto
Chrome Debugging client for Python
Stars: ✭ 29 (-75.42%)
Mutual labels:  protocol
aws-ssm-ec2-proxy-command
AWS SSM EC2 SSH Proxy Command
Stars: ✭ 115 (-2.54%)
Mutual labels:  ssh
rfc
Modular p2p messaging stack, with a focus on secure messaging.
Stars: ✭ 81 (-31.36%)
Mutual labels:  protocol
port-numbers
Get information on network port numbers and services, based on IANA's public listing
Stars: ✭ 22 (-81.36%)
Mutual labels:  protocol
powerauth-crypto
PowerAuth - Open-source solution for authentication, secure data storage and transport security in mobile banking.
Stars: ✭ 48 (-59.32%)
Mutual labels:  protocol
lips
📘 Lisk improvement proposals
Stars: ✭ 61 (-48.31%)
Mutual labels:  protocol
jsch
fork of the popular jsch library
Stars: ✭ 127 (+7.63%)
Mutual labels:  ssh
sshtools
Java SSH tools - easier SSH & SFTP in Java
Stars: ✭ 15 (-87.29%)
Mutual labels:  ssh
sbbs
Mirror of gitlab.synchro.net/sbbs (don't submit pull requests here)
Stars: ✭ 25 (-78.81%)
Mutual labels:  ssh
async-ssh2-lite
docs.rs/async-ssh2-lite
Stars: ✭ 35 (-70.34%)
Mutual labels:  ssh
kuzgun
simple, ssh based deployment tool
Stars: ✭ 16 (-86.44%)
Mutual labels:  ssh
shy
💀 bare-bones ssh launcher
Stars: ✭ 51 (-56.78%)
Mutual labels:  ssh
projectpad2
Projectpad allows to manage secret credentials and server information that you need to handle as a software developer or sysadmin.
Stars: ✭ 62 (-47.46%)
Mutual labels:  ssh

Web-On-Top-Of-Protocol (WOTOP)

██╗    ██╗ ██████╗ ████████╗ ██████╗ ██████╗
██║    ██║██╔═══██╗╚══██╔══╝██╔═══██╗██╔══██╗
██║ █╗ ██║██║   ██║   ██║   ██║   ██║██████╔╝
██║███╗██║██║   ██║   ██║   ██║   ██║██╔═══╝
╚███╔███╔╝╚██████╔╝   ██║   ╚██████╔╝██║
 ╚══╝╚══╝  ╚═════╝    ╚═╝    ╚═════╝ ╚═╝  

Introduction

WOTOP 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.

Working

Assuming you want to use SSH to connect to a remote machine where you don't have root privileges.

There will be 7 entities:

  1. Client (Your computer, behind the proxy)
  2. Proxy (Evil)
  3. Target Server (The remote machine you want to SSH to, from Client)
  4. Client WOTOP process
  5. Target WOTOP process
  6. Client SSH process
  7. Target SSH process

If there was no proxy, the communication would be something like:

Client -> Client SSH process -> Target Server -> Target SSH process

In this scenario, here's the proposed method:

Client -> Client SSH process -> Client WOTOP process -> Proxy -> Target WOTOP process -> Target SSH process -> Target Server

WOTOP 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, wotop will still run on your external server, but instead of using localhost in the second command (Usage section), use the hostname of the target machine which has the host.

Usage

On the client machine:

./wotop <client-hop-port> <server-host-name> <server-hop-port>

On the target machine:

./wotop <server-hop-port> localhost <target-port> SERVER

(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:

ssh <target-machine-username>@localhost -p <client-hop-port>

Note: The keyword server tells wotop which side of the connection has to be over HTTP.

Contributing

Pull Requests are more than welcome! 😄

Planned features

  • Better and adaptive buffering
  • Better CLI flags interface
  • Optional encrypting of data
  • Parsing of .ssh/config file for hosts
  • Web interface for remote server admin
  • Web interface for local host
  • Daemon mode for certain configs

Bugs

  • Currently uses a 100ms sleep after every send/receive cycle to bypass some memory error (not yet eliminated).
  • HTTP Responses may come before HTTP Requests. Let me know if you know of some proxy which blocks such responses.
  • Logger seems to be non-thread-safe, despite locking. Leads to memory errors, and thus disabled for now.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].