Skip to main content

Simple extractor for OneNote files.

Project description

OneNote Extractor

This is a quick Python script for extracting files and metadata from .one files. At the time of the creation (2023-01-20) of this script there appear to be no Python scripts that can extract files or metadata from objects

Installation

To install OneNote Extractor, we recommend using something like this:

python -m pip install one-extract

Usage as a library

For examples of how to use OneNoteExtractor as a library, review the code in cli.py

CLI usage

Following successful installation of OneNoteExtractor a new CLI utility will be available, for usage see:

one-extract --help

Extract embedded files

one-extract /path/to/file.one --extract-files

Display metadata

one-extract /path/to/file.one --extract-meta

Extract embedded files from a password protected notebook with password 1234

one-extract /path/to/file.one --extract-files --password 1234

Disclaimer

This is only intended as an interim solution, until someone with a greater understanding of the .one file format comes up with something more robust.

It was created in response to an uptick in malicious .one file extensions being delivered by various malspam actors.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

one_extract-0.1.4.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

one_extract-0.1.4-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file one_extract-0.1.4.tar.gz.

File metadata

  • Download URL: one_extract-0.1.4.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for one_extract-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3b086d17a24cb3f611d50359f080bc1d22490d794eee8cf61adf16f5b4395dc4
MD5 42a726c191da2466eb0a6cdfb7a3ecd8
BLAKE2b-256 2987aaff4bcbfc2304df16a65fee72b1656a71bc33bd87c279a905c420ea058e

See more details on using hashes here.

Provenance

The following attestation bundles were made for one_extract-0.1.4.tar.gz:

Publisher: publish.yml on volexity/one-extract

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file one_extract-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: one_extract-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for one_extract-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c57c33329f4aa6ee047e9716b8e0de98af93fedc8d4359e6ac1251557c33213f
MD5 40a3bec0fa01ab6a3103b2800a2e10c1
BLAKE2b-256 a9a990a45548def0e95f42eb60b77a57df3642a4845ff8e1f9266b088d020865

See more details on using hashes here.

Provenance

The following attestation bundles were made for one_extract-0.1.4-py3-none-any.whl:

Publisher: publish.yml on volexity/one-extract

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page