summaryrefslogtreecommitdiffstats
path: root/usr/local/share/protocols/bittorrent.pat
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-11-10 14:20:14 +0000
committerErmal Luçi <eri@pfsense.org>2009-11-10 14:20:14 +0000
commit66f2dd0e4cf28af5b4511a1bc06a93feaf712d9a (patch)
tree5fec310a541002c1d17552441c9840e9bc12d49d /usr/local/share/protocols/bittorrent.pat
parentc97ab82a7e6e2dc7f73cc594fbd50957c8bc1232 (diff)
downloadpfsense-66f2dd0e4cf28af5b4511a1bc06a93feaf712d9a.zip
pfsense-66f2dd0e4cf28af5b4511a1bc06a93feaf712d9a.tar.gz
Second pass at updateing protocol definitions.
Diffstat (limited to 'usr/local/share/protocols/bittorrent.pat')
-rw-r--r--usr/local/share/protocols/bittorrent.pat10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr/local/share/protocols/bittorrent.pat b/usr/local/share/protocols/bittorrent.pat
index e5aa5bc..54063ce 100644
--- a/usr/local/share/protocols/bittorrent.pat
+++ b/usr/local/share/protocols/bittorrent.pat
@@ -2,11 +2,11 @@
# Pattern attributes: good slow notsofast undermatch
# Protocol groups: p2p open_source
# Wiki: http://www.protocolinfo.org/wiki/Bittorrent
+# Copyright (C) 2008 Matthew Strait, Ethan Sommer; See ../LICENSE
#
# This pattern has been tested and is believed to work well.
# It will, however, not work on bittorrent streams that are encrypted, since
-# it's impossible to match encrypted data (unless the encryption is extremely
-# weak, like rot13 or something...).
+# it's impossible to match (well) encrypted data.
bittorrent
@@ -16,12 +16,10 @@ bittorrent
# Next bit matches something Azureus does
# Ditto on the next bit. Could also match on "user-agent: azureus", but that's in the next
# packet and perhaps this will match multiple clients.
-
-# Recently the ^ was removed from before \x13. I think this was an accident,
-# so I have restored it.
+# bitcomet-specific strings contributed by liangjun.
# This is not a valid GNU basic regular expression (but that's ok).
-^(\x13bittorrent protocol|azver\x01$|get /scrape\?info_hash=)|d1:ad2:id20:|\x08'7P\)[RP]
+^(\x13bittorrent protocol|azver\x01$|get /scrape\?info_hash=get /announce\?info_hash=|get /client/bitcomet/|GET /data\?fid=)|d1:ad2:id20:|\x08'7P\)[RP]
# This pattern is "fast", but won't catch as much
#^(\x13bittorrent protocol|azver\x01$|get /scrape\?info_hash=)
OpenPOWER on IntegriCloud