Research/Pwnable 썸네일형 리스트형 [shellcode] FreeBSD x86 Socket/Connect .globl main main: # 초기화 xor %eax, %eax xor %ebx, %ebx xor %ecx, %ecx xor %edx, %edx # socket (PF_INET, SOCK_STREAM, 0) 더보기 FreeBSD Syscall numbers /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD: src/sys/sys/syscall.h,v 1.178.2.5 2006/10/10 13:47:59 rwatson Exp $ * created from FreeBSD: src/sys/kern/syscalls.master,v 1.198.2.5 2006/10/10 13:19:47 rwatson Exp */ #define SYS_syscall 0 #define SYS_exit 1 #define SYS_fork 2 #define SYS_read 3 #define SYS_write 4 #define SYS_open 5 #define SYS_close .. 더보기 [shellcode] Linux x86 open, read, write .globl main main: /*=========================================================== 스택 프레임 생성 32글자 hash 인자를 읽기 위해 20바이트 공간 형성 ===========================================================*/ push %ebp mov %esp, %ebp sub $0x20, %esp /*=========================================================== 레지스터 초기화 ===========================================================*/ xor %eax, %eax xor %ebx, %ebx xor %ecx, .. 더보기 이전 1 2 다음