class Field(MaltegoElement): name = fields_.String() type = fields_.String() nullable = fields_.Boolean(default=True) hidden = fields_.Boolean(default=False) readonly = fields_.Boolean(default=False) description = fields_.String(required=False) displayname = fields_.String(attrname='displayName', required=False) defaultvalue = fields_.String(tagname='DefaultValue', required=False) samplevalue = fields_.String(tagname='SampleValue', default='')
class TransformSettings(MaltegoElement): enabled = fields_.Boolean(default=True) runwithall = fields_.Boolean(default=True) favorite = fields_.Boolean(default=False) accepted = fields_.Boolean(default=False, attrname='disclaimerAccepted') showhelp = fields_.Boolean(default=True, attrname='showHelp') properties = fields_.List(TransformPropertySetting, tagname='Properties') def __iadd__(self, other): if isinstance(other, TransformPropertySetting): self.properties.append(other) return self
class TransformProperty(MaltegoElement): class meta: tagname = 'Property' defaultvalue = fields_.String(tagname='DefaultValue', required=False) samplevalue = fields_.String(tagname='SampleValue', default='') abstract = fields_.Boolean(default=False) description = fields_.String(default='') displayname = fields_.String(attrname='displayName', required=False) hidden = fields_.Boolean(default=False) name = fields_.String() nullable = fields_.Boolean(default=False) readonly = fields_.Boolean(default=False) popup = fields_.Boolean(default=False) type = fields_.String(default=PropertyType.String) visibility = fields_.String(default=VisibilityType.Public)
class TransformPropertySetting(MaltegoElement): class meta: tagname = 'Property' name = fields_.String() popup = fields_.Boolean(default=False) type = fields_.String(default=PropertyType.String) value = fields_.String(tagname=".")
class MaltegoEntity(MaltegoElement): id = fields_.String() displayname = fields_.String(attrname='displayName', required=False) plural = fields_.String(attrname='displayNamePlural', required=False) description = fields_.String(default='', required=False) category = fields_.String(required=False) smallicon = fields_.String(attrname='smallIconResource', required=False) largeicon = fields_.String(attrname='largeIconResource', required=False) allowedRoot = fields_.Boolean(default=True, required=False) conversion_order = fields_.Integer(attrname='conversionOrder', default=2147483647, required=False) visible = fields_.Boolean(default=True, required=False) largeicontag = fields_.String(tagname='Icon', required=False) smallicontag = fields_.String(tagname='SmallIcon', required=False) converter = fields_.Model(Converter, required=False) properties = fields_.Model(EntityProperties, required=False)
class MaltegoTransform(MaltegoElement): """This is the complete MaltegoTransform element definition that is present in Maltego profiles. It defines every aspect of a transform including it's input entity type, transform set, template, etc.""" name = fields_.String() displayname = fields_.String(attrname='displayName', default='') abstract = fields_.String(default=False) template = fields_.Boolean(default=False) visibility = fields_.String(default=VisibilityType.Public) description = fields_.String(default='') helpurl = fields_.String(attrname='helpURL', default='') author = fields_.String(default='') owner = fields_.String(default='') locrel = fields_.String(attrname='locationRelevance', default='global') version = fields_.String(default='1.0') requireinfo = fields_.Boolean(default=False, attrname='requireDisplayInfo') adapter = fields_.String(tagname='TransformAdapter', default=TransformAdapter.Local) properties = fields_.Model(Properties) input = fields_.List(InputConstraint, tagname='InputConstraints', required=False) output = fields_.List(OutputEntity, tagname='OutputEntities', required=False) help = fields_.CDATA(tagname='Help', default='') disclaimer = fields_.CDATA(tagname='Disclaimer', default='') sets = fields_.List(Set, tagname='defaultSets') stealthlevel = fields_.Integer(tagname='StealthLevel', default=0) authenticator = fields_.String(tagname='Authenticator', required=False) def __iadd__(self, other): if isinstance(other, Set): self.sets.append(other) elif isinstance(other, TransformProperty): self.properties.fields_.append(other) elif isinstance(other, InputConstraint) or isinstance( other, InputEntity): self.input.append(other) elif isinstance(other, OutputEntity): self.output.append(other) return self
class MaltegoServer(MaltegoElement): name = fields_.String(default='Local') enabled = fields_.Boolean(default=True) description = fields_.String( default='Local transforms hosted on this machine') url = fields_.String(default='http://localhost') lastsync = fields_.String(tagname='LastSync', default=time.strftime('%Y-%m-%d')) protocol = fields_.Model(Protocol) authentication = fields_.Model(Authentication) transforms = fields_.List(Transform, tagname='Transforms') def __iadd__(self, other): if isinstance(other, Transform): self.transforms.append(other) return self
class attr(MaltegoElement): name = fields_.String() stringvalue = fields_.String(required=False) boolvalue = fields_.Boolean(required=False)