From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Tool:Py2exe" |
|---|
| claim | "py2exe executables hold a resource of type PYTHONSCRIPT, id 1: int32 tag 0x78563412, int32 optimize, int32 unbuffered, int32 data_bytes, NUL-terminated library.zip path (empty = the exe itself), then data_bytes of marshalled list of code objects and a NUL." |
|---|
| scope | | level | "tool" |
|---|
| applies_to | "Tool:py2exe" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "scriptinfo" |
|---|
| size_min | 17 |
|---|
| fields | | name | "tag" |
|---|
| offset | 0 |
|---|
| type | "int32 LE = 0x78563412" |
|---|
|
| name | "optimize" |
|---|
| offset | 4 |
|---|
| type | "int32" |
|---|
|
| name | "unbuffered" |
|---|
| offset | 8 |
|---|
| type | "int32" |
|---|
|
| name | "data_bytes" |
|---|
| offset | 12 |
|---|
| type | "int32" |
|---|
|
| name | "zippath" |
|---|
| offset | 16 |
|---|
| type | "char[] NUL-terminated" |
|---|
|
|
|---|
| endianness | "little" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct scriptinfo, FindResourceA(hmod, 1, "PYTHONSCRIPT") and tag check; runtime.py 360-373 builds it with struct.pack('IIII', 0x78563412, ...)" |
|---|
| repo | "https://github.com/py2exe/py2exe" |
|---|
| commit | "1be98bd71ac737f73aa146631ab902b2b1cc43f7" |
|---|
| path | "source/start.c" |
|---|
| lines | "35-42, 118-155" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "PYTHONSCRIPT resource" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T08:09:14.759Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T16:36:50.005Z" |
|---|
| summary | "Byte order missing: scriptinfo is a C struct of ints read in place by the Windows exe, so native little-endian; types split into proper fields." |
|---|
| changed | |
|---|
|
|
|---|