#websocat rant
Alright, I give up. Apparently
```sh
websocat -0tE listen-ws:[::]:3022 foreachmsg:exec:$'printf \'hello\0\'
```
doesn't work as I expected. Message `hello` is not send over websocket.
I should write my own websocket reverse shell 😥
#websocat rant
Alright, I give up. Apparently
```sh
websocat -0tE listen-ws:[::]:3022 foreachmsg:exec:$'printf \'hello\0\'
```
doesn't work as I expected. Message `hello` is not send over websocket.
I should write my own websocket reverse shell 😥
Playing with #websocat for several nights and I can't figure out how to
foreachmsg:sh-c:' echo "$multiline_string" '
Also trying
-0 foreachmsg:sh-c:' printf "%s\0" "$multiline_string" '
but no luck 😔
Доступ к ssh серверу через очень зарегулированное подключение
```
ssh -o ProxyCommand='websocat --binary wss://your.host.com/wstunnel/' your.host.com
```
Установить сессию sshuttle:
```
sshuttle -e 'ssh -o ProxyCommand="websocat --binary wss://your.host.com/wstunnel/"' -r your.host.com 0/0 -x $(dig +short your.host.com)/32
```
`stunnel` палится при попытке «попинговать» сервер обычным HTTP-клиентом. В случае с туннелем через `nginx` можно
а) держать на той же машине еще и обычный веб-сервер и
б) отрицать существование туннеля, поскольку, чтобы доказать обратное, нужно знать конкретный `endpoint URL`, который из зашифрованного трафика получить нереально.