e62a14dafc
Generate interlinked wiki from master inventory: 397 tool pages, 15 workflow pages, 27 recipe pages, 33 category pages, plus index. All pages use [[wiki-links]] for cross-navigation between tools, workflows, recipes, and categories (1782 links total). Install zk for interactive browsing with fzf search, tag filtering, and backlink discovery. Add 'fhelp wiki' command and Makefile target. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
690 B
Markdown
20 lines
690 B
Markdown
# Deobfuscate JavaScript with SpiderMonkey
|
|
> Execute obfuscated JS safely using SpiderMonkey with API simulation
|
|
|
|
**Tools:** [[tools/js-beautify|js-beautify]], [[tools/spidermonkey|spidermonkey]]
|
|
**FOR610 Lab:** 3.6, 3.7
|
|
|
|
## Commands
|
|
```bash
|
|
# Beautify compressed JavaScript
|
|
js-beautify <malicious.js> > readable.js
|
|
# Execute with objects.js to simulate browser/WScript APIs
|
|
js -f /usr/share/remnux/objects.js -f <malicious.js> > decoded.js
|
|
# If script expects location.href, edit objects.js first:
|
|
cp /usr/share/remnux/objects.js .
|
|
# Edit objects.js to set: location = { href: 'http://expected-url' }
|
|
js -f objects.js -f <malicious.js> > decoded.js
|
|
```
|
|
|
|
#recipe #js-beautify #spidermonkey
|