<s> import re <EOL> from ztag . annotation import Annotation <EOL> from ztag . annotation import OperatingSystem <EOL> from ztag . annotation import Type <EOL> from ztag . annotation import Manufacturer <EOL> from ztag import protocols <EOL> import ztag . test <EOL> class FtpGenericUpdate ( Annotation ) : <EOL> protocol = protocols . FTP <EOL> subprotocol = protocols . FTP . BANNER <EOL> port = None <EOL> tests = { <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT>" : [ "<STR_LIT>" ] <EOL> } <EOL> } <EOL> def process ( self , obj , meta ) : <EOL> banner = obj [ "<STR_LIT>" ] <EOL> if banner . startswith ( "<STR_LIT>" ) : <EOL> meta . tags . add ( "<STR_LIT>" ) <EOL> return meta <EOL> """<STR_LIT>""" </s>
