[드림핵] Shellcode
orw 셸코드 char buf[0x30]; int fd = open("/tmp/flag", RD_ONLY, NULL); read(fd, buf, 0x30); write(1, buf, 0x30); syscall rax arg0 (rdi) arg1 (rsi) arg2 (rdx) read 0x00 unsigned int fd char *buf size_t count write 0x01 unsigned int fd const char *buf size_t count open 0x02 const char *filename int flags umode_t mode 1. int fd = open(“/tmp/flag”, O_RDONLY, NULL) syscall rax arg0 (rdi) arg1 (rsi) arg2 ..
System Hacking
2024. 2. 27. 23:32