Skip to content
Gui Diaz-Berrio's Corner
Go back

Reverse Engineering basics

Suggest changes

Reverse Engineering basics

Table of contents

Open Table of contents

Tools

Steps

If you want to try this

  1. Install Claude Code
yay -S claude-code
  1. Find the binary - which claude

  2. Look for the Bun trailer:

strings -t x $(which claude) | grep "Bun\!"
  1. Extract the JS bundle from .rodata

How can we extract the JS bundle from .rodata?

According to the X Article, the trailer points to a table of contents - 15 embedded files. The one that matters is the JavaScript bundle at offset 0x62DA02B.

dd if=/opt/claude-code/bin/claude bs=1 skip=103700011 count=10357830 of=claude-code.js

9.88 MB of minified JavaScript. 7,493 lines. That’s the whole application.

  1. Start with string searches

Prior work

Others have approached this differently:

References


Suggest changes
Share this post on:

Previous Post
What are Claude Skills
Next Post
Fractional Attribution