<s> from ztag . annotation import * <EOL> class CommonSMTP ( Annotation ) : <EOL> protocol = protocols . SMTP <EOL> subprotocol = protocols . SMTP . STARTTLS <EOL> port = None <EOL> def process ( self , obj , meta ) : <EOL> s_banner = obj [ "<STR_LIT>" ] [ <NUM_LIT:4> : ] <EOL> if "<STR_LIT>" in s_banner : <EOL> meta . local_metadata . product = "<STR_LIT>" <EOL> return meta <EOL> elif "<STR_LIT>" in s_banner : <EOL> meta . local_metadata . product = "<STR_LIT>" <EOL> return meta <EOL> elif "<STR_LIT>" in s_banner : <EOL> meta . local_metadata . product = "<STR_LIT>" <EOL> return meta <EOL> elif "<STR_LIT>" in s_banner : <EOL> meta . local_metadata . manufacturer = "<STR_LIT>" <EOL> meta . local_metadata . product = "<STR_LIT>" <EOL> return meta </s>
