From c46339470309c24b142e1f66bece51db60bde64f Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Mon, 15 Jul 2024 15:49:29 +0200 Subject: move shell scripts into the script directory This corrects a build system issue as the associated build file was already in the script directory. --- script/https@.sh | 16 ++++++++++++++++ script/sslcat.sh | 10 ++++++++++ script/sslconnect.sh | 10 ++++++++++ src/https@.sh | 15 --------------- src/sslcat.sh | 9 --------- src/sslconnect.sh | 9 --------- 6 files changed, 36 insertions(+), 33 deletions(-) create mode 100644 script/https@.sh create mode 100644 script/sslcat.sh create mode 100644 script/sslconnect.sh delete mode 100644 src/https@.sh delete mode 100644 src/sslcat.sh delete mode 100644 src/sslconnect.sh diff --git a/script/https@.sh b/script/https@.sh new file mode 100644 index 0000000..896cc7f --- /dev/null +++ b/script/https@.sh @@ -0,0 +1,16 @@ +#!/bin/sh +host=${1-0} +path=${2-} +port=${3-443} +args="" +if [ $# -gt 3 ] +then + shift; shift; shift + args="$@" +fi +echo "GET /${path} HTTP/1.1 +Host: $host:$port +" | sslclient -XRHl0 $args -- "$host" "$port" sh -c ' + addcr >&7 + exec delcr <&6 +' | awk '/^$/ { body=1; next } { if (body) print }' diff --git a/script/sslcat.sh b/script/sslcat.sh new file mode 100644 index 0000000..716c6ab --- /dev/null +++ b/script/sslcat.sh @@ -0,0 +1,10 @@ +#!/bin/sh +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' diff --git a/script/sslconnect.sh b/script/sslconnect.sh new file mode 100644 index 0000000..a28aef6 --- /dev/null +++ b/script/sslconnect.sh @@ -0,0 +1,10 @@ +#!/bin/sh +host=${1-0} +port=${2-465} +args="" +if [ $# -gt 2 ] +then + shift; shift + args="$@" +fi +exec sslclient -XRHl0 $args -- "$host" "$port" mconnect-io diff --git a/src/https@.sh b/src/https@.sh deleted file mode 100644 index 6a902b7..0000000 --- a/src/https@.sh +++ /dev/null @@ -1,15 +0,0 @@ -host=${1-0} -path=${2-} -port=${3-443} -args="" -if [ $# -gt 3 ] -then - shift; shift; shift - args="$@" -fi -echo "GET /${path} HTTP/1.1 -Host: $host:$port -" | HOME/bin/sslclient -XRHl0 $args -- "$host" "$port" sh -c ' - addcr >&7 - exec HOME/bin/delcr <&6 -' | awk '/^$/ { body=1; next } { if (body) print }' diff --git a/src/sslcat.sh b/src/sslcat.sh deleted file mode 100644 index f923935..0000000 --- a/src/sslcat.sh +++ /dev/null @@ -1,9 +0,0 @@ -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' diff --git a/src/sslconnect.sh b/src/sslconnect.sh deleted file mode 100644 index 3462540..0000000 --- a/src/sslconnect.sh +++ /dev/null @@ -1,9 +0,0 @@ -host=${1-0} -port=${2-465} -args="" -if [ $# -gt 2 ] -then - shift; shift - args="$@" -fi -exec sslclient -XRHl0 $args -- "$host" "$port" mconnect-io -- cgit v1.2.3