1# Napster - P2P filesharing 2# Pattern attributes: good fast fast 3# Protocol groups: p2p 4# Wiki: http://www.protocolinfo.org/wiki/Napster 5# 6# All my tests show that this pattern is fast, but one user has reported that 7# it is slow. Your milage may vary. 8# 9# Should work for any Napster offspring, like OpenNAP. 10# (Yes, people still use this!) 11# Matches both searches and downloads. 12# 13# http://opennap.sourceforge.net/napster.txt 14# 15# This pattern has been tested and is believed to work well. 16 17napster 18# (client-server: length, assumed to be less than 256, login or new user login, 19# username, password, port, client ID, link-type | 20# client-client: 1, firewalled or not, username, filename) 21# Assumes that filenames are well-behaved ASCII strings. I have found 22# one case where this assumptions fails (filename had \x99 in it). 23^(.[\x02\x06][!-~]+ [!-~]+ [0-9][0-9]?[0-9]?[0-9]?[0-9]? "[\x09-\x0d -~]+" ([0-9]|10)|1(send|get)[!-~]+ "[\x09-\x0d -~]+") 24