Project

General

Profile

Download (1021 Bytes) Statistics
| Branch: | Tag: | Revision:
1
# Napster - P2P filesharing
2
# Pattern attributes: good fast fast
3
# Protocol groups: p2p
4
# Wiki: http://www.protocolinfo.org/wiki/Napster
5
# Copyright (C) 2008 Matthew Strait, Ethan Sommer; See ../LICENSE
6
#
7
# All my tests show that this pattern is fast, but one user has reported that
8
# it is slow.  Your milage may vary.
9
# 
10
# Should work for any Napster offspring, like OpenNAP.
11
# (Yes, people still use this!)
12
# Matches both searches and downloads.
13
#
14
# http://opennap.sourceforge.net/napster.txt
15
#
16
# This pattern has been tested and is believed to work well.
17

    
18
napster
19
# (client-server: length, assumed to be less than 256, login or new user login, 
20
# username, password, port, client ID, link-type |
21
# client-client: 1, firewalled or not, username, filename) 
22
# Assumes that filenames are well-behaved ASCII strings.  I have found
23
# one case where this assumptions fails (filename had \x99 in it).
24
^(.[\x02\x06][!-~]+ [!-~]+ [0-9][0-9]?[0-9]?[0-9]?[0-9]? "[\x09-\x0d -~]+" ([0-9]|10)|1(send|get)[!-~]+ "[\x09-\x0d -~]+")
(74-74/146)