mirror of https://github.com/MISP/PyMISP
chg: Improve documentation of MISPAttribute.malware_binary
parent
c8cb3bb589
commit
babb04cbc2
|
@ -309,9 +309,9 @@ class MISPAttribute(AbstractMISP):
|
|||
|
||||
@property
|
||||
def malware_binary(self) -> Optional[BytesIO]:
|
||||
"""Returns a BytesIO of the malware (if the attribute has one, obvs).
|
||||
Note: The first call may be slow as it will decrypt the sample and this
|
||||
operation can be very slow, especially if the malware sample is big (~1s/MB).
|
||||
"""Returns a BytesIO of the malware, if the attribute has one.
|
||||
Decrypts, unpacks and caches the binary on the first invocation,
|
||||
which may require some time for large attachments (~1s/MB).
|
||||
"""
|
||||
if self.type != 'malware-sample':
|
||||
# Not a malware sample
|
||||
|
|
Loading…
Reference in New Issue