-
-
Save fox-srt/da81fc26517d8670a91a66e445cfc914 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# As the fields are aligned, we need to parse them individually | |
offset = fh.tell() | |
for _ in range(field_count): | |
# Align | |
offset = (offset + 3) & 0xFFFFFFFC | |
fh.seek(offset) | |
# Parse | |
field = c_defender.QuarantineEntryResourceField(fh) | |
self._add_field(field) | |
# Move pointer | |
offset += 4 + field.Size |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment