mirror of
https://github.com/entropykit/entropia
synced 2026-06-24 06:05:04 +00:00
14 lines
330 B
Plaintext
14 lines
330 B
Plaintext
// SPDX-License-Identifier: Apache-2.0
|
|
// sc_manual_mem.etpy - standard shellcode test for --gc=manual.
|
|
|
|
fn main() -> int {
|
|
var buf: u64 = mem.alloc(64);
|
|
if buf == 0 { ret 1; }
|
|
var b: u8* = (u8*)buf;
|
|
b[0] = (u8)0x41;
|
|
var first: int = (int)b[0];
|
|
mem.free(buf);
|
|
Kernel32.ExitProcess(0);
|
|
ret first;
|
|
}
|