Stack-Overflow

DeeLMind2024年12月23日小于 1 分钟

Stack-Overflow

栈溢出

  • 栈帧 Stack Frame

er

  • 栈溢出 Stack-Overflow

er

漏洞代码

#include <stdio.h>
#include <string.h>
#include <Windows.h>

/**
11112222333344445555

31313131
32323232
33333333
34343434
35353535

// address 0x00461100 show()
 */

void show()
{
    MessageBox(0, 0, 0, 0);
}

int bof() {
    char buff[16];
    printf("Enter password: ");
    scanf("%s", buff);
    return 1;
}

int main(int argc, char** argv) {

    printf("%p\n", show);

    bof();

    return 0;
}
上次编辑于: 2024/12/23 11:58:34
贡献者: DeeLMind
重要公告(核心基础)