분류 전체보기

    [lob] xavius -> death_night

    1. intro 2. code 및 분석 2.1. C code /* The Lord of the BOF : The Fellowship of the BOF - dark knight - remote BOF */ #include #include #include #include #include #include #include #include #include main() { char buffer[40]; int server_fd, client_fd; struct sockaddr_in server_addr; struct sockaddr_in client_addr; int sin_size; if((server_fd = socket(AF_INET, SOCK_STREAM, 0)) == -1){ perror("socket"..

    cube

    보호되어 있는 글입니다.

    cpp_smart_pointer_1

    보호되어 있는 글입니다.

    [lob] nightmare -> xavius

    1. intro 2. code 및 분석 2.1. C code /* The Lord of the BOF : The Fellowship of the BOF - xavius - arg */ #include #include #include main() { char buffer[40]; char *ret_addr; // overflow! fgets(buffer, 256, stdin); printf("%s\n", buffer); if(*(buffer+47) == '\xbf') { printf("stack retbayed you!\n"); exit(0); } if(*(buffer+47) == '\x08') { printf("binary image retbayed you, too!!\n"); exit(0); } // ..

    [lob] succubus -> nightmare

    1. intro 2. code 및 분석 2.1. C code /* The Lord of the BOF : The Fellowship of the BOF - nightmare - PLT */ #include #include #include #include main(int argc, char *argv[]) { char buffer[40]; char *addr; if(argc < 2){ printf("argv error\n"); exit(0); } // check address addr = (char *)&strcpy; if(memcmp(argv[1]+44, &addr, 4) != 0){ printf("You must fall in love with strcpy()\n"); exit(0); } // over..

    source code site

    Glibc source code (glibc-2.36.9000) - Bootlin Glibc source code (glibc-2.36.9000) - Bootlin elixir.bootlin.com 개인적으로 여기가 제일 나아보인다. Code browser - Explore C++ code on the web Code browser - Explore C++ code on the web Code Browser for C & C++ by KDAB code.woboq.org has become codebrowser.dev. Read more here This is an online C and C++ code browser. It focuses on improving the code navigation with..

    iofile_vtable_check

    보호되어 있는 글입니다.

    string

    보호되어 있는 글입니다.

    [lob] zombie_assassin -> succubus

    1. intro 2. code 및 분석 2.1 C code /* The Lord of the BOF : The Fellowship of the BOF - succubus - calling functions continuously */ #include #include #include // the inspector int check = 0; void MO(char *cmd) { if(check != 4) exit(0); printf("welcome to the MO!\n"); // olleh! system(cmd); } void YUT(void) { if(check != 3) exit(0); printf("welcome to the YUT!\n"); check = 4; } void GUL(void) { if..

    [lob] assassin -> zombie_assassin

    1. intro 2. code 및 분석 2.1. C code /* The Lord of the BOF : The Fellowship of the BOF - zombie_assassin - FEBP */ #include #include main(int argc, char *argv[]) { char buffer[40]; if(argc < 2){ printf("argv error\n"); exit(0); } if(argv[1][47] == '\xbf') { printf("stack retbayed you!\n"); exit(0); } if(argv[1][47] == '\x40') { printf("library retbayed you, too!!\n"); exit(0); } // strncpy instead..