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
|
@property
|
||||||
def malware_binary(self) -> Optional[BytesIO]:
|
def malware_binary(self) -> Optional[BytesIO]:
|
||||||
"""Returns a BytesIO of the malware (if the attribute has one, obvs).
|
"""Returns a BytesIO of the malware, if the attribute has one.
|
||||||
Note: The first call may be slow as it will decrypt the sample and this
|
Decrypts, unpacks and caches the binary on the first invocation,
|
||||||
operation can be very slow, especially if the malware sample is big (~1s/MB).
|
which may require some time for large attachments (~1s/MB).
|
||||||
"""
|
"""
|
||||||
if self.type != 'malware-sample':
|
if self.type != 'malware-sample':
|
||||||
# Not a malware sample
|
# Not a malware sample
|
||||||
|
|
Loading…
Reference in New Issue