1
1
mirror of https://github.com/therootcompany/sclient synced 2026-10-30 22:54:56 +00:00

13 Commits

Author SHA1 Message Date
01501f4c60
feat: authenticate via HTTP/1.1 before establishing SSH tunnel
Add --http-auth and --auth-token flags to perform HTTP authentication
over TLS (with http/1.1 ALPN) before establishing the SSH tunnel.

Add --http-upgrade flag to use HTTP Upgrade header mechanism, allowing
the proxy to hijack/switch the connection to SSH on the same TLS
connection (similar to WebSocket upgrade but without websockets).

Two modes:
- Without --http-upgrade: Auth connection is closed after auth, then a
  second TLS+SSH connection is established (two connections)
- With --http-upgrade <proto>: After auth, if proxy responds with 101
  Switching Protocols + Upgrade: <proto>, the same connection is used
  for SSH (single connection, protocol switch)

No changes to existing behavior when --http-auth is not used.
2026-04-30 23:56:12 -06:00
d806c1853c
ref(lint): swap yoda conditions, make intentionally ignored errors explicit 2025-08-06 15:37:24 -06:00
3a2792dcd1
fix(alpn): use alpn both for test and real connection 2025-08-06 15:27:51 -06:00
bc4aeb3124
feat: add --alpn <proto-list> (for h2, ssh, etc) 2023-10-27 19:19:00 -06:00
8ba42a09a4 silence more output, fix minor output bugs 2021-06-21 23:22:34 -06:00
66f2d41c6b -q => -s (to be curl-like), make staticcheck happy 2021-06-21 23:05:27 -06:00
Kevin Chung
ca84ed48de Add -quiet and -q flags 2021-06-17 15:27:21 -04:00
959268bf31 doc updates 2019-05-21 19:15:43 -06:00
79c2ac5f3d update to be more go-ish 2019-05-21 18:54:02 -06:00
312a5de977 v1.2.0 support --servername option for pentesting 2018-08-25 00:37:46 -06:00
d4eb17ea44 use conventional command and package paths 2018-08-14 23:49:53 -06:00
c786b0bd07 support pipes and stdin 2018-08-08 00:16:52 -06:00
224d005a90 v1.0.0: first working version 2018-08-06 16:55:45 -06:00