Last active
November 24, 2023 15:23
-
-
Save ldmsys/e182a4944c56c441b8ec222eede67884 to your computer and use it in GitHub Desktop.
syscall bomb test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define TEST_CNT 10000000UL | |
void _start() { | |
for(long long i=0;i<TEST_CNT;i++) { | |
__asm( "mov $0xa9, %rax\n\t" | |
"mov $0xfee1dead, %rdi\n\t" | |
"mov $0x28121969, %rsi\n\t" | |
"mov $0x89abcdef, %rdx\n\t" | |
"syscall\n\t"); | |
} | |
__asm( "mov $0x3c, %rax\n\t" | |
"xor %rdi, %rdi\n\t" | |
"syscall\n\t"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i386