From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:SCP flux image" |
|---|
| claim | "An SCP file begins with the 3 ASCII bytes SCP. This is weak on its own (3 bytes, printable text; also the start of any text beginning with 'SCP'), so confirm with the 168 u32 track offsets at 0x10-0x2AF (zero or at least 0x2B0) and the TRK signature at the first track offset. Header: 9 single-byte fields at 3-11, u32 checksum at 12 (sum of all bytes after the 16-byte header); each track block starts with TRK plus the track number." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:SCP flux image" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "53 43 50" |
|---|
| offset | 0 |
|---|
| meaning | "SCP signature" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct <3s9BI header, <168I track table, TRK signature, flux decode" |
|---|
| repo | "https://github.com/keirf/greaseweazle" |
|---|
| commit | "26690f89967d519e0106ab9566019a026b920bb4" |
|---|
| path | "src/greaseweazle/image/scp.py" |
|---|
| lines | "149-166, 204-205, 270-278" |
|---|
|
| type | "source" |
|---|
| detail | "from_bytes unpacks '<3s9BI' from the first 16 bytes and checks sig == b'SCP'; checksum is sum(dat[16:]) & 0xffffffff; track table struct '<168I' at dat[16:0x2b0]; each track data header is checked for b'TRK' and the track number" |
|---|
| repo | "keirf/greaseweazle" |
|---|
| commit | "26690f89967d519e0106ab9566019a026b920bb4" |
|---|
| path | "src/greaseweazle/image/scp.py" |
|---|
| lines | "143-166, 202-206" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T22:25:09.020Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:54:47.415Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read scp.py from_bytes: unpack '<3s9BI' of dat[0:16], error.check(sig == b'SCP'), checksum sum(dat[16:]) only warns on mismatch, '<168I' track table at 16..0x2b0, per-track b'TRK' check and track number check" |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T09:12:21.344Z" |
|---|
| summary | "Flag weakness: only 3 printable bytes; checksum covers all data after the header" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T09:12:56.147Z" |
|---|
| summary | "Remove field names not shown by the cited code" |
|---|
| changed | |
|---|
|
|
|---|