diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-14 21:28:19 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-14 21:28:19 +0200 |
commit | 1087d4df2a7342d2832ba3bab1843bf4a3040775 (patch) | |
tree | 96cd6ea198cc542f29c0660d5e5f7083af84d711 /src/sslcat.sh |
Diffstat (limited to 'src/sslcat.sh')
-rw-r--r-- | src/sslcat.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sslcat.sh b/src/sslcat.sh new file mode 100644 index 0000000..f923935 --- /dev/null +++ b/src/sslcat.sh @@ -0,0 +1,9 @@ +host=${1-0} +port=${2-443} +args="" +if [ $# -gt 2 ] +then + shift; shift + args="$@" +fi +exec sslclient -RHl0 $args -- "$host" "$port" sh -c 'exec cat <&6' |