Go Home, Windows EXE, You're Drunk

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

An exploration of whether Linux syscalls can be executed from within a Windows PE executable running under Wine. The author writes a 64-bit PE binary in Flat Assembler that calls WinAPI functions (MessageBoxA) and then issues raw Linux syscalls using Linux conventions. The experiment works — Linux write, fork, and execve syscalls all execute successfully from the Windows binary. The post explains why Windows syscalls fail under Wine (Wine replaces WinAPI but not the kernel), and why Linux syscalls work (the process is still a native Linux process from the kernel's perspective). Purely a curiosity experiment with no practical utility.

5m read timeFrom gpfault.net
Post cover image
Table of contents
Syscalls and WineThe Unholy Wine-Drunk Chimera

Sort: