SOCKS DPD fixes.

- Restricted the SOCKS 5 DPD signatures further.

- Added protocol violations.
This commit is contained in:
Seth Hall 2012-06-20 15:12:52 -04:00
parent 886cc7368f
commit f59736cb17
4 changed files with 37 additions and 4 deletions

View file

@ -194,14 +194,16 @@ signature dpd_socks4_reverse_server {
signature dpd_socks5_client {
ip-proto == tcp
payload /^\x05/
# Watch for a few authentication methods to reduce false positives.
payload /^\x05.[\x00\x01\x02]/
tcp-state originator
}
signature dpd_socks5_server {
ip-proto == tcp
requires-reverse-signature dpd_socks5_client
payload /^\x05/
# Watch for a single authentication method to be chosen by the server.
payload /^\x05\x01[\x00\x01\x02]/
tcp-state responder
enable "socks"
}