Skip to content

Commit

Permalink
Add rudimentary sniffer for AnyLink SSL VPN
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed May 6, 2023
1 parent a2b6f9b commit d5e48f8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_sniffers.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
('viavpn.luther.edu', sn.aruba_via),
('vpn.wdc.softlayer.com', sn.array_networks),
('166.111.32.74:10443', sn.h3c), # no DNS? tsinghua.edu.cn
('tlslink.com:4433', sn.anylink),
]

unmatched_vpns = ['vpn.{}.edu'.format(d) for d in (
Expand Down
12 changes: 12 additions & 0 deletions what_vpn/sniffers.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,17 @@ def huawei(sess, server):
confidence = 0.4 + (0.2 if parse_qs(final_url.query).get('ReloginCause') else 0) + (0.4 if bizarre_cookie else 0))


def anylink(sess, server):
'''AnyLink'''
r = sess.get('https://{}'.format(server)
, headers={'user-agent': 'SSLVPN-Client/3.0'}
)
server = r.headers.get('server')
if server == 'AnyLinkOpenSource':
return Hit(name='AnyLink',
confidence = 0.8 + (0.2 if r.text.startswith('AnyLink') else 0))


sniffers = [
anyconnect,
juniper_pulse,
Expand All @@ -377,4 +388,5 @@ def huawei(sess, server):
aruba_via,
h3c,
huawei,
anylink,
]

0 comments on commit d5e48f8

Please sign in to comment.