

def process(self, obj, meta):
    banner = obj['banner']
    if self.printer_1_re.search(banner):
        meta.global_metadata.device_type = Type.LASER_PRINTER
        meta.global_metadata.manufacturer = Manufacturer.DELL
        product = self.product_1_re.search(banner).group(1)
        meta.global_metadata.product = product
        return meta
    if self.printer_2_re.search(banner):
        meta.global_metadata.device_type = Type.LASER_PRINTER
        meta.global_metadata.manufacturer = Manufacturer.DELL
        product = self.product_2_re.search(banner).group(1)
        meta.global_metadata.product = product
        return meta

dataset/ETHPy150Open zmap/ztag/ztag/annotations/FtpDell.py FtpDell.process/original