3 ms·
Yes. Things get more complicated with a modern OS on good hardware, but otherwise it works fine. The "int 0x80" does a Linux system call. This is how things get
by burfog 10y ago
Yes. Things get more complicated with a modern OS on good hardware, but otherwise it works fine. The "int 0x80" does a Linux system call. This is how things get hacked into.
This kind of thing works on most non-Linux embedded devices. The OS on these is commonly VxWorks or ThreadX.
It works on Linux if you use a 486, Pentium, or 32-bit PowerPC. (and weirder stuff) It works on Linux if you use a kernel that is 10 years old. It works on Linux if you add a *.s file to your build. (an assembly file; empty is fine)
It works on Windows if the program wasn't built with some compiler option I forget. The security is opt-in, so most developers don't bother.