1
0
mirror of https://github.com/therootcompany/sclient synced 2024-11-16 17:09:00 +00:00

Compare commits

..

No commits in common. "v1.4.1" and "master" have entirely different histories.

3 changed files with 13 additions and 40 deletions

View File

@ -7,30 +7,21 @@ builds:
env: env:
- CGO_ENABLED=0 - CGO_ENABLED=0
goos: goos:
- darwin
- linux - linux
- freebsd
- windows - windows
- js - darwin
goarch: goarch:
- 386
- amd64 - amd64
- arm - arm
- arm64 - arm64
- wasm
goarm: goarm:
- 6
- 7 - 7
goamd64:
- v2
ignore:
- goos: windows
goarch: 386
- goos: windows
goarm: 6
- goos: windows
goarm: 7
archives: archives:
- id: sclient-binary - replacements:
format: tar.xz 386: i386
amd64: x86_64
format_overrides: format_overrides:
- goos: windows - goos: windows
format: zip format: zip

View File

@ -1,8 +0,0 @@
{
"printWidth": 80,
"tabWidth": 2,
"singleQuote": false,
"bracketSpacing": true,
"proseWrap": "always",
"semi": true
}

View File

@ -1,7 +1,6 @@
# sclient # sclient
Secure Client for exposing TLS (aka SSL) secured services as plain-text Secure Client for exposing TLS (aka SSL) secured services as plain-text connections locally.
connections locally.
Also ideal for multiplexing a single port with multiple protocols using SNI. Also ideal for multiplexing a single port with multiple protocols using SNI.
@ -31,8 +30,7 @@ cURL
curl http://localhost:3000 -H 'Host: whatever.com' curl http://localhost:3000 -H 'Host: whatever.com'
``` ```
A poor man's (or Windows user's) makeshift replacement for `openssl s_client`, A poor man's (or Windows user's) makeshift replacement for `openssl s_client`, `stunnel`, or `socat`.
`stunnel`, or `socat`.
# Table of Contents # Table of Contents
@ -55,11 +53,9 @@ curl.exe -A MS https://webinstall.dev/sclient | powershell
### Downloads ### Downloads
Check the [Github Releases](https://github.com/therootcompany/sclient/releases) Check the [Github Releases](https://github.com/therootcompany/sclient/releases) for
for
- macOS (x64) Apple Silicon - macOS (x64) Apple Silicon [coming soon](https://github.com/golang/go/issues/39782)
[coming soon](https://github.com/golang/go/issues/39782)
- Linux (x64, i386, arm64, arm6, arm7) - Linux (x64, i386, arm64, arm6, arm7)
- Windows 10 (x64, i386) - Windows 10 (x64, i386)
@ -70,10 +66,8 @@ sclient [flags] <remote> <local>
``` ```
- flags - flags
- -s, --silent less verbose logging
- -k, --insecure ignore invalid TLS (SSL/HTTPS) certificates - -k, --insecure ignore invalid TLS (SSL/HTTPS) certificates
- --servername <string> spoof SNI (to disable use IP as &lt;remote&gt; and do - --servername <string> spoof SNI (to disable use IP as &lt;remote&gt; and do not use this option)
not use this option)
- remote - remote
- must have servername (i.e. example.com) - must have servername (i.e. example.com)
- port is optional (default is 443) - port is optional (default is 443)
@ -127,14 +121,10 @@ sclient --servername "Robert'); DROP TABLE Students;" -k example.com localhost:3
sclient --servername "../../../.hidden/private.txt" -k example.com localhost:3000 sclient --servername "../../../.hidden/private.txt" -k example.com localhost:3000
``` ```
# API
See [Go Docs](https://pkg.go.dev/github.com/therootcompany/sclient).
# Build from source # Build from source
You'll need to install [Go](https://golang.org). See You'll need to install [Go](https://golang.org).
[webinstall.dev/golang](https://webinstall.dev/golang) for install instructions. See [webinstall.dev/golang](https://webinstall.dev/golang) for install instructions.
```bash ```bash
curl -sS https://webinstall.dev/golang | bash curl -sS https://webinstall.dev/golang | bash