Skip to main content

Logchecker for logs generated by XLD

Project description

XLD Logchecker

Travis-CI Status PyPI

This is a fork of https://github.com/puddly/xld_logsigner, to be used within our downstream applications, removing unnecessary functionality that we do not need.

Based heavily on barrybingo/xld_sign. This is a complete disassembly of the XLD log signing algorithm, re-implemented in Python 3.5+.

Usage

usage: xld.py [-h] (--verify | --sign) FILE

Verifies and resigns XLD logs

positional arguments:
  FILE        path to the log file

optional arguments:
  -h, --help  show this help message and exit
  --verify    verify a log
  --sign      sign or fix an existing log

Overview

The final code isn't pretty, but it is simple enough to describe the algorithm.

  1. The log is encoded as UTF-8 and hashed with a SHA-256 variant that uses a different IV.
  2. The digest is converted to hex and the string \nVersion=0001 is appended onto the end.
  3. The versioned hex-digest is then passed through an unidentified scrambling function that operates on pairs of bytes (open an issue if you recognize it).
  4. The resulting bytestring is then encoded using a 65-character lookup table with a strange mapping.

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

xld_logchecker-0.8.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

xld_logchecker-0.8.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file xld_logchecker-0.8.0.tar.gz.

File metadata

  • Download URL: xld_logchecker-0.8.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xld_logchecker-0.8.0.tar.gz
Algorithm Hash digest
SHA256 be82103a8d348400fe3394f1e0e10991561def5baa7170bc4a901ac74c5a6688
MD5 5884faa5156622ed6c168eb16826b4d0
BLAKE2b-256 9a287f22d1e1173062f0d1c018718a82fc70b59098dd341114ae3cddb535f042

See more details on using hashes here.

Provenance

The following attestation bundles were made for xld_logchecker-0.8.0.tar.gz:

Publisher: publish.yml on OPSnet/xld_logchecker.py

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

File details

Details for the file xld_logchecker-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: xld_logchecker-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xld_logchecker-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0cc7e86f8733df33ccb90220ce0461fc05545291e1ee18198c128e0c2d5f86f3
MD5 5c8836f66f0c3216fedbcd9e673ee8d7
BLAKE2b-256 08c597377ea0f9e25297347c4b22e5b756653140258cbfa996e582ed7f6ef6e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for xld_logchecker-0.8.0-py3-none-any.whl:

Publisher: publish.yml on OPSnet/xld_logchecker.py

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