pwn连门都没入的新手
求救大佬int main(int argc,const char *argv,const char *envp)
{
init();
char buf;
printf("what is your name:");
read(0,0x64u);
printf("hello!\n");
return 0;
}
这个函数的栈结构图怎么画
请问这是完整代码吗? 傻眼貓咪 发表于 2022-3-24 19:23
请问这是完整代码吗?
不是,这是我师姐给我的,让我画他的栈结构图,说明他的栈溢出原理 1770797328 发表于 2022-3-27 10:40
不是,这是我师姐给我的,让我画他的栈结构图,说明他的栈溢出原理
她问的也太深了吧,这是有关汇编知识,太深了,我也不会,但你的代码有少写#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main (int argc, const char *argv, const char *envp)
{
char s; // BYREF
read(0, s, 0x64u); // <--------- 你这里少了个参数 s ---------
printf("hello!\n");
return 0;
} 傻眼貓咪 发表于 2022-3-27 11:34
她问的也太深了吧,这是有关汇编知识,太深了,我也不会,但你的代码有少写
ok
页:
[1]