From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Tool:Pkg (Node.js packager)" |
|---|
| claim | "A pkg base binary contains padded placeholder strings '// PAYLOAD_POSITION //', '// PAYLOAD_SIZE //', '// PRELUDE_POSITION //', '// PRELUDE_SIZE //' and '\0' + '// BAKERY ' repeated 20 times, which pkg overwrites in place with decimal numbers (space padded) and the bakery options; packaged apps use PKG_EXECPATH and the /snapshot/ path prefix." |
|---|
| scope | | level | "tool" |
|---|
| applies_to | "Tool:pkg (Node.js packager)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "search the executable for the placeholder text (template) or PKG_EXECPATH and /snapshot/ (finished binary)" |
|---|
| indicator | "// PAYLOAD_POSITION //" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "discoverPlaceholders and injectPlaceholder; bootstrap.js uses PKG_EXECPATH at lines 65-89" |
|---|
| repo | "https://github.com/vercel/pkg" |
|---|
| commit | "9066ceeb391d9c7ba6aba650109c2fa3f8e088eb" |
|---|
| path | "lib/producer.ts" |
|---|
| lines | "60-140" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Placeholders" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T08:08:14.695Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T02:38:48.169Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read lib/producer.ts at the cited commit: discoverPlaceholder for '// BAKERY ' x20 preceded by \0, '// PAYLOAD_POSITION //', PRELUDE_SIZE and the other placeholders. Applies to the base/template binary; finished binaries have them overwritten with numbers." |
|---|
|
|
|---|