1
# SOCKS Version 5 - Firewall traversal protocol - RFC 1928
2
# Pattern quality: marginal fast
3
# Usually runs on port 1080
4
# Also useful: http://www.iana.org/assignments/socks-methods
6
# This pattern is untested! If it does works for you, does not work for
7
# you, or you believe it could be improved, please post to
8
# l7-filter-developers@lists.sf.net This list may be subscribed to at
9
# http://lists.sourceforge.net/lists/listinfo/l7-filter-developers
11
# method request, no private methods \x05[\x01-\x08]*
12
# method reply, assumes sucess \x05[\x01-\x08]?
13
# method dependent sub-negotiation .*
14
# request, ipv4 only \x05[\x01-\x03][\x01\x03].*
15
# reply \x05[\x01-\x08]?[\x01\x03].*
17
# username/password method
18
# u/p request, assuming reasonable usernames and passwords
19
# \x05[\x02-\x10][a-z][a-z0-9\-]*[\x05-\x20][!-~]*
24
# client initial token \x01\x01\x02.*
25
# server reply \x01\x01\x02.*
27
# any other method .* (all methods boil down to this until we have information
28
# about all the commonly used ones)
31
\x05[\x01-\x08]*\x05[\x01-\x08]?.*\x05[\x01-\x03][\x01\x03].*\x05[\x01-\x08]?[\x01\x03]