Re:How did we make the DOS redirector take up only 256 bytes...
by jgrahamc on Monday October 24, 2011 @05:21AM
(#3148827)
This sort of stuff used to be really common. When I first started programming on networks we were using something called Z-NET (800kbps running over coax[1]). The receive buffer was 128 bytes long.
Myself and another school boy wrote enough of a connection based networking system that we could reliably send about 100 bytes of data into that receive buffer. By having our 'protocol stack' then CALL the buffer itself we would execute the code that we had just sent (i.e. the machine code).
Building up from 100 byte chunks we built a network monitoring and management system which allowed things like screen mirroring, chat programs, taking control of the keyboard and broadcast functionality. The entire thing was written in assembly language.
The actual protocol stack was loaded into a part of the BIOS of the machine that was unused and we just grabbed a bunch of NOPs and over wrote them. In the end Research Machines were kind enough to send us the spec. of Z-Net (which they considered somewhat secret) as we'd already reverse engineered the entire thing by disassembling the operating system.
Myself and another school boy wrote enough of a connection based networking system that we could reliably send about 100 bytes of data into that receive buffer. By having our 'protocol stack' then CALL the buffer itself we would execute the code that we had just sent (i.e. the machine code).
Building up from 100 byte chunks we built a network monitoring and management system which allowed things like screen mirroring, chat programs, taking control of the keyboard and broadcast functionality. The entire thing was written in assembly language.
The actual protocol stack was loaded into a part of the BIOS of the machine that was unused and we just grabbed a bunch of NOPs and over wrote them. In the end Research Machines were kind enough to send us the spec. of Z-Net (which they considered somewhat secret) as we'd already reverse engineered the entire thing by disassembling the operating system.
[1] http://en.wikipedia.org/wiki/Link_480Z#Z-Net