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.7.0.tar.gz (5.4 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.7.0-py2.py3-none-any.whl (6.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: xld_logchecker-0.7.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for xld_logchecker-0.7.0.tar.gz
Algorithm Hash digest
SHA256 96efa902f2ccf808eccb2893f29bc058d98c92bae09c0828e0e61dff80eabc98
MD5 43fcb203f97feec1af1835ab905041d6
BLAKE2b-256 2b17010fd00bdc703140123c5d69c39cb4be1fbd6890027513e42370450d5e79

See more details on using hashes here.

File details

Details for the file xld_logchecker-0.7.0-py2.py3-none-any.whl.

File metadata

  • Download URL: xld_logchecker-0.7.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for xld_logchecker-0.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 049af21adea11993a1f5b1e8b6f9f187a2c1398683af4849d6e93a164d605b6c
MD5 a70e75c072d8f72bdd989e4f31fa3025
BLAKE2b-256 03dd6b66ba360215d9f1ecba71b8f5cb39a29bbe24860431845327440f96deae

See more details on using hashes here.

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