是否可以执行放在堆栈上的 shellcode?

Is it possible to execute a shellcode that's placed on stack?

是否可以执行放在堆栈上的 shellcode?我正在使用 Windows。 (这可能不会改变事实,但可能在不同的操作系统上存在一些其他规则。)

Windows 中的堆栈受 data execution prevention (DEP) 保护,因此您无法在堆栈上执行任何指令。 这对于不支持 DEP 的旧 Windows 版本是可能的。