Skip to content

Commit

Permalink
Reduce false positives of Sonicwall NX sniffer
Browse files Browse the repository at this point in the history
Simply returning a 4xx response to a weird request shouldn't be sufficient
to get a server classified as Sonicwall NX.
  • Loading branch information
dlenski committed Apr 16, 2024
1 parent bcda71a commit e35de85
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions what_vpn/sniffers.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,9 @@ def sonicwall_nx(sess, server):
serverh = r.headers.get('server')
if 'EXTRAWEB_STATE' in sess.cookies:
confidence = 0.8
else:
confidence = 0.3
if 'SonicWall' in r.text:
confidence += 0.2
elif 'SonicWall' in r.text:
confidence += 0.2

return Hit(name='SonixWall NX', confidence=confidence, version=serverh)


Expand Down

0 comments on commit e35de85

Please sign in to comment.