pyOneNote icon indicating copy to clipboard operation
pyOneNote copied to clipboard

A python library to parse OneNote (.one) files

Results 11 pyOneNote issues
Sort by recently updated
recently updated
newest added

1.in FileNode.py:line581 class ObjectSpaceObjectStreamOfIDs: def __init__(self, file, document): self.header = ObjectSpaceObjectStreamHeader(file) self.body = [] self.head = 0 for i in range(self.header.Count): self.body.append(CompactID(file, document)) def read(self): res = None if self.head...

I installed `pyonenote` via `pip install pyonenote` and tried running `pyonenote -f example-docs/QuickNotes.one` and got the following error: ``` Traceback (most recent call last): File ".../pyonenote", line 8, in sys.exit(main())...

bug

@DissectMalware I would like to know if you can make a version with a text file that extracts the TextExtendedAscii and RichTextUnicode from a OneNote file. I study your project...

… is None. Currently if the file_node_type is not handled data is uninitialized and can cause an AttributeError.

Hi, I stumbled upon three issues. They are independent, but I think they are too small, so making three separate PRs seems unnecessary to me. 1. JSON can not be...

- Removed collecting files content in memory - Read files content by chunks - Removed redundant conversions e.g. `struct.unpack('{}s'.format(self.cbLength), file.read(self.cbLength))` -> `file.read(self.cbLength)` - Added the cli argument `--optimize` to enable...

There are password-protected OneNote documents, for example [this one](https://bazaar.abuse.ch/sample/462bf8a2e19a3e2dd4e5635aa5089e7bdc291d5c5c4665549f64f67abf0b598a/): ``` 462bf8a2e19a3e2dd4e5635aa5089e7bdc291d5c5c4665549f64f67abf0b598a ``` The pyOneNote library can currently not handle those and crashes during the initialization of `FileNode` because the file...

Tested on `5ad84c75b4a8825a4ee49fcb2ab895f0a51c9877fc4e50595fa1917ae1daa748` (in VT), which contains this element.

Practically just adding an extra field if someone wants to know where that file is located in the binary.

Trying to execute this on a sample onenote file and it errors out. _self.uintMagic, self.FileNodeListID, self.nFragmentSequence = struct.unpack('