Skip to content

Instantly share code, notes, and snippets.

View lorishui's full-sized avatar

loriwave lorishui

View GitHub Profile
@lorishui
lorishui / javascript-deobfuscation-red-flags.md
Created July 21, 2026 02:19
JavaScript deobfuscation red flags

JavaScript Deobfuscation Red Flags

Reference tool: JavaScript deobfuscation red flags

When reviewing obfuscated JavaScript, prioritize these red flags after decoding and beautifying the snippet:

  • Dynamic execution: eval, new Function, timer strings.
  • Hidden strings: hex, Unicode, octal, and base64-like values.
  • Dynamic property access: window[decodedName], document[method].
  • Suspicious network calls: unknown URLs, webhook endpoints, tracking pixels.
@lorishui
lorishui / readable-javascript-output-checklist.md
Created July 21, 2026 02:18
readable JavaScript output checklist

Readable JavaScript Output Checklist

Tool: readable JavaScript output

A deobfuscated output is easier to review when it meets these conditions:

  • Encoded strings are readable.
  • Hex numbers are converted.
  • Braces and indentation expose control flow.
  • Output can be copied or downloaded as .js.
@lorishui
lorishui / static-javascript-malware-review-notes.md
Created July 21, 2026 02:18
static JavaScript malware review notes

Static JavaScript Malware Review Notes

Reference: static JavaScript deobfuscation tool

Do not execute suspicious snippets just to understand them. A safer first pass is static text transformation:

  1. Decode escapes.
  2. Beautify structure.
  3. Rename obvious helper variables in your notes.
  4. Inspect strings, URLs, and dynamic execution points.
@lorishui
lorishui / beautify-minified-js-for-review.md
Created July 21, 2026 02:18
beautify minified JS for review

Beautify Minified JS for Review

Useful tool: beautify minified JS for review

When JavaScript is compressed into one line, first reformat it before judging behavior.

Review checklist:

  • Expand function bodies and conditionals.
  • Decode encoded strings.
@lorishui
lorishui / decode-hex-unicode-javascript.md
Created July 21, 2026 02:18
decode hex and Unicode JavaScript

Decode Hex and Unicode JavaScript

Tool reference: decode hex and Unicode JavaScript

Obfuscated scripts often hide readable strings using escape sequences:

"\x48\x69"          // Hi
"\u0064\u0061ta"   // data
0x8 // 8
@lorishui
lorishui / obfuscated-javascript-test-cases.md
Created July 21, 2026 02:18
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;}
@lorishui
lorishui / javascript-deobfuscator-cheatsheet.md
Created July 21, 2026 02:18
JavaScript deobfuscator cheatsheet

JavaScript Deobfuscator Cheatsheet

Reference tool: JavaScript deobfuscator

Use this quick checklist when reviewing obfuscated JavaScript snippets.

Common patterns to decode

  • \x48\x69 style hex escapes
  • \u0061\u006c\u0065\u0072\u0074 Unicode escapes
@lorishui
lorishui / binary-translator-test-cases.md
Created July 15, 2026 16:49
Binary translator test cases
@lorishui
lorishui / jsontotable-binary-translator-cheatsheet.md
Created July 15, 2026 16:47
Binary translator examples and UTF-8 notes

Binary Translator Examples and UTF-8 Notes

A short reference for converting binary to text and text to binary.

Useful tool: JsonToTable Binary Translator

Common examples

Text Binary
@lorishui
lorishui / Readme.md
Last active March 6, 2026 08:56
Sample NBA player stats in JSON and CSV formats.