Skip to content
OSINTtools.io

XORSearch & XORStrings

Verified today

Didier Stevens' command-line tools that search files for strings hidden with XOR, ROL, ROT, SHIFT or ADD encoding.

Windows, Linux and macOS CLI · Free · Data analysis and case notes · blog.didierstevens.com

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

Didier Stevens' command-line tools that search files for strings hidden with XOR, ROL, ROT, SHIFT or ADD encoding. It takes file. Read the cons before you build a workflow on it.

What it does

XORSearch looks for a given string in a binary file while trying every key for several simple encodings: XOR (keys 0 to 255), ROL and ROR, ROT, SHIFT and ADD. Malware authors use these to hide strings such as URLs, so searching for "http" across all keys often reveals them. Options add 32-bit XOR keys taken from the file itself, wildcard rules, Unicode and hex search, and detection of embedded PE files.

XORStrings combines the same encodings with the strings command: for every encoding and key it reports how many strings it finds, so the likeliest key stands out. Both are small C programs by Didier Stevens, released into the public domain and compiled for Windows, Linux and macOS.

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
  • +Fast way to find hidden URLs and strings in malware
  • +Free, public-domain source
  • +Runs on Windows, Linux and macOS
Cons
  • −Only simple single-byte style encodings, not real encryption
  • −Command line only
  • −Downloads have moved off the author's site to GitHub

When to use it

  1. 01Use it when you want to find URLs or file names hidden in a suspicious binary.
  2. 02Use it when you need to know which XOR or ROL key a file was encoded with.
Key featuresBrute force over XOR, ROL/ROR, ROT, SHIFT and ADD keys32-bit XOR keys from embedded dataWildcard and rule-based searchEmbedded PE file detectionXORStrings summary per key with CSV outputSave decoded files

Next steps from this result

Suggested from the inputs XORSearch & XORStrings 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

  1. 01Open XORSearch & XORStrings.
  2. 02Paste the file and run the lookup.
  3. 03Record the result with the date and the exact query; results change over time.

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
Windows, Linux and macOS CLI
Listed
Nov 26

Reviews

No reviews yet

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

Used XORSearch & XORStrings? Sign in to say what you used it for and how it went.

Sign in to review

Alternatives to XORSearch & XORStrings

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

XORSearch & XORStringsFree · verified today
Visit blog.didierstevens.com (opens in new tab)