Skip to main content

Python bindings for https://github.com/AbdulRhmanAlfaifi/SDSParser-rs

Project description

SDSParser-py

This project is Python3 bindings for Rust version. SDSParser-py is NTFS Security Descriptor Stream ($Secure:$SDS) parser.

Download and Compilation

Download from PyPi

python3 -m pip install ntfs_sds_parser

Download wheels

You can also download wheels files from release section and install it using python3 -m pip install <WHEEL_FILE>

Compile from Source

  1. Install Rustlang
  2. Install Python (>=3.7)
  3. Install maturin: python3 -m pip install maturin
  4. Compile and Install this library:
git clone https://github.com/AbdulRhmanAlfaifi/SDSParser-py
cd SDSParser-py
python3 -m pip install .

Usage

This is a simple script to parse samples/sds_sample_record:

from ntfs_sds_parser import PySDSParser
import os

try:
    parser = PySDSParser(f"{os.path.dirname(__file__)}/../samples/sds_sample_record")

    for entry in parser:
        if not entry.is_error:
            print("="*50)
            print(f"Hash        : {entry.get_hash()}")
            print(f"ID          : {entry.get_security_id()}")
            print(f"Owner SID   : {entry.get_owner_sid()}")
            print(f"group SID   : {entry.get_group_sid()}")

except Exception as e:
    print(f"ERROR: {e}")

Refer to the examples directory in this repository for more examples.

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

ntfs_sds_parser-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distributions

ntfs_sds_parser-0.1.0-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view details)

Uploaded PyPy manylinux: glibc 2.5+ x86-64

ntfs_sds_parser-0.1.0-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view details)

Uploaded PyPy manylinux: glibc 2.5+ x86-64

ntfs_sds_parser-0.1.0-cp310-none-win_amd64.whl (153.7 kB view details)

Uploaded CPython 3.10 Windows x86-64

ntfs_sds_parser-0.1.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.5+ x86-64

ntfs_sds_parser-0.1.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (524.7 kB view details)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

ntfs_sds_parser-0.1.0-cp39-none-win_amd64.whl (153.9 kB view details)

Uploaded CPython 3.9 Windows x86-64

ntfs_sds_parser-0.1.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.5+ x86-64

ntfs_sds_parser-0.1.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (525.0 kB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

ntfs_sds_parser-0.1.0-cp38-none-win_amd64.whl (154.2 kB view details)

Uploaded CPython 3.8 Windows x86-64

ntfs_sds_parser-0.1.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.5+ x86-64

ntfs_sds_parser-0.1.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (524.1 kB view details)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

ntfs_sds_parser-0.1.0-cp37-none-win_amd64.whl (154.2 kB view details)

Uploaded CPython 3.7 Windows x86-64

ntfs_sds_parser-0.1.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.5+ x86-64

ntfs_sds_parser-0.1.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (524.1 kB view details)

Uploaded CPython 3.7m macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

File details

Details for the file ntfs_sds_parser-0.1.0.tar.gz.

File metadata

  • Download URL: ntfs_sds_parser-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.13.2

File hashes

Hashes for ntfs_sds_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5461242bb2ec9845a78ff46403cc44ee770e16df31b11e8ba21aed56da769d4c
MD5 ecf113cbfeec158a612304eb7757330a
BLAKE2b-256 6cd95eee6213365117cbccb93acf37a24c9694d01cd40ede0ab16df61d5191b4

See more details on using hashes here.

File details

Details for the file ntfs_sds_parser-0.1.0-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for ntfs_sds_parser-0.1.0-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7b657a9c75510686cd2c97a1d789ecde9b83f0e053e20caeb79ede7eed863c5d
MD5 8267888d52b6bc19d75c02d6384684ce
BLAKE2b-256 cd6f71077c0d4255c0d209530012391762f768962312a592147daa6e75b121e2

See more details on using hashes here.

File details

Details for the file ntfs_sds_parser-0.1.0-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for ntfs_sds_parser-0.1.0-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5f85f1e83302cdabaf65b4b0263cacd8982c82bd2e85a780e7d0d59e1a7aa641
MD5 a5ca078624f0277e1b156835f16ffab9
BLAKE2b-256 ae5c75f2b5b9494dfd4ee57a9e178b4d6a8bbb730ee40da53fb2a7e7250ded9b

See more details on using hashes here.

File details

Details for the file ntfs_sds_parser-0.1.0-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for ntfs_sds_parser-0.1.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 b7062a7306a600d7aa3eecd97060fd001dce6e16d1820ab77b922953dde8d5b7
MD5 c97a11208a184feee1778841d1cced5c
BLAKE2b-256 00420096d361bd3912e3981dcecba05a975e252b3c3b6b39562b12f24d086fc3

See more details on using hashes here.

File details

Details for the file ntfs_sds_parser-0.1.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for ntfs_sds_parser-0.1.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 30c96197ab6b94ce18f879b5f72a9519355ad80f45c24d0a93d3ee7173c4f529
MD5 5b5f3be3ff430041aaeb36f3b96a2951
BLAKE2b-256 e4361e8bd2bcf2ee343fc00b50c43c08294939f40e2380b6700dd8f90db81d9c

See more details on using hashes here.

File details

Details for the file ntfs_sds_parser-0.1.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for ntfs_sds_parser-0.1.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a19f9ea710fe3c9087d9347ec75b098dd0ea4b4c8d8bf5f48ff2cf517f72d44d
MD5 efe26f82a8e7f8b7de33206f69c3c43b
BLAKE2b-256 bd1170ec85f28bfc780513a6d09247d91f2c8a65d0f726a143be8eaed6e5baa8

See more details on using hashes here.

File details

Details for the file ntfs_sds_parser-0.1.0-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for ntfs_sds_parser-0.1.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 bb4040fa89fe37c5e5593e787f5d6c9cd4b70fd6adeedef451dd7bda40580659
MD5 77f54761aafaf4ab7515f50d54e063d2
BLAKE2b-256 fa3d17f3adad3f43dc257eceb391dc09774579d39474d2fbd3ed531b4f15c76a

See more details on using hashes here.

File details

Details for the file ntfs_sds_parser-0.1.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for ntfs_sds_parser-0.1.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 030e6f2cc9d185863ab0e6951d123e1afd4d46ad301bb53e81ff57d1ee4f4d50
MD5 69d1e97fcfc333e10597a42770861a06
BLAKE2b-256 24ccfcf64e6d546d1b46eb701336e2f212154eb7e0aea5cf43e2a6f8a5c51b73

See more details on using hashes here.

File details

Details for the file ntfs_sds_parser-0.1.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for ntfs_sds_parser-0.1.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b788b2dab3362d49327262ebe935229047dce758db0873a2c5f82c0570fc8e64
MD5 7cdbaa87a77a4177ac97d02df95d28ab
BLAKE2b-256 adb90730575abc82a5f22d7e4ad45ac83ee5e2133868fcb79a21be16db522009

See more details on using hashes here.

File details

Details for the file ntfs_sds_parser-0.1.0-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for ntfs_sds_parser-0.1.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 973c2169059f383014054e820129d8bf28e3cb7082425a251ceb28dfef88c6ea
MD5 1e9e48360a13a0d60e2a040e8830cb8e
BLAKE2b-256 dd898affab59dd00b75efe6be37de4da61a0a5ea09fdcb0da9fedc7f0a6d0df7

See more details on using hashes here.

File details

Details for the file ntfs_sds_parser-0.1.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for ntfs_sds_parser-0.1.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d9a130881f9c0f9303b89cb176851335fdf5110f451a42588a1bc7b5d03c2589
MD5 b964019c95580cd2e6ce63bcd8ab83e9
BLAKE2b-256 823e73c146923dd9f66a3c3629d284b4455b84c37250b8a360ad3fa0ca4df2d2

See more details on using hashes here.

File details

Details for the file ntfs_sds_parser-0.1.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for ntfs_sds_parser-0.1.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 984350332f44de3e92060f19ff107ce6a60e0dbb6382843e9c41f820808c4fdf
MD5 182d44379144df1eea7b231c9a8c03a8
BLAKE2b-256 7739e004a45dbdb7e8eaa7e13eef9c1afcd44e6a97a54a7d224d5f037e075714

See more details on using hashes here.

File details

Details for the file ntfs_sds_parser-0.1.0-cp37-none-win_amd64.whl.

File metadata

File hashes

Hashes for ntfs_sds_parser-0.1.0-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 1d3633d7d68eadbdf4b6f1fef9858874c36d1a4ad44c6e015899c33149caba15
MD5 9851ee3dd0b66103785d815fad0be54c
BLAKE2b-256 17d80b7913678f9b8b1150db8acb889f51fbbdaaff25edcba1807912b53616ba

See more details on using hashes here.

File details

Details for the file ntfs_sds_parser-0.1.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for ntfs_sds_parser-0.1.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 92bf7dd219d836318c305d911944f886ae95905a223c38b55a8ec81b9621641c
MD5 c885b44a8da0b27dc6898962f9565203
BLAKE2b-256 435efae6b226661518818b6e0ba6530a7bf976bd96798b4c864c50072a1b33d3

See more details on using hashes here.

File details

Details for the file ntfs_sds_parser-0.1.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for ntfs_sds_parser-0.1.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 feb1a1dfa3eb8d98791a8797d8d3c4f3ef160615db5723116f1bf8b482ab304f
MD5 9ccb9e9c08a577752e67fe1dcca290a9
BLAKE2b-256 a42753bf3bf2b2e999da78e9d1e76f2db69011af419b8e30c04b04ea325baed4

See more details on using hashes here.

Supported by

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