Windows 에서 간단하게 BOF소스 짜봤는데 올바르게 짰는지 모르겠네요
글쓴이: nexusz99 / 작성시간: 수, 2009/05/13 - 2:06오전
#include <stdio.h> #include <string.h> #include <stdlib.h> void af(char *in) { char wow[4]; printf("Here is af\n"); strcpy(wow,in); } void bf() { system("dir"); } int main(void) { char a[4] = {0x19,0x10,0x40,0x00}; //bf의 주소. char b[] = "00000000"; //앞의 4자리 wow변수 뒤의 4자리 sfp strcat(b,a); af(b); }
함수끝날때 _chkesp 함수때문에 오류는 나지만 그래도 어느정도 성공 아닌가요?
Forums:
댓글 달기