__asm__(
".global run_sh\n"
"run_sh:\n"
"Input your shellcode here.\n"
"Each line of your shellcode should be\n"
"seperated by '\n'\n"
"xor rdi, rdi # rdi = 0\n"
"mov rax, 0x3c # rax = sys_exit\n"
"syscall # exit(0)");
void run_sh();
int main() { run_sh(); }
'system hacking' 카테고리의 다른 글
드림핵 라이브러리 주소 알아내는 방법, 특정 라이브러리를 로드하는 방법 (0) | 2024.07.03 |
---|---|
드림핵 ssp_001 문제 풀이 (1) | 2024.06.30 |
드림핵 basic_exploitation_001 문제 풀이 (0) | 2024.06.29 |
드림핵 basic_exploitation_000 문제 풀이 (0) | 2024.06.19 |
드림핵 shell_basic 문제 풀이 (1) | 2024.06.15 |