Skip to content

Instantly share code, notes, and snippets.

@lorishui
Created July 21, 2026 02:18
Show Gist options
  • Select an option

  • Save lorishui/5cfa389865e0c5ccbae1b39fe260da8b to your computer and use it in GitHub Desktop.

Select an option

Save lorishui/5cfa389865e0c5ccbae1b39fe260da8b to your computer and use it in GitHub Desktop.
obfuscated JavaScript test cases

Obfuscated JavaScript Test Cases

Reference tool: obfuscated JavaScript test cases

var msg = "\x48\x65\x6c\x6c\x6f";
var word = "\u006a\u0073\u006f\u006e";
var n = 0x2a;
function _0x2a4b(a,b){return b["\x6c\x65\x6e\x67\x74\x68"]>=0x8;}

Expected review results:

  • Hex string escapes become readable text.
  • Unicode escapes become normal characters.
  • Hex numbers become decimal numbers.
  • Minified functions become indented JavaScript.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment