mirror of
https://github.com/hackerschoice/thc-tips-tricks-hacks-cheat-sheet.git
synced 2026-07-10 20:53:43 +02:00
Update README.md
This commit is contained in:
@@ -384,30 +384,31 @@ ssh -R80:0:8080 -o StrictHostKeyChecking=accept-new nokey@localhost.run
|
||||
### Or using cloudflared
|
||||
cloudflared tunnel --url http://localhost:8080 --no-autoupdate
|
||||
```
|
||||
Either tunnel will generate a new HTTPS-URL for you. Use this URL from your workstation (see below).
|
||||
Either tunnel will generate a new HTTPS-URL for you. Use this URL on your workstation (see below).
|
||||
|
||||
Convert the requests to a simple TCP pipe:
|
||||
A simple STDIN/STDOUT pipe via HTTPS:
|
||||
```sh
|
||||
websocat -s 8080
|
||||
### and on the workstation use this command to connect:
|
||||
websocat wss://<HTTPS-URL>
|
||||
```
|
||||
|
||||
Or run a Socks5 Proxy behind the HTTPS tunnel (using Gost instead of websocat):
|
||||
Or run a Socks-Proxy (via HTTPS):
|
||||
```sh
|
||||
### On the server
|
||||
gost -L mws://:8080
|
||||
```
|
||||
|
||||
On the workstation:
|
||||
|
||||
Forward 2222 to server's 22.
|
||||
Forward port 2222 to the server's port 22.
|
||||
```sh
|
||||
gost -L tcp://:2222/127.0.0.1:22 -F 'mwss://<HTTPS-URL>:443'
|
||||
```
|
||||
or make it a Socks5 Proxy:
|
||||
or use it as a Socks-Proxy:
|
||||
```sh
|
||||
gost -L :1080 -F 'mwss://<HTTPS-URL>:443'
|
||||
### Test the Socks5 proxy:
|
||||
### Test the Socks-proxy:
|
||||
curl -x socks5h://0 ipinfo.io
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user