Gilks / hostscan-bypass

Generate OpenConnect CSD files to bypass Cisco AnyConnect hostscan requirements
247 stars 46 forks source link

tls: handshake failure issue #20

Closed cnekmp closed 6 months ago

cnekmp commented 6 months ago

Hello,

I'm running this script on Archlinux. When my windows machine tries to connect to this host I get following error. Any clues?

[unknown ~/go]$ sudo go run hostscan-bypass.go -l 192.168.1.100 -p 443 -r myvpnhost:443 -s[] Listening for AnyConnect client connection.. [] Accepted from: 192.168.122.29:50235 remote error: tls: handshake failure [] Accepted from: 192.168.122.29:50236 remote error: tls: handshake failure [] Accepted from: 192.168.122.29:50237 remote error: tls: handshake failure

cnekmp commented 6 months ago

Solution was to change line 138 to:

conf = tls.Config{InsecureSkipVerify: true, MinVersion: tls.VersionTLS12, Certificates: []tls.Certificate{cert}}