Repository navigation
ironshell-x86 v2.1.6
Changelog
All notable changes to ironshell-x86 are documented in this file.
[2.1.6] - Current
This cycle focused on module integration, jump tables, disk layout correctness
and cleanup across all subsystems. The goal was to make the previously
disconnected modules actually talk to each other through a stable interface,
and to remove dead code that had accumulated from earlier prototypes.
Added
- API jump tables at the top of
filter.asm,theme.asmandsandbox.asm.
Each entry is a fixed-size near JMP, so stage2 can call any exported function
by a stable offset without recomputing positions every time a module grows. theme_copy_colorsAPI intheme.asm— copies all 10 color slots in one call.filter_api_matchbinding sostage2's log filter actually queries the
filter module's ownactive_filterstate instead of keeping a shadow copy.theme_api_setbinding socmd_set_themenow applies themes through the
theme module and immediately redraws the full screen with the new palette.sandbox_api_entryandsandbox_api_post_execbindings sosandbox_pre
andsandbox_postroute through the sandbox jump table.- Sender-side
push ds / pop esfix inpayload_memmapso E820 queries write
into the stage2 buffer instead of the IVT neighborhood. CHANGELOG.md(this file) so README stays focused on the current version.
Changed
- All exported module functions in
filter.asm,theme.asmandsandbox.asm
now return withretfbecause stage2 calls them viacall far [ptr].
Internal helpers remain nearret. sandbox_postnow resolvessandbox_post_execatSANDBOX_ENTRY + 3
instead of the fragile hardcoded0x902E.stage1.asmreads 4 sectors (2048 bytes) for the loader instead of 2,
giving the loader room to grow without a silent partial load.cmd_set_filterwrites into the filter module directly, so the filter
engine and the shell share one source of truth for the active filter.payload_msgboxshellcode bytes were reordered to produce a valid
mov ax, imm; retstub at 0xA000 instead of an accidental memory write.- README rewritten to match actual code behavior across every subsystem,
including corrected sector counts, load addresses and sandbox wording.
Removed
- Dead
theme_apply_colorinline color blocks (.color,.mono,.hacker,
.retro,.stealth,.done) that were orphaned after the theme engine
moved to a standalone module at 0xB000. - The hardcoded
SANDBOX_POST equ 0x902Econstant — replaced by an offset
fromSANDBOX_ENTRYthrough the sandbox jump table. - Stage2's shadow
active_filterandactive_theme_idvariables. Both
subsystems now keep their own state inside their own module segment. - The runtime shellcode disk load in
loader.asm. Payloads write their own
stub into 0xA000 at execution time, so there was nothing to load. - Redundant
clc / jcguard incmd_run_payload— replaced with a real
call sandbox_pre, which is now reachable and functional.
Fixed
theme_apply_colornow saves and restoresDSandESaround the far
calls into the theme module, so it can be called safely from any context.cmd_set_filterno longer diverges from the filter module's state.sandbox_postno longer risks jumping to the wrong offset when the
sandbox module's internal layout shifts.sandbox_entrynow returns withretf 4, matching the far call from
sandbox_preand correctly cleaning up its two stack arguments.filter_matchandfilter_get_namenow preserveBXacross calls.filter_get_nameclearsDXbeforemulfor cleanliness.- Loader LBA values in
Makefilefor theme and filter now match what
loader.asmactually reads (87 and 89, not 83 and 85). Makefile disasmtarget now uses the correct stage2 origin (0x8000)
and includes theme and filter binaries.Makefile helpmemory layout text now reflects the real module placement.
Notes
- The sandbox pre-scans and post-audits every payload, but the payload body
itself still executes outside the sandbox envelope. Tightening that
boundary is scheduled for a later cycle. - The loader/stage2 memory window is tight. If the loader grows past 2048
bytes, both the stage1 read count andLOADER_MAX_BYTESneed to change
together, and the stage2 origin may need to move.
[1.0] - Initial release
- Two-stage bootloader.
- Seven payloads.
- Basic sandbox with four policy levels.