Gilks / hostscan-bypass

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

Unable to connect into my server using AnyConnect #16

Closed xephora closed 3 years ago

xephora commented 3 years ago

After using hostscan-bypass.go I am unable to connect using Cisco AnyConnect due to an unknown port error.

go run hostscan-bypass.go -l -p 443 -r https:///CACHE/sdesktop/install/start.htm -s

[] Listening for AnyConnect client connection.. [] Accepted from: : dial tcp: address tcp///AttackingIP/CACHE/sdesktop/install/start.htm: unknown port

Gilks commented 3 years ago

That remote host does not look right to me. Did you try following the quick start guide?

On Sat, Oct 24, 2020, 8:42 PM Shawn notifications@github.com wrote:

After using hostscan-bypass.go I am unable to connect using Cisco AnyConnect due to an unknown port error.

go run hostscan-bypass.go -l -p 443 -r https:///CACHE/sdesktop/install/start.htm -s

[ ] Listening for AnyConnect client connection.. [] Accepted from: : dial tcp: address tcp///AttackingIP/CACHE/sdesktop/install/start.htm: unknown port

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Gilks/hostscan-bypass/issues/16, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUP4TIATMQ7HV67ZWFCR4TSMNX7FANCNFSM4S56M7UA .

xephora commented 3 years ago

Sorry github removed my place holders. So based on the quick start guide i saw the following, if i try using the default command, it would accept the connection and timeout.

I tried the below as root and all timed out.

go run hostscan-bypass.go -l MYIP -p 443 -r TargetVPNIP:443 -s

go run hostscan-bypass.go -l MYIP -p 443 -r TargetIP:443 -s

go run hostscan-bypass.go -l MYIP -p 443 -r TargetIP/CACHE/sdesktop/install/start.htm:443 -s

go run hostscan-bypass.go -l MYIP -p 443 -r TargetIP:443/CACHE/sdesktop/install/start.htm -s

go run hostscan-bypass.go -l MYIP -p 443 -r TargetIP/CACHE/sdesktop/install/start.htm:443 -s

Gilks commented 3 years ago

The timeout comes from golang being unable to make a proper connection to your target url. The best way to verify is by browsing there directly.

On Sat, Oct 24, 2020, 9:29 PM Shawn notifications@github.com wrote:

Sorry github removed my place holders. So based on the quick start guide i saw the following, if i try using the default command, it would accept the connection and timeout.

I tried the below as root and all timed out.

go run hostscan-bypass.go -l -p 443 -r :443 -s

go run hostscan-bypass.go -l MYIP -p 443 -r TargetIP:443 -s

go run hostscan-bypass.go -l MYIP -p 443 -r TargetIP/CACHE/sdesktop/install/start.htm:443 -s

go run hostscan-bypass.go -l MYIP -p 443 -r TargetIP:443/CACHE/sdesktop/install/start.htm -s

go run hostscan-bypass.go -l MYIP -p 443 -r TargetIP/CACHE/sdesktop/install/start.htm:443 -s

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Gilks/hostscan-bypass/issues/16#issuecomment-716079027, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUP4TO5O3SKMQ3A6XVTLS3SMN5QLANCNFSM4S56M7UA .

Gilks commented 3 years ago

No response. Closing.