]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
bump emulated GlobalProtect version number
authorDaniel Lenski <dlenski@gmail.com>
Thu, 13 Aug 2020 17:00:58 +0000 (10:00 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Wed, 4 Nov 2020 18:19:20 +0000 (18:19 +0000)
Apparently some GlobalProtect servers complain about old versions of the client connecting to them, so we should periodically bump up the version number of the client that we emulate.

See https://gitlab.com/openconnect/openconnect/-/issues/176#note_395207613

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
gpst.c
trojans/hipreport.sh

diff --git a/gpst.c b/gpst.c
index 323c6e25d32406a7ce91805b787fff7fc4d334da..686bde2baf8fe23f0e9aa5ec6c609b978de852b9 100644 (file)
--- a/gpst.c
+++ b/gpst.c
@@ -623,7 +623,7 @@ static int gpst_get_config(struct openconnect_info *vpninfo)
        vpninfo->cstp_options = NULL;
 
        /* submit getconfig request */
-       buf_append(request_body, "client-type=1&protocol-version=p1&app-version=4.0.5-8");
+       buf_append(request_body, "client-type=1&protocol-version=p1&app-version=5.1.5-8");
        append_opt(request_body, "clientos", gpst_os_name(vpninfo));
        append_opt(request_body, "os-version", vpninfo->platname);
        append_opt(request_body, "hmac-algo", "sha1,md5,sha256");
index b38281e386ad4a3693c9e31685c64df124c54bdb..382ed223fa86cbda99e0bdc381fd034632d96cb2 100755 (executable)
@@ -47,7 +47,7 @@ if [ -z "$COOKIE" -o -z "$MD5" -o -z "$IP$IPV6" ]; then
     echo "Parameters --cookie, --md5, and --client-ip and/or --client-ipv6 are required" >&2
     exit 1;
 fi
-       
+
 # Extract username and domain and computer from cookie
 USER=$(echo "$COOKIE" | sed -rn 's/(.+&|^)user=([^&]+)(&.+|$)/\2/p')
 DOMAIN=$(echo "$COOKIE" | sed -rn 's/(.+&|^)domain=([^&]+)(&.+|$)/\2/p')
@@ -62,10 +62,12 @@ case $CLIENTOS in
                OS_VENDOR="Linux"
                NETWORK_INTERFACE_NAME="virbr0"
                NETWORK_INTERFACE_DESCRIPTION="virbr0"
+               # Not currently used for Linux
+               ENCDRIVE='/'
                ;;
 
        *)
-               CLIENT_VERSION="4.0.2-19"
+               CLIENT_VERSION="5.1.5-8"
                OS="Microsoft Windows 10 Pro , 64-bit"
                OS_VENDOR="Microsoft"
                NETWORK_INTERFACE_NAME="{DEADBEEF-DEAD-BEEF-DEAD-BEEFDEADBEEF}"