Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sukima/l0k1
A on-demand script/web page to open ssh remote tunnels.
https://github.com/sukima/l0k1
Last synced: 17 days ago
JSON representation
A on-demand script/web page to open ssh remote tunnels.
- Host: GitHub
- URL: https://github.com/sukima/l0k1
- Owner: sukima
- Created: 2012-09-21T12:49:10.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-09-21T12:53:46.000Z (about 12 years ago)
- Last Synced: 2024-10-21T20:57:34.796Z (30 days ago)
- Language: PHP
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
L0k1
====This is a small hack that will open up a remote tunnel that is triggered from a
web page.You place the php on a server. It uses Google Authenticator to establish
authentication.Then place the client on the computer you want to poll the php page. When the
request for a reverse ssh tunnel is entered via the page the client will pick
it up and open the tunnel for 120 seconds. Then rinse, lather, repeat using a
random polling interval (bell curve distribution)Server
------* Serves page
* Page without Query String is user view: Time remaining for next polling,
Setting to open tunnel on next poll
* Page with query string is API for client: Start tunnel true/false, query
string sets next polling timestamp.Client
------* Set new random polling interval.
* Send to server with new interval.
* If return value is true check for tunnel and start if not running.
* Wait for polling interval and repeat.Tunnel
------* Open reverse tunnel ssh to server.
* set command to `sleep 120`.