Skip to main content

CLI tool to manipulate UUIDs

Project description

UUIDTool - A tool to manipulate UUIDs

UUIDTool is a command-line utility designed to work with Universally Unique Identifiers (UUIDs). It allows users to generate, analyze, and manipulate UUIDs in several ways

Disclaimer

This tool is intended to be used in CTF challenges, penetration testing, and other ethical hacking activities. Do not use it for illegal or malicious purposes.

Installation

pip install uuidtool

If you use an externally managed environment:

sudo apt install pipx
pipx install uuidtool

Or

git clone https://github.com/crazycat256/uuidtool.git
cd uuidtool
pipx install .

Usage

CLI Usage

$ uuidtool info e63034d3-acc1-11ef-8aaf-e63af2894db7                                    
UUID: e63034d3-acc1-11ef-8aaf-e63af2894db7
Version: 1 (Time-based)
Variant: 8 (RFC 9562)
Timestamp: 2024-11-27 13:17:06 GMT (1732713426235925100)
Clock Sequence: 2735
Node: e6:3a:f2:89:4d:b7

$ uuidtool edit e63034d3-acc1-11ef-8aaf-e63af2894db7 -t 1732713730 -n 11:22:33:44:55:66
9b3eed00-acc2-11ef-8aaf-112233445566

$ uuidtool new -v 1 -t 1732718667 -c 0
19ed5780-acce-11ef-8000-e63af2894db7

$ uuidtool range e3aa7ac2-acd6-11ef-b995-e63af2894db7 5
e3aa7ac2-acd6-11ef-b995-e63af2894db7
e3aa7ac1-acd6-11ef-b995-e63af2894db7
e3aa7ac3-acd6-11ef-b995-e63af2894db7
e3aa7ac0-acd6-11ef-b995-e63af2894db7
e3aa7ac4-acd6-11ef-b995-e63af2894db7

$ uuidtool sandwich 4977ce85-acd9-11ef-801a-e63af2894db7 4977ce8b-acd9-11ef-801a-e63af2894db7
4977ce88-acd9-11ef-801a-e63af2894db7
4977ce87-acd9-11ef-801a-e63af2894db7
4977ce89-acd9-11ef-801a-e63af2894db7
4977ce86-acd9-11ef-801a-e63af2894db7
4977ce8a-acd9-11ef-801a-e63af2894db7

More examples can be found in USAGE.md.

Usage as a Library

import uuidtool, time

# Generate a UUID
uuidtool.uuid_v1(time.time_ns())

# Edit a UUID
uuidtool.edit_uuid("a0b0314a-13a0-11f0-97aa-644ed7120002", (time.time_ns() - 3600) * 1e9)

# Generate a range of UUIDs
uuidtool.uuid_range("a0b0314a-13a0-11f0-97aa-644ed7120002", 10, "asc")

# Generate a sandwich of UUIDs
uuidtool.sandwich("2e9d7ae1-13a6-11f0-86ee-644ed7120002", "2e9d7aeb-13a6-11f0-a54c-644ed7120002", "asc")

More examples can be found in USAGE.md.

License

This project is licensed under the MIT License - see the LICENSE file for details

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

uuidtool-1.2.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

uuidtool-1.2-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file uuidtool-1.2.tar.gz.

File metadata

  • Download URL: uuidtool-1.2.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for uuidtool-1.2.tar.gz
Algorithm Hash digest
SHA256 74d68e23a3efe0a14821742a20ad13bc7705ddd789379df6d5b7e3024a75d4bc
MD5 dd224739eef8353f8ec38a03a0dc0996
BLAKE2b-256 38422bf8bcf489df5c2f8bb5cff2eb94a4083b891c6e2681d9c16daffda61603

See more details on using hashes here.

File details

Details for the file uuidtool-1.2-py3-none-any.whl.

File metadata

  • Download URL: uuidtool-1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for uuidtool-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 302afa137fdf090d00b05690113c49f2938f259f93c9b58fb483fd00ac1c454a
MD5 a65dee89bba83967b894144029d7a001
BLAKE2b-256 7eaa3660d39b7045c6f75efb1dc501a2099f207437cc0bf06966fdd575cab8da

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