Skip to content
OSINTtools.io

xortool

Verified todayDormant

Python command-line tool that guesses the key length and key of multi-byte XOR-encrypted data.

Python CLI · Free · Data analysis and case notes · github.com

Takes
File
Pricing
Free
Footprint
Passive · no contact with target
Account
Not needed
API
No public API
Last verified
Nov 26, 2026
Summary

Python command-line tool that guesses the key length and key of multi-byte XOR-encrypted data. It takes file. Read the cons before you build a workflow on it.

What it does

xortool analyses data encrypted with a repeating XOR key. It estimates the most likely key lengths from repeated characters, then guesses the key on the assumption of a most frequent plaintext character, such as a space in text or a null byte in binaries. It can also use known plaintext, brute-force the most frequent character and filter outputs to a character set like printable, Base64 or Base32.

Analysts use it on XOR-obfuscated malware payloads, configuration blobs and capture-the-flag puzzles. Decrypted candidates are written to files for review, and a companion xortool-xor utility applies a key to data.

Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is no public API.

Pros
  • +Simple to install with pip
  • +Handles multi-byte keys
  • +Several attack modes for different kinds of plaintext
Cons
  • −Only for XOR; other encodings need other tools
  • −Guesses can be wrong on short or random-looking data
  • −Command line only

When to use it

  1. 01Use it when you suspect a file or payload is obfuscated with a repeating XOR key.
  2. 02Use it when you know part of the plaintext and want to recover the full key.
Key featuresKey length estimationKey guessing from the most frequent characterKnown-plaintext modeBrute force over printable charactersOutput filtering by character setHex-encoded input support

Next steps from this result

Suggested from the inputs xortool takes
  • Found a resultConfirm it with a second, independent source before you record it
  • Found a new identifierPivot on it only if your scope covers the new target
    Depends

Quick start

pip
pip3 install xortool

Technical details

Listing verified by an editor on Nov 26, 2026
API
No public API
Account
Not needed
Footprint
Passive · no contact with target
Pricing
Free
Platforms
Python CLI
Repository
hellman/xortool 1,490 stars
Language
Python
Last commit
May 2025 (dormant)
Listed
Nov 26

Reviews

No reviews yet

Written by signed-in members. Each review appears here after an editor has read it.

Used xortool? Sign in to say what you used it for and how it went.

Sign in to review

Alternatives to xortool

Listed tools that take the same inputs, closest match first.

xortoolFree · verified today
Visit github.com (opens in new tab)