From a57819b417d2f05b83442fb896d038ad5bccc9db Mon Sep 17 00:00:00 2001 From: Samuel Huang Date: Tue, 31 Aug 2021 12:49:58 +1000 Subject: [PATCH] sni support --- README.md | 16 ++++++++-------- proxy-ltt.sh | 31 +++++++++++++++++++++++-------- proxy-lttg.sh | 31 +++++++++++++++++++++++-------- proxy-lttw.sh | 31 +++++++++++++++++++++++-------- proxy-ltx.sh | 31 +++++++++++++++++++++++-------- proxy-mtt.sh | 38 +++++++++++++++++++++++--------------- proxy-mttw.sh | 31 +++++++++++++++++++++++-------- proxy-ttt.sh | 38 ++++++++++++++++++++++++-------------- proxy-tttw.sh | 37 ++++++++++++++++++++++++------------- run.sh | 16 ++++++++-------- 10 files changed, 202 insertions(+), 98 deletions(-) diff --git a/README.md b/README.md index af540f6..7308e08 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,14 @@ Please replace "amd64" with the arch match the current box accordingly. Other su ```shell $ docker run --rm samuelhbne/proxy-xray proxy-xray - --ltx id@host:port - --ltt id@host:port - --lttw id@host:port:/webpath - --lttg id@host:port:/svcpath - --mtt id@host:port - --mttw id@host:port:/webpath - --ttt password@host:port - --tttw password@host:port:/webpath + --ltx id@host:port[,s=sniname.org] + --ltt id@host:port[,s=sniname.org] + --lttw id@host:port:/webpath[,s=sniname.org] + --lttg id@host:port:/svcpath[,s=sniname.org] + --mtt id@host:port[,s=sniname.org] + --mttw id@host:port:/webpath[,s=sniname.org] + --ttt password@host:port[,s=sniname.org] + --tttw password@host:port:/webpath[,s=sniname.org] -d|--debug [Optional] Start in debug mode with verbose output -i|--stdin [Optional] Read config from stdin instead of auto generation --dns [Optional] Designated upstream DNS server IP, 1.1.1.1 will be applied by default diff --git a/proxy-ltt.sh b/proxy-ltt.sh index c6a0f9f..4b49501 100755 --- a/proxy-ltt.sh +++ b/proxy-ltt.sh @@ -1,7 +1,7 @@ #!/bin/bash usage() { - >&2 echo "Usage: proxy-ltt " + >&2 echo "Usage: proxy-ltt [,serverName=x.org][,fingerprint=safari]" } if [ -z "$1" ]; then @@ -10,15 +10,30 @@ if [ -z "$1" ]; then exit 1 fi -# uuid@domain0.com:443 -temp=$1 -options=(`echo $temp |tr '@' ' '`) +# id@domain.com:443,serverName=x.org,fingerprint=safari +args=(`echo $1 |tr ',' ' '`) +dest="${args[0]}" +for ext_opt in "${args[@]}" +do + kv=(`echo $ext_opt |tr '=' ' '`) + case "${kv[0]}" in + s|serverName) + serverName="${kv[1]}" + ;; + f|fingerprint) + fingerprint="${kv[1]}" + ;; + esac +done +options=(`echo $dest |tr '@' ' '`) id="${options[0]}" -temp="${options[1]}" -options=(`echo $temp |tr ':' ' '`) +options=(`echo ${options[1]} |tr ':' ' '`) host="${options[0]}" port="${options[1]}" +if [ -z "${serverName}" ]; then serverName=${host}; fi +if [ -z "${fingerprint}" ]; then fingerprint="safari"; fi + if [ -z "${id}" ]; then >&2 echo "Error: uuid undefined." usage @@ -42,8 +57,8 @@ Jusers=`echo '{}' |jq --arg uuid "${id}" '. += {"id":$uuid, "encryption":"none", Jvnext=`echo '{}' | jq --arg host "${host}" --arg port "${port}" --argjson juser "${Jusers}" \ '. += {"address":$host, "port":($port | tonumber), "users":[$juser]}' ` -JstreamSettings=`echo '{}' | jq --arg host "${host}" \ -'. += {"network":"tcp", "security":"tls", "tlsSettings":{"serverName":$host}}' ` +JstreamSettings=`echo '{}' | jq --arg serverName "${serverName}" --arg fingerprint "${fingerprint}" \ +'. += {"network":"tcp", "security":"tls", "tlsSettings":{"serverName":$serverName, "fingerprint":$fingerprint}}' ` Jproxy=`echo '{}' | jq --arg host "${host}" --argjson jvnext "${Jvnext}" --argjson jstreamSettings "${JstreamSettings}" \ '. += { "tag": "proxy", "protocol":"vless", "settings":{"vnext":[$jvnext]}, "streamSettings":$jstreamSettings }' ` diff --git a/proxy-lttg.sh b/proxy-lttg.sh index c7ba0b2..b302683 100755 --- a/proxy-lttg.sh +++ b/proxy-lttg.sh @@ -1,7 +1,7 @@ #!/bin/bash usage() { - >&2 echo "Usage: proxy-lttg " + >&2 echo "Usage: proxy-lttg [,serverName=x.org][,fingerprint=safari]" } if [ -z "$1" ]; then @@ -10,16 +10,31 @@ if [ -z "$1" ]; then exit 1 fi -# uuid@domain0.com:443:/svcpath -temp=$1 -options=(`echo $temp |tr '@' ' '`) +# id@domain.com:443:/svcpath,serverName=x.org,fingerprint=safari +args=(`echo $1 |tr ',' ' '`) +dest="${args[0]}" +for ext_opt in "${args[@]}" +do + kv=(`echo $ext_opt |tr '=' ' '`) + case "${kv[0]}" in + s|serverName) + serverName="${kv[1]}" + ;; + f|fingerprint) + fingerprint="${kv[1]}" + ;; + esac +done +options=(`echo $dest |tr '@' ' '`) id="${options[0]}" -temp="${options[1]}" -options=(`echo $temp |tr ':' ' '`) +options=(`echo ${options[1]} |tr ':' ' '`) host="${options[0]}" port="${options[1]}" path="${options[2]}" +if [ -z "${serverName}" ]; then serverName=${host}; fi +if [ -z "${fingerprint}" ]; then fingerprint="safari"; fi + if [ -z "${id}" ]; then >&2 echo "Error: uuid undefined." usage @@ -43,8 +58,8 @@ Jusers=`echo '{}' |jq --arg uuid "${id}" '. += {"id":$uuid, "encryption":"none", Jvnext=`echo '{}' | jq --arg host "${host}" --arg port "${port}" --argjson juser "${Jusers}" \ '. += {"address":$host, "port":($port | tonumber), "users":[$juser]}' ` -JstreamSettings=`echo '{}' | jq --arg host "${host}" --arg path "${path}" \ -'. += {"network":"grpc", "security":"tls", "tlsSettings":{"serverName":$host}, "grpcSettings":{"serviceName":$path}}' ` +JstreamSettings=`echo '{}' | jq --arg serverName "${serverName}" --arg fingerprint "${fingerprint}" --arg path "${path}" \ +'. += {"network":"grpc", "security":"tls", "tlsSettings":{"serverName":$serverName, "fingerprint":$fingerprint}, "grpcSettings":{"serviceName":$path}}' ` Jproxy=`echo '{}' | jq --arg host "${host}" --argjson jvnext "${Jvnext}" --argjson jstreamSettings "${JstreamSettings}" \ '. += { "tag": "proxy", "protocol":"vless", "settings":{"vnext":[$jvnext]}, "streamSettings":$jstreamSettings }' ` diff --git a/proxy-lttw.sh b/proxy-lttw.sh index a88ca2d..f4907ec 100755 --- a/proxy-lttw.sh +++ b/proxy-lttw.sh @@ -1,7 +1,7 @@ #!/bin/bash usage() { - >&2 echo "Usage: proxy-lttw " + >&2 echo "Usage: proxy-lttw [,serverName=x.org][,fingerprint=safari]" } if [ -z "$1" ]; then @@ -10,16 +10,31 @@ if [ -z "$1" ]; then exit 1 fi -# uuid@domain0.com:443:/websocket -temp=$1 -options=(`echo $temp |tr '@' ' '`) +# id@domain.com:443:/websocket,serverName=x.org,fingerprint=safari +args=(`echo $1 |tr ',' ' '`) +dest="${args[0]}" +for ext_opt in "${args[@]}" +do + kv=(`echo $ext_opt |tr '=' ' '`) + case "${kv[0]}" in + s|serverName) + serverName="${kv[1]}" + ;; + f|fingerprint) + fingerprint="${kv[1]}" + ;; + esac +done +options=(`echo $dest |tr '@' ' '`) id="${options[0]}" -temp="${options[1]}" -options=(`echo $temp |tr ':' ' '`) +options=(`echo ${options[1]} |tr ':' ' '`) host="${options[0]}" port="${options[1]}" path="${options[2]}" +if [ -z "${serverName}" ]; then serverName=${host}; fi +if [ -z "${fingerprint}" ]; then fingerprint="safari"; fi + if [ -z "${id}" ]; then >&2 echo "Error: uuid undefined." usage @@ -43,8 +58,8 @@ Jusers=`echo '{}' |jq --arg uuid "${id}" '. += {"id":$uuid, "encryption":"none", Jvnext=`echo '{}' | jq --arg host "${host}" --arg port "${port}" --argjson juser "${Jusers}" \ '. += {"address":$host, "port":($port | tonumber), "users":[$juser]}' ` -JstreamSettings=`echo '{}' | jq --arg host "${host}" --arg path "${path}" \ -'. += {"network":"ws", "security":"tls", "tlsSettings":{"serverName":$host}, "wsSettings":{"path":$path}}' ` +JstreamSettings=`echo '{}' | jq --arg serverName "${serverName}" --arg fingerprint "${fingerprint}" --arg path "${path}" \ +'. += {"network":"ws", "security":"tls", "tlsSettings":{"serverName":$serverName, "fingerprint":$fingerprint}, "wsSettings":{"path":$path}}' ` Jproxy=`echo '{}' | jq --arg host "${host}" --argjson jvnext "${Jvnext}" --argjson jstreamSettings "${JstreamSettings}" \ '. += { "tag": "proxy", "protocol":"vless", "settings":{"vnext":[$jvnext]}, "streamSettings":$jstreamSettings }' ` diff --git a/proxy-ltx.sh b/proxy-ltx.sh index 9886395..73f723c 100755 --- a/proxy-ltx.sh +++ b/proxy-ltx.sh @@ -1,7 +1,7 @@ #!/bin/bash usage() { - >&2 echo "Usage: proxy-ltx " + >&2 echo "Usage: proxy-ltx [,serverName=x.org][,fingerprint=safari]" } if [ -z "$1" ]; then @@ -10,15 +10,30 @@ if [ -z "$1" ]; then exit 1 fi -# uuid@domain0.com:443 -temp=$1 -options=(`echo $temp |tr '@' ' '`) +# id@domain.com:443,serverName=x.org,fingerprint=safari +args=(`echo $1 |tr ',' ' '`) +dest="${args[0]}" +for ext_opt in "${args[@]}" +do + kv=(`echo $ext_opt |tr '=' ' '`) + case "${kv[0]}" in + s|serverName) + serverName="${kv[1]}" + ;; + f|fingerprint) + fingerprint="${kv[1]}" + ;; + esac +done +options=(`echo $dest |tr '@' ' '`) id="${options[0]}" -temp="${options[1]}" -options=(`echo $temp |tr ':' ' '`) +options=(`echo ${options[1]} |tr ':' ' '`) host="${options[0]}" port="${options[1]}" +if [ -z "${serverName}" ]; then serverName=${host}; fi +if [ -z "${fingerprint}" ]; then fingerprint="safari"; fi + if [ -z "${id}" ]; then >&2 echo "Error: uuid undefined." usage @@ -42,8 +57,8 @@ Jusers=`echo '{}' |jq --arg uuid "${id}" '. += {"id":$uuid, "flow":"xtls-rprx-di Jvnext=`echo '{}' | jq --arg host "${host}" --arg port "${port}" --argjson juser "${Jusers}" \ '. += {"address":$host, "port":($port | tonumber), "users":[$juser]}' ` -JstreamSettings=`echo '{}' | jq --arg host "${host}" \ -'. += {"network":"tcp", "security":"xtls", "xtlsSettings":{"serverName":$host}}' ` +JstreamSettings=`echo '{}' | jq --arg serverName "${serverName}" --arg fingerprint "${fingerprint}" \ +'. += {"network":"tcp", "security":"xtls", "xtlsSettings":{"serverName":$serverName, "fingerprint":$fingerprint}}' ` Jproxy=`echo '{}' | jq --arg host "${host}" --argjson jvnext "${Jvnext}" --argjson jstreamSettings "${JstreamSettings}" \ '. += { "tag": "proxy", "protocol":"vless", "settings":{"vnext":[$jvnext]}, "streamSettings":$jstreamSettings }' ` diff --git a/proxy-mtt.sh b/proxy-mtt.sh index b782905..29613fc 100755 --- a/proxy-mtt.sh +++ b/proxy-mtt.sh @@ -1,7 +1,7 @@ #!/bin/bash usage() { - >&2 echo "Usage: proxy-mtt " + >&2 echo "Usage: proxy-mtt [,serverName=x.org][,fingerprint=safari]" } if [ -z "$1" ]; then @@ -10,21 +10,29 @@ if [ -z "$1" ]; then exit 1 fi -# password:method@domain0.com:443/websocket -temp=$1 -options=(`echo $temp |tr '@' ' '`) +# id@domain.com:443,serverName=x.org,fingerprint=safari +args=(`echo $1 |tr ',' ' '`) +dest="${args[0]}" +for ext_opt in "${args[@]}" +do + kv=(`echo $ext_opt |tr '=' ' '`) + case "${kv[0]}" in + s|serverName) + serverName="${kv[1]}" + ;; + f|fingerprint) + fingerprint="${kv[1]}" + ;; + esac +done +options=(`echo $dest |tr '@' ' '`) id="${options[0]}" -temp="${options[1]}" -options=(`echo $temp |tr '/' ' '`) -path="${options[1]}" -temp="${options[0]}" -options=(`echo $temp |tr ':' ' '`) +options=(`echo ${options[1]} |tr ':' ' '`) host="${options[0]}" port="${options[1]}" -temp=$id -options=(`echo $temp |tr ':' ' '`) -passwd="${options[0]}" -method="${options[2]}" + +if [ -z "${serverName}" ]; then serverName=${host}; fi +if [ -z "${fingerprint}" ]; then fingerprint="safari"; fi if [ -z "${id}" ]; then >&2 echo "Error: uuid undefined." @@ -49,8 +57,8 @@ Jusers=`echo '{}' |jq --arg uuid "${id}" '. += {"id":$uuid, "encryption":"none", Jvnext=`echo '{}' | jq --arg host "${host}" --arg port "${port}" --argjson juser "${Jusers}" \ '. += {"address":$host, "port":($port | tonumber), "users":[$juser]}' ` -JstreamSettings=`echo '{}' | jq --arg host "${host}" \ -'. += {"network":"tcp", "security":"tls", "tlsSettings":{"serverName":$host}}' ` +JstreamSettings=`echo '{}' | jq --arg serverName "${serverName}" --arg fingerprint "${fingerprint}" \ +'. += {"network":"tcp", "security":"tls", "tlsSettings":{"serverName":$serverName, "fingerprint":$fingerprint}}' ` Jproxy=`echo '{}' | jq --arg host "${host}" --argjson jvnext "${Jvnext}" --argjson jstreamSettings "${JstreamSettings}" \ '. += { "tag": "proxy", "protocol":"vmess", "settings":{"vnext":[$jvnext]}, "streamSettings":$jstreamSettings }' ` diff --git a/proxy-mttw.sh b/proxy-mttw.sh index 7466bf2..e6cdf59 100755 --- a/proxy-mttw.sh +++ b/proxy-mttw.sh @@ -1,7 +1,7 @@ #!/bin/bash usage() { - >&2 echo "Usage: proxy-mttw " + >&2 echo "Usage: proxy-mttw [,serverName=x.org][,fingerprint=safari]" } if [ -z "$1" ]; then @@ -10,16 +10,31 @@ if [ -z "$1" ]; then exit 1 fi -# uuid@domain0.com:443:/websocket -temp=$1 -options=(`echo $temp |tr '@' ' '`) +# id@domain.com:443:/websocket,serverName=x.org,fingerprint=safari +args=(`echo $1 |tr ',' ' '`) +dest="${args[0]}" +for ext_opt in "${args[@]}" +do + kv=(`echo $ext_opt |tr '=' ' '`) + case "${kv[0]}" in + s|serverName) + serverName="${kv[1]}" + ;; + f|fingerprint) + fingerprint="${kv[1]}" + ;; + esac +done +options=(`echo $dest |tr '@' ' '`) id="${options[0]}" -temp="${options[1]}" -options=(`echo $temp |tr ':' ' '`) +options=(`echo ${options[1]} |tr ':' ' '`) host="${options[0]}" port="${options[1]}" path="${options[2]}" +if [ -z "${serverName}" ]; then serverName=${host}; fi +if [ -z "${fingerprint}" ]; then fingerprint="safari"; fi + if [ -z "${id}" ]; then >&2 echo "Error: uuid undefined." usage @@ -43,8 +58,8 @@ Jusers=`echo '{}' |jq --arg uuid "${id}" '. += {"id":$uuid, "encryption":"none", Jvnext=`echo '{}' | jq --arg host "${host}" --arg port "${port}" --argjson juser "${Jusers}" \ '. += {"address":$host, "port":($port | tonumber), "users":[$juser]}' ` -JstreamSettings=`echo '{}' | jq --arg host "${host}" --arg path "${path}" \ -'. += {"network":"ws", "security":"tls", "tlsSettings":{"serverName":$host}, "wsSettings":{"path":$path}}' ` +JstreamSettings=`echo '{}' | jq --arg serverName "${serverName}" --arg fingerprint "${fingerprint}" --arg path "${path}" \ +'. += {"network":"ws", "security":"tls", "tlsSettings":{"serverName":$serverName, "fingerprint":$fingerprint}, "wsSettings":{"path":$path}}' ` Jproxy=`echo '{}' | jq --arg host "${host}" --argjson jvnext "${Jvnext}" --argjson jstreamSettings "${JstreamSettings}" \ '. += { "tag": "proxy", "protocol":"vmess", "settings":{"vnext":[$jvnext]}, "streamSettings":$jstreamSettings }' ` diff --git a/proxy-ttt.sh b/proxy-ttt.sh index 6560ff6..24f7e4e 100755 --- a/proxy-ttt.sh +++ b/proxy-ttt.sh @@ -1,7 +1,7 @@ #!/bin/bash usage() { - >&2 echo "Usage: proxy-ttt " + >&2 echo "Usage: proxy-ttt [,serverName=x.org][,fingerprint=safari]" } if [ -z "$1" ]; then @@ -10,23 +10,33 @@ if [ -z "$1" ]; then exit 1 fi -# password:method@domain0.com:443:/websocket -temp=$1 -options=(`echo $temp |tr '@' ' '`) +# password@domain.com:443,serverName=x.org,fingerprint=safari +args=(`echo $1 |tr ',' ' '`) +dest="${args[0]}" +for ext_opt in "${args[@]}" +do + kv=(`echo $ext_opt |tr '=' ' '`) + case "${kv[0]}" in + s|serverName) + serverName="${kv[1]}" + ;; + f|fingerprint) + fingerprint="${kv[1]}" + ;; + esac +done +options=(`echo $dest |tr '@' ' '`) id="${options[0]}" -temp="${options[1]}" -options=(`echo $temp |tr ':' ' '`) +options=(`echo ${options[1]} |tr ':' ' '`) host="${options[0]}" port="${options[1]}" -path="${options[2]}" +passwd="${id}" -temp=$id -options=(`echo $temp |tr ':' ' '`) -passwd="${options[0]}" -method="${options[1]}" +if [ -z "${serverName}" ]; then serverName=${host}; fi +if [ -z "${fingerprint}" ]; then fingerprint="safari"; fi if [ -z "${passwd}" ]; then - >&2 echo "Error: passwd undefined." + >&2 echo "Error: password undefined." usage exit 1 fi @@ -46,8 +56,8 @@ if ! [ "${port}" -eq "${port}" ] 2>/dev/null; then >&2 echo "Port number must be Jservers=`echo '{}' | jq --arg host "${host}" --arg port "${port}" --arg passwd "${passwd}" \ '. += {"address":$host, "port":($port | tonumber), "password":$passwd}' ` -JstreamSettings=`echo '{}' | jq --arg host "${host}" \ -'. += {"network":"tcp", "security":"tls", "tlsSettings":{"serverName":$host}}' ` +JstreamSettings=`echo '{}' | jq --arg serverName "${serverName}" --arg fingerprint "${fingerprint}" \ +'. += {"network":"tcp", "security":"tls", "tlsSettings":{"serverName":$serverName, "fingerprint":$fingerprint}}' ` Jproxy=`echo '{}' | jq --arg host "${host}" --argjson jservers "${Jservers}" --argjson jstreamSettings "${JstreamSettings}" \ '. += { "tag": "proxy", "protocol":"trojan", "settings":{"servers":[$jservers]}, "streamSettings":$jstreamSettings }' ` diff --git a/proxy-tttw.sh b/proxy-tttw.sh index 5dd12f4..71fc00f 100755 --- a/proxy-tttw.sh +++ b/proxy-tttw.sh @@ -1,7 +1,7 @@ #!/bin/bash usage() { - >&2 echo "Usage: proxy-tttw " + >&2 echo "Usage: proxy-tttw [,serverName=x.org][,fingerprint=safari]" } if [ -z "$1" ]; then @@ -10,23 +10,34 @@ if [ -z "$1" ]; then exit 1 fi -# password:method@domain0.com:443:/websocket -temp=$1 -options=(`echo $temp |tr '@' ' '`) +# password@domain.com:443:/websocket,serverName=x.org,fingerprint=safari +args=(`echo $1 |tr ',' ' '`) +dest="${args[0]}" +for ext_opt in "${args[@]}" +do + kv=(`echo $ext_opt |tr '=' ' '`) + case "${kv[0]}" in + s|serverName) + serverName="${kv[1]}" + ;; + f|fingerprint) + fingerprint="${kv[1]}" + ;; + esac +done +options=(`echo $dest |tr '@' ' '`) id="${options[0]}" -temp="${options[1]}" -options=(`echo $temp |tr ':' ' '`) +options=(`echo ${options[1]} |tr ':' ' '`) host="${options[0]}" port="${options[1]}" path="${options[2]}" +passwd="${id}" -temp=$id -options=(`echo $temp |tr ':' ' '`) -passwd="${options[0]}" -method="${options[1]}" +if [ -z "${serverName}" ]; then serverName=${host}; fi +if [ -z "${fingerprint}" ]; then fingerprint="safari"; fi if [ -z "${passwd}" ]; then - >&2 echo "Error: passwd undefined." + >&2 echo "Error: password undefined." usage exit 1 fi @@ -46,8 +57,8 @@ if ! [ "${port}" -eq "${port}" ] 2>/dev/null; then >&2 echo "Port number must be Jservers=`echo '{}' | jq --arg host "${host}" --arg port "${port}" --arg passwd "${passwd}" \ '. += {"address":$host, "port":($port | tonumber), "password":$passwd}' ` -JstreamSettings=`echo '{}' | jq --arg host "${host}" --arg path "${path}" \ -'. += {"network":"ws", "security":"tls", "tlsSettings":{"serverName":$host}, "wsSettings":{"path":$path}}' ` +JstreamSettings=`echo '{}' | jq --arg serverName "${serverName}" --arg fingerprint "${fingerprint}" --arg path "${path}" \ +'. += {"network":"ws", "security":"tls", "tlsSettings":{"serverName":$serverName, "fingerprint":$fingerprint}, "wsSettings":{"path":$path}}' ` Jproxy=`echo '{}' | jq --arg host "${host}" --argjson jservers "${Jservers}" --argjson jstreamSettings "${JstreamSettings}" \ '. += { "tag": "proxy", "protocol":"trojan", "settings":{"servers":[$jservers]}, "streamSettings":$jstreamSettings }' ` diff --git a/run.sh b/run.sh index 069baeb..6d6ffe5 100755 --- a/run.sh +++ b/run.sh @@ -6,14 +6,14 @@ XCONF=/tmp/proxy-xray.json usage() { echo "proxy-xray " - echo " --ltx id@host:port" - echo " --ltt id@host:port" - echo " --lttw id@host:port:/webpath" - echo " --lttg id@host:port:/svcpath" - echo " --mtt id@host:port" - echo " --mttw id@host:port:/webpath" - echo " --ttt password@host:port" - echo " --tttw password@host:port:/webpath" + echo " --ltx id@host:port[,s=sniname.org]" + echo " --ltt id@host:port[,s=sniname.org]" + echo " --lttw id@host:port:/webpath[,s=sniname.org]" + echo " --lttg id@host:port:/svcpath[,s=sniname.org]" + echo " --mtt id@host:port[,s=sniname.org]" + echo " --mttw id@host:port:/webpath[,s=sniname.org]" + echo " --ttt password@host:port[,s=sniname.org]" + echo " --tttw password@host:port:/webpath[,s=sniname.org]" # echo " --ssa password:method@host:port" # echo " --sst password:method@host:port" echo " -d|--debug [Optional] Start in debug mode with verbose output"