├── .coveragerc ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .gitleaks.toml ├── .pre-commit-config.yaml ├── .vscode ├── extensions.json └── settings.json ├── CHANGELOG.md ├── LICENSE ├── MANIFEST.ln ├── README.md ├── pyproject.toml ├── requirements-test.txt ├── src └── dpapi_ng │ ├── __init__.py │ ├── _asn1.py │ ├── _blob.py │ ├── _client.py │ ├── _crypto.py │ ├── _dns.py │ ├── _epm.py │ ├── _gkdi.py │ ├── _pkcs7.py │ ├── _rpc │ ├── __init__.py │ ├── _auth.py │ ├── _bind.py │ ├── _client.py │ ├── _pdu.py │ ├── _request.py │ └── _verification.py │ ├── _security_descriptor.py │ └── _version.py └── tests ├── __init__.py ├── _rpc ├── __init__.py ├── test_bind.py ├── test_pdu.py ├── test_request.py └── test_verification.py ├── conftest.py ├── data ├── dpapi_ng_blob ├── ecdh_key ├── ffc_dh_key ├── ffc_dh_parameters ├── group_key_envelope ├── kdf_sha1_dh.json ├── kdf_sha1_ecdh_p256.json ├── kdf_sha1_ecdh_p384.json ├── kdf_sha1_nonce.json ├── kdf_sha256_dh.json ├── kdf_sha256_ecdh_p256.json ├── kdf_sha256_ecdh_p384.json ├── kdf_sha256_nonce.json ├── kdf_sha384_dh.json ├── kdf_sha384_ecdh_p256.json ├── kdf_sha384_ecdh_p384.json ├── kdf_sha384_nonce.json ├── kdf_sha512_dh.json ├── kdf_sha512_ecdh_p256.json ├── kdf_sha512_ecdh_p384.json ├── kdf_sha512_nonce.json └── seed_key.json ├── integration ├── README.md ├── Vagrantfile ├── ansible.cfg ├── files │ ├── ConvertFrom-DpapiNgBlob.ps1 │ ├── ConvertTo-DpapiNgBlob.ps1 │ ├── New-KdsRootKey.ps1 │ ├── generate_seed_keys.py │ ├── sp800_56a_concat.ps1 │ └── sp800_56a_concat.py ├── inventory.yml ├── main.yml ├── requirements.yml ├── run_test.yml ├── templates │ ├── krb5.conf.j2 │ └── test_integration.py └── tests.yml ├── test_asn1.py ├── test_blob.py ├── test_client.py ├── test_crypto.py ├── test_epm.py ├── test_gkdi.py └── test_security_descriptor.py /.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/.coveragerc -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitleaks.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/.gitleaks.toml -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.ln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/MANIFEST.ln -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/README.md -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements-test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/requirements-test.txt -------------------------------------------------------------------------------- /src/dpapi_ng/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/__init__.py -------------------------------------------------------------------------------- /src/dpapi_ng/_asn1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_asn1.py -------------------------------------------------------------------------------- /src/dpapi_ng/_blob.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_blob.py -------------------------------------------------------------------------------- /src/dpapi_ng/_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_client.py -------------------------------------------------------------------------------- /src/dpapi_ng/_crypto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_crypto.py -------------------------------------------------------------------------------- /src/dpapi_ng/_dns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_dns.py -------------------------------------------------------------------------------- /src/dpapi_ng/_epm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_epm.py -------------------------------------------------------------------------------- /src/dpapi_ng/_gkdi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_gkdi.py -------------------------------------------------------------------------------- /src/dpapi_ng/_pkcs7.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_pkcs7.py -------------------------------------------------------------------------------- /src/dpapi_ng/_rpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_rpc/__init__.py -------------------------------------------------------------------------------- /src/dpapi_ng/_rpc/_auth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_rpc/_auth.py -------------------------------------------------------------------------------- /src/dpapi_ng/_rpc/_bind.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_rpc/_bind.py -------------------------------------------------------------------------------- /src/dpapi_ng/_rpc/_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_rpc/_client.py -------------------------------------------------------------------------------- /src/dpapi_ng/_rpc/_pdu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_rpc/_pdu.py -------------------------------------------------------------------------------- /src/dpapi_ng/_rpc/_request.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_rpc/_request.py -------------------------------------------------------------------------------- /src/dpapi_ng/_rpc/_verification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_rpc/_verification.py -------------------------------------------------------------------------------- /src/dpapi_ng/_security_descriptor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_security_descriptor.py -------------------------------------------------------------------------------- /src/dpapi_ng/_version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/src/dpapi_ng/_version.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/__init__.py -------------------------------------------------------------------------------- /tests/_rpc/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/_rpc/__init__.py -------------------------------------------------------------------------------- /tests/_rpc/test_bind.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/_rpc/test_bind.py -------------------------------------------------------------------------------- /tests/_rpc/test_pdu.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/_rpc/test_pdu.py -------------------------------------------------------------------------------- /tests/_rpc/test_request.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/_rpc/test_request.py -------------------------------------------------------------------------------- /tests/_rpc/test_verification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/_rpc/test_verification.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/data/dpapi_ng_blob: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/dpapi_ng_blob -------------------------------------------------------------------------------- /tests/data/ecdh_key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/ecdh_key -------------------------------------------------------------------------------- /tests/data/ffc_dh_key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/ffc_dh_key -------------------------------------------------------------------------------- /tests/data/ffc_dh_parameters: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/ffc_dh_parameters -------------------------------------------------------------------------------- /tests/data/group_key_envelope: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/group_key_envelope -------------------------------------------------------------------------------- /tests/data/kdf_sha1_dh.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha1_dh.json -------------------------------------------------------------------------------- /tests/data/kdf_sha1_ecdh_p256.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha1_ecdh_p256.json -------------------------------------------------------------------------------- /tests/data/kdf_sha1_ecdh_p384.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha1_ecdh_p384.json -------------------------------------------------------------------------------- /tests/data/kdf_sha1_nonce.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha1_nonce.json -------------------------------------------------------------------------------- /tests/data/kdf_sha256_dh.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha256_dh.json -------------------------------------------------------------------------------- /tests/data/kdf_sha256_ecdh_p256.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha256_ecdh_p256.json -------------------------------------------------------------------------------- /tests/data/kdf_sha256_ecdh_p384.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha256_ecdh_p384.json -------------------------------------------------------------------------------- /tests/data/kdf_sha256_nonce.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha256_nonce.json -------------------------------------------------------------------------------- /tests/data/kdf_sha384_dh.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha384_dh.json -------------------------------------------------------------------------------- /tests/data/kdf_sha384_ecdh_p256.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha384_ecdh_p256.json -------------------------------------------------------------------------------- /tests/data/kdf_sha384_ecdh_p384.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha384_ecdh_p384.json -------------------------------------------------------------------------------- /tests/data/kdf_sha384_nonce.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha384_nonce.json -------------------------------------------------------------------------------- /tests/data/kdf_sha512_dh.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha512_dh.json -------------------------------------------------------------------------------- /tests/data/kdf_sha512_ecdh_p256.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha512_ecdh_p256.json -------------------------------------------------------------------------------- /tests/data/kdf_sha512_ecdh_p384.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha512_ecdh_p384.json -------------------------------------------------------------------------------- /tests/data/kdf_sha512_nonce.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/kdf_sha512_nonce.json -------------------------------------------------------------------------------- /tests/data/seed_key.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/data/seed_key.json -------------------------------------------------------------------------------- /tests/integration/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/README.md -------------------------------------------------------------------------------- /tests/integration/Vagrantfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/Vagrantfile -------------------------------------------------------------------------------- /tests/integration/ansible.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/ansible.cfg -------------------------------------------------------------------------------- /tests/integration/files/ConvertFrom-DpapiNgBlob.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/files/ConvertFrom-DpapiNgBlob.ps1 -------------------------------------------------------------------------------- /tests/integration/files/ConvertTo-DpapiNgBlob.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/files/ConvertTo-DpapiNgBlob.ps1 -------------------------------------------------------------------------------- /tests/integration/files/New-KdsRootKey.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/files/New-KdsRootKey.ps1 -------------------------------------------------------------------------------- /tests/integration/files/generate_seed_keys.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/files/generate_seed_keys.py -------------------------------------------------------------------------------- /tests/integration/files/sp800_56a_concat.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/files/sp800_56a_concat.ps1 -------------------------------------------------------------------------------- /tests/integration/files/sp800_56a_concat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/files/sp800_56a_concat.py -------------------------------------------------------------------------------- /tests/integration/inventory.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/inventory.yml -------------------------------------------------------------------------------- /tests/integration/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/main.yml -------------------------------------------------------------------------------- /tests/integration/requirements.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/requirements.yml -------------------------------------------------------------------------------- /tests/integration/run_test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/run_test.yml -------------------------------------------------------------------------------- /tests/integration/templates/krb5.conf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/templates/krb5.conf.j2 -------------------------------------------------------------------------------- /tests/integration/templates/test_integration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/templates/test_integration.py -------------------------------------------------------------------------------- /tests/integration/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/integration/tests.yml -------------------------------------------------------------------------------- /tests/test_asn1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/test_asn1.py -------------------------------------------------------------------------------- /tests/test_blob.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/test_blob.py -------------------------------------------------------------------------------- /tests/test_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/test_client.py -------------------------------------------------------------------------------- /tests/test_crypto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/test_crypto.py -------------------------------------------------------------------------------- /tests/test_epm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/test_epm.py -------------------------------------------------------------------------------- /tests/test_gkdi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/test_gkdi.py -------------------------------------------------------------------------------- /tests/test_security_descriptor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jborean93/dpapi-ng/HEAD/tests/test_security_descriptor.py --------------------------------------------------------------------------------